swig/Examples/test-suite
William S Fulton ede8b8c87a Remove cvs $Header$
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10007 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 21:56:11 +00:00
..
allegrocl Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
cffi Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
chicken Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
clisp Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
csharp Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
errors
guile Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
guilescm Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
java Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
lua Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
mzscheme Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
ocaml Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
perl5 Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
php4 Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
pike Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
python Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
r Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
ruby Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
schemerunme
tcl Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
testdir
uffi Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
abstract_access.i
abstract_inherit.i
abstract_inherit_ok.i
abstract_signature.i
abstract_typedef.i
abstract_typedef2.i
abstract_virtual.i
access_change.i
add_link.i
aggregate.i
allowexcept.i
anonymous_bitfield.i
apply_signed_char.i %apply signed char test added 2006-08-10 21:22:12 +00:00
apply_strings.i remove non-standard C 2006-11-02 09:04:55 +00:00
argout.i fix docs, path provided by Olly 2006-04-11 01:40:20 +00:00
array_member.i fix bug #1158178 2006-02-24 08:34:03 +00:00
array_typedef_memberin.i
arrayref.i
arrays.i
arrays_dimensionless.i
arrays_global.i
arrays_global_twodim.i
arrays_scope.i
bloody_hell.i
bools.i
cast_operator.i
casts.i
char_constant.i
char_strings.i fix char *& typemap, reported by Geoff Hutchison 2006-02-23 21:26:36 +00:00
class_ignore.i
class_scope_weird.i Fix test for gcc-4.1 2006-06-05 21:04:35 +00:00
clientdata_prop.list
clientdata_prop_a.h
clientdata_prop_a.i
clientdata_prop_b.h
clientdata_prop_b.i
common.mk Remove cvs $Header$ 2007-10-17 21:56:11 +00:00
compactdefaultargs.i
const_const.i
const_const_2.i
constant_pointers.i
constants.i
constover.i
constructor_copy.i Updated CHANGES.current. 2007-04-30 09:45:10 +00:00
constructor_exception.i
constructor_explicit.i
constructor_ignore.i Fix ignore on implicit constructors 2007-09-07 22:10:03 +00:00
constructor_value.i
contract.i
conversion.i
conversion_namespace.i more thorough %rename tests including conversion operator %rename 2007-05-26 00:05:32 +00:00
conversion_ns_template.i
cplusplus_throw.i
cpp_basic.i
cpp_broken.i
cpp_enum.i
cpp_namespace.i
cpp_nodefault.i
cpp_static.i
cpp_typedef.i
csharp_attributes.i
csharp_exceptions.i New invalid cast exception added 2006-11-08 00:57:29 +00:00
csharp_features.i add in missing virtual destructor 2006-07-04 20:49:55 +00:00
csharp_prepost.i pre, post, cshin, pgcppname attribute tests for javain/csin typemap 2007-04-17 22:48:38 +00:00
csharp_typemaps.i Back out valueparm attribute in the csvarin typemap. Add example usage of temporary variables in the csvarin typemap into docs. Modify CDate C# example. Add in special variable expansion in the csvarin typemap. 2007-09-21 23:58:00 +00:00
default_args.i
default_constructor.i
defvalue_constructor.i
derived_byvalue.i Fixed bug in typemaps which caused derived_byvalue and rname test cases to fail. 2007-02-22 09:21:23 +00:00
derived_nested.i
destructor_reprotected.i
director_abstract.i
director_basic.i
director_classes.i Suppress director out warning for pointers/references 2006-06-05 21:05:15 +00:00
director_classic.i More comprehensive test 2006-07-27 21:57:35 +00:00
director_constructor.i
director_default.i more directors and default arg tests 2006-09-13 20:36:44 +00:00
director_detect.i missing %feature(director) 2006-09-13 20:35:49 +00:00
director_enum.i
director_exception.i
director_extend.i use $self special variable instead of self in %extend 2006-11-08 01:01:37 +00:00
director_finalizer.i
director_frob.i Fix bug #1776651 - bug when the director class name is similar to other symbols being used 2007-08-20 19:48:45 +00:00
director_ignore.i add in missing return values 2006-10-24 20:16:29 +00:00
director_namespace_clash.i test directors with 2 same name classes in different namespace 2006-07-07 10:08:45 +00:00
director_nested.i Add in missing director directives 2006-06-02 20:53:37 +00:00
director_overload.i Fix directors for some overloaded methods where the imtype resulted in identical methods being generated in the C# director class 2007-07-03 22:39:35 +00:00
director_primitives.i add in missing virtual destructor 2006-07-04 20:49:55 +00:00
director_protected.i remove name clash with runtime tests 2006-08-16 20:59:11 +00:00
director_redefined.i
director_string.i Add testcase which fails with C# directors. 2006-10-12 00:00:13 +00:00
director_thread.i Fix win32 threads 2006-08-16 20:51:50 +00:00
director_unroll.i
director_using.i Add in missing director directives 2006-06-02 20:53:37 +00:00
director_wombat.i
director_wstring.i Bug 1446319 - variable of same emitted more than once when more than wstring parameter in director methods 2006-03-10 21:47:13 +00:00
disown.i
dynamic_cast.i
empty.i
enum_plus.i
enum_scope_template.i
enum_template.i
enum_thorough.i
enum_thorough_proper.i
enum_thorough_simple.i
enum_thorough_typesafe.i
enum_thorough_typeunsafe.i
enum_var.i
enums.i ruby warning suppression 2006-09-13 20:31:42 +00:00
evil_diamond.i
evil_diamond_ns.i
evil_diamond_prop.i
exception_order.i
exception_partial_info.i replace code with warning that it does not work for UTL languages 2006-11-02 18:46:12 +00:00
extend.i 64 bit portability warnings fix 2006-11-24 22:41:17 +00:00
extend_default.i
extend_placement.i use $self special variable instead of self in %extend 2006-11-08 01:01:37 +00:00
extend_template.i
extend_template_ns.i
extend_variable.i add %extend for static member variables test 2006-11-29 21:56:03 +00:00
extern_declaration.i
extern_namespace.i
extern_throws.i
features.i
file_test.i
fragments.i
friends.i Fix test for gcc-4.1 2006-06-05 21:04:35 +00:00
function_typedef.i
fvirtual.i testcase for -fvirtual 2006-09-28 21:53:23 +00:00
global_ns_arg.i
global_vars.i Remove R explicit workaround 2006-09-13 20:32:10 +00:00
grouping.i
ignore_parameter.i
ignore_template_constructor.i Updated CHANGES.current. 2007-04-30 09:45:10 +00:00
immutable.i
import_nomodule.h
import_nomodule.i
imports.list
imports_a.h add back the newline at the end of the file since gcc complains too much 2006-03-27 21:17:04 +00:00
imports_a.i
imports_b.h
imports_b.i
inctest.h fix include within a structure - #1162194 2006-10-06 23:02:45 +00:00
inctest.i test include within a structure - #1162194 2006-10-06 22:59:22 +00:00
inherit.i
inherit_missing.i
inherit_same_name.i add missing virtual destructors 2006-02-23 07:08:11 +00:00
inherit_void_arg.i
inline_initializer.i
integers.i
intermediary_classname.i
java_constants.i
java_director.i 64 bit portability warnings fix 2006-11-24 22:41:17 +00:00
java_enums.i
java_jnitypes.i
java_lib_arrays.i test %apply pointer to ARRAYSOFCLASSES 2007-03-19 21:29:48 +00:00
java_lib_arrays_dimensionless.i
java_lib_various.i
java_pgcpp.i Strip C comments from the java typemaps when determining to use the premature garbage collection prevention parameter 2007-10-12 21:41:27 +00:00
java_pragmas.i
java_prepost.i pre, post, cshin, pgcppname attribute tests for javain/csin typemap 2007-04-17 22:48:38 +00:00
java_throws.i
java_typemaps_proxy.i more nopgcpp tests (for const methods) 2006-10-31 22:06:52 +00:00
java_typemaps_typewrapper.i
kind.i update to use proxy terminology 2006-06-29 21:17:30 +00:00
langobj.i
lextype.i
li_attribute.i attribute tidy up. %attributeref replaces %attribute_ref 2007-10-17 21:27:21 +00:00
li_boost_shared_ptr.i minor comment changes 2007-10-12 21:42:20 +00:00
li_carrays.i add in global array variable 2007-04-02 21:37:13 +00:00
li_cdata.i
li_cdata_carrays.i [perl5] Use sv_setpvn() to set a scalar from a pointer and length 2007-09-17 23:24:11 +00:00
li_cmalloc.i
li_constraints.i remove non-portable test 2007-07-24 21:29:12 +00:00
li_cpointer.i
li_cstring.i
li_cwstring.i
li_factory.i readd %factory for create method 2006-03-19 23:28:34 +00:00
li_implicit.i
li_math.i
li_std_deque.i
li_std_except.i
li_std_map.i Changed %trackobjects directive to %feature directive 2007-05-01 05:46:46 +00:00
li_std_pair.i Move ruby specific test into Ruby specific testcase li_std_pair_lang_object.i 2007-09-03 19:45:14 +00:00
li_std_set.i Improved multimap, vector and set by rearranging 2007-05-01 06:43:56 +00:00
li_std_stream.i Made autodoc ignore numinputs=0. 2007-05-02 22:09:06 +00:00
li_std_string.i solaris warning fix 2006-11-02 18:15:20 +00:00
li_std_vector.i Improved algorithm of renaming of methods with numbers at the end. 2007-05-04 13:12:31 +00:00
li_std_wstring.i Fixes to std_map and multimap. There's still a problem 2007-05-01 01:08:17 +00:00
li_stdint.i
li_typemaps.i
li_windows.i Fix test - SWIG was incorrectly getting #defines to the windows integer types, which was not intended in original test 2006-07-24 20:34:12 +00:00
list_vector.i
long_long.i
long_long_apply.i
member_pointer.i Remove obscure mpointer example and replace with member_pointer.i testcase and runtime examples 2007-08-09 23:47:13 +00:00
member_template.i
memberin1.i
minherit.i
minherit2.i fix module name 2006-11-04 10:29:50 +00:00
mixed_types.i
mod.h
mod.list
mod_a.i
mod_b.i
multi_import.h Added test suite entry for Bug #1735931 2007-10-12 17:04:24 +00:00
multi_import.list Added test suite entry for Bug #1735931 2007-10-12 17:04:24 +00:00
multi_import_a.i Added test suite entry for Bug #1735931 2007-10-12 17:04:24 +00:00
multi_import_b.i Added test suite entry for Bug #1735931 2007-10-12 17:04:24 +00:00
multi_import_c.i Added test suite entry for Bug #1735931 2007-10-12 17:04:24 +00:00
multiple_inheritance.i add missing virtual destructors 2006-03-03 22:35:23 +00:00
multivalue.i
name.i
name_cxx.i
name_warnings.i Committing R-SWIG 2006-06-29 03:01:18 +00:00
namespace_class.i nested class method test 2006-11-08 00:59:17 +00:00
namespace_enum.i
namespace_extend.i
namespace_nested.i add more cases 2006-02-22 21:54:19 +00:00
namespace_spaces.i
namespace_template.i
namespace_typedef_class.i
namespace_typemap.i
namespace_union.i
namespace_virtual_method.i
naturalvar.i
nested.i
nested_comment.i
newobject1.i
newobject2.i use $self special variable instead of self in %extend 2006-11-08 01:01:37 +00:00
operator_overload.i use $self special variable instead of self in %extend 2006-11-08 01:01:37 +00:00
ordering.i
overload_complicated.i
overload_copy.i
overload_extend.i use $self special variable instead of self in %extend 2006-11-08 01:01:37 +00:00
overload_extendc.i
overload_rename.i
overload_simple.i add SWIG_TYPECHECK_SWIGOBJECT to resolve simple overload functions as Graph(int i)/Graph(PyObject* p) 2006-03-02 06:13:13 +00:00
overload_subtype.i
overload_template.i
overload_template_fast.i
pointer_in_out.i
pointer_reference.i
preproc.i Use SWIGPHP instead of SWIGPHP4 2006-09-29 10:09:23 +00:00
primitive_ref.i
primitive_types.i Fix parsing of float constants with an exponent (e.g. 1e-02f) (bug #1699646). 2007-04-21 16:00:02 +00:00
private_assign.i
profiletest.i
protected_rename.i
pure_virtual.i
README
redefined.i
refcount.h
refcount.i
reference_global_vars.i
register_par.i
rename.h more thorough %rename tests including conversion operator %rename 2007-05-26 00:05:32 +00:00
rename1.i more thorough %rename tests including conversion operator %rename 2007-05-26 00:05:32 +00:00
rename2.i more thorough %rename tests including conversion operator %rename 2007-05-26 00:05:32 +00:00
rename3.i more thorough %rename tests including conversion operator %rename 2007-05-26 00:05:32 +00:00
rename4.i more thorough %rename tests including conversion operator %rename 2007-05-26 00:05:32 +00:00
rename_camel.i
rename_scope.i
restrict_cplusplus.i Change class name for Ruby 2007-04-27 21:12:36 +00:00
ret_by_value.i
return_const_value.i
return_value_scope.i
rname.i
shared_ptr_wrapper.h shared_ptr memory leak testing. Make increment and decrement counts thread safe. Fix template test. 2007-10-09 23:56:31 +00:00
sizeof_pointer.i
sizet.i const ref size_t added 2006-10-17 21:42:11 +00:00
smart_pointer_const.i
smart_pointer_const2.i
smart_pointer_extend.i warning fix 2006-10-24 20:33:38 +00:00
smart_pointer_inherit.i warning fixes 2006-11-13 22:13:49 +00:00
smart_pointer_member.i
smart_pointer_multi.i
smart_pointer_multi_typedef.i
smart_pointer_namespace.i
smart_pointer_namespace2.i
smart_pointer_not.i
smart_pointer_overload.i
smart_pointer_protected.i
smart_pointer_rename.i
smart_pointer_simple.i
smart_pointer_static.i
smart_pointer_templatemethods.i Fix smart pointers and member methods 2007-08-01 00:07:23 +00:00
smart_pointer_typedef.i
sneaky1.i fix for perl keyword 2006-03-07 23:05:11 +00:00
special_variables.i $symname test 2006-07-05 21:24:36 +00:00
static_array_member.i
static_const_member.i
static_const_member_2.i
std_containers.i Fixed a bug with argout values being incorrectly 2007-05-01 22:40:55 +00:00
struct_rename.i
struct_value.i
swig_examples_lock.h shared_ptr memory leak testing. Make increment and decrement counts thread safe. Fix template test. 2007-10-09 23:56:31 +00:00
sym.i
tag_no_clash_with_variable.i
template.i
template_arg_replace.i
template_arg_scope.i
template_arg_typename.i
template_array_numeric.i
template_base_template.i
template_classes.i
template_const_ref.i
template_construct.i
template_default.i
template_default2.i
template_default_arg.i
template_default_inherit.i
template_default_pointer.i
template_default_qualify.i
template_default_vw.i
template_enum.i fix template + enum issue reported by James Bigler 2006-03-20 00:14:24 +00:00
template_enum_ns_inherit.i
template_enum_typedef.i
template_explicit.i
template_expr.i Use SWIG_GE, SWIG_LE, etc instead of >=, <= since the latter cause 2006-09-26 07:52:24 +00:00
template_extend1.i
template_extend2.i
template_extend_overload.i
template_extend_overload_2.i
template_forward.i Fix #1538522 and #1338527, forward templated class declarations without a name for the templated class parameters, such as: template <typename, class> class X; 2007-01-25 23:50:04 +00:00
template_inherit.i
template_inherit_abstract.i
template_int_const.i
template_methods.i Correct behaviour for templated methods used with %rename or %ignore and %template() 2007-08-17 20:42:19 +00:00
template_ns.i
template_ns2.i
template_ns3.i
template_ns4.i
template_ns_enum.i
template_ns_enum2.i
template_ns_inherit.i
template_ns_scope.i
template_opaque.i
template_partial_arg.i
template_qualifier.i
template_ref_type.i
template_rename.i
template_retvalue.i
template_specialization.i
template_specialization_defarg.i
template_specialization_enum.i
template_static.i
template_tbase_template.i php keyword fixes 2006-03-07 21:58:28 +00:00
template_type_namespace.i
template_typedef.i
template_typedef_cplx.i
template_typedef_cplx2.h
template_typedef_cplx2.i
template_typedef_cplx3.i
template_typedef_cplx4.i
template_typedef_cplx5.i
template_typedef_fnc.i
template_typedef_import.i
template_typedef_import.list
template_typedef_ns.i
template_typedef_ptr.i
template_typedef_rec.i
template_typemaps.i
template_using.i
template_virtual.i
template_whitespace.i
threads.i
throw_exception.i
traits.i
typedef_array_member.i
typedef_class.i
typedef_funcptr.i
typedef_inherit.i
typedef_mptr.i
typedef_reference.i
typedef_scope.i
typedef_sizet.i
typedef_struct.i fix names for ruby 2006-03-19 23:37:46 +00:00
typemap_namespace.i
typemap_ns_using.i
typemap_numinputs.i
typemap_self.i
typemap_subst.i
typemap_variables.i
typemap_various.i solaris warning fix 2006-11-02 18:23:01 +00:00
typename.i
union_scope.i
unions.i
using1.i
using2.i
using_composition.i
using_extend.i add more cases 2006-02-22 21:54:19 +00:00
using_inherit.i
using_namespace.i remove extra ; 2006-02-24 23:54:29 +00:00
using_pointers.i
using_private.i add in missing virtual destructor 2006-07-04 20:49:55 +00:00
using_protected.i
valuewrapper.i
valuewrapper_base.i
valuewrapper_const.i
valuewrapper_opaque.i
varargs.i
virtual_derivation.i
virtual_destructor.i
virtual_poly.i
voidtest.i
wrapmacro.i

SWIG testsuite README file
--------------------------

This testsuite is here to ensure SWIG can handle a wide range of c/c++
syntax. The testsuite comprises many testcases in this directory. Each
test case is tested under each of the language modules thereby
thoroughly testing all of SWIG. It ensures that each of the language
modules are at a similar standard.

Those modules that support shadow classes run the tests producing
shadow classes to test the full language module functionality.

Some test cases need a runtime test. These need implementing in each
of the language modules. The language modules look for a file in the
language specific test-suite directory which has _runme appended after
the testcase name. If one is found it will be run as part of the test.

Some language modules add to this common set of test cases for
language specific tests. These can be found in the appropriate
language test-suite directory. There is also a README in each of the
language module directories.

For each testcase a message showing which testcase is being tested is
displayed. Nothing else is printed unless the test fails.


Some Developer Guidelines
-------------------------

Note that the whole test suite need not be run each time a testcase is
modified. An individual testcase may be run by going to the language
module test-suite directory and using make testcasename.xxx where xxx
is the type of test (eg cpptest). See common.mk. make -s doesn't print
any junk on the screen and is useful for emulating the way make check
works from the SWIG root directory.

If there are runtime tests needed, don't print anything unless there
is an error in which case stderr is suggested.

Please set the name of the module to the same name as the testcase,
otherwise modules will not be found.