swig/Examples/test-suite
2005-10-24 14:59:05 +00:00
..
chicken + finally fix pointers to member functions in chicken 2005-10-24 03:42:32 +00:00
csharp *** empty log message *** 2005-09-24 10:05:33 +00:00
errors fix SWIG command 2004-12-04 08:18:17 +00:00
guile Don't forget to exit. 2005-09-26 21:45:34 +00:00
guilescm Define swig_and_compile_multi_cpp here, don't inherit from guile-gh, 2005-06-10 11:35:45 +00:00
java multiple inheritance and ignored base classes test 2005-10-08 11:36:16 +00:00
lua add test for assigment operator 2005-09-22 22:30:28 +00:00
mzscheme
ocaml
perl5 Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names 2005-10-24 14:59:05 +00:00
php4 Fix test cases to always use intp wrappers. This is required because of changes 2005-09-16 18:18:15 +00:00
pike
python Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names 2005-10-24 14:59:05 +00:00
ruby Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names 2005-10-24 14:59:05 +00:00
schemerunme Chicken: multiple_inheritance test now passes, and we correctly handle %ignored classes 2005-10-19 06:27:56 +00:00
tcl Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names 2005-10-24 14:59:05 +00:00
testdir
.cvsignore
abstract_access.i adding more tests 2004-11-15 22:58:10 +00:00
abstract_inherit.i add/fix protected/private bases + template 2004-11-16 05:36:23 +00:00
abstract_inherit_ok.i
abstract_signature.i
abstract_typedef.i
abstract_typedef2.i
abstract_virtual.i php4 multiple inheritance warning suppression 2005-10-08 11:37:27 +00:00
access_change.i More tests when a method's access changes through inheritance hierarchy 2005-06-09 18:42:59 +00:00
add_link.i
aggregate.i
anonymous_bitfield.i
argout.i
array_member.i
array_typedef_memberin.i
arrayref.i
arrays.i added more test cases and broken ones 2004-11-15 18:45:28 +00:00
arrays_dimensionless.i extra tests for dimensionless array parameters 2004-12-08 22:49:55 +00:00
arrays_global.i
arrays_global_twodim.i
arrays_scope.i
bloody_hell.i
bools.i minor cosmetic warning fix 2005-10-07 13:21:52 +00:00
cast_operator.i
casts.i
char_constant.i
char_strings.i
class_ignore.i More covariant tests and polymorphic methods tests to test C# override keyword. 2005-05-20 22:36:43 +00:00
class_scope_weird.i massive typemap unification 2005-10-18 13:24:15 +00:00
clientdata_prop.list
clientdata_prop_a.h
clientdata_prop_a.i
clientdata_prop_b.h
clientdata_prop_b.i
common.mk Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names 2005-10-24 14:59:05 +00:00
compactdefaultargs.i warning/error fixes for Visual Studio 2005-10-09 13:49:44 +00:00
const_const.i
const_const_2.i
constant_pointers.i Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names 2005-10-24 14:59:05 +00:00
constover.i
constructor_exception.i
constructor_explicit.i
constructor_value.i
contract.i php4 multiple inheritance warning suppression 2005-10-08 11:37:27 +00:00
conversion.i
conversion_namespace.i
conversion_ns_template.i
cplusplus_throw.i
cpp_basic.i + finally fix pointers to member functions in chicken 2005-10-24 03:42:32 +00:00
cpp_broken.i fix example max macro/template and external max macro conflicts 2005-09-16 00:35:38 +00:00
cpp_enum.i fix for undefined reference on Cygwin 2005-05-12 20:46:20 +00:00
cpp_namespace.i
cpp_nodefault.i
cpp_static.i
cpp_typedef.i
csharp_attributes.i C# attribute support added - %csattributes feature, %csattributes typemap 2005-05-12 20:19:47 +00:00
csharp_exceptions.i SWIG_exception mods 2005-07-22 21:42:00 +00:00
csharp_features.i minor fix 2005-05-27 22:48:20 +00:00
csharp_typemaps.i test asymmetric type marshalling - out attribute for ctype, imtype and cstype typemaps. 2005-04-28 22:03:50 +00:00
default_args.i fix for 'staticmethod' kw name 2004-12-22 20:32:31 +00:00
default_constructor.i php4 multiple inheritance warning suppression 2005-10-08 11:37:27 +00:00
defvalue_constructor.i
derived_byvalue.i
derived_nested.i
destructor_reprotected.i
director_abstract.i
director_basic.i add more cases 2005-10-19 10:56:37 +00:00
director_constructor.i add test case using 'super' 2004-12-12 21:40:18 +00:00
director_default.i fix def args + director + constructors 2004-11-08 05:31:27 +00:00
director_detect.i
director_enum.i suppress warning 470 2005-03-30 22:31:53 +00:00
director_exception.i warning fix 2005-02-28 22:33:47 +00:00
director_finalizer.i
director_frob.i
director_nested.i
director_protected.i adding more tests 2004-11-15 22:58:10 +00:00
director_redefined.i
director_string.i add char* string test 2005-09-09 17:58:43 +00:00
director_unroll.i
director_using.i
director_wombat.i add missing const ptr case 2005-09-26 14:53:39 +00:00
director_wstring.i add the runtime case 2005-10-21 11:01:40 +00:00
dynamic_cast.i
empty.i test wrapping nothing! 2005-09-28 20:55:18 +00:00
enum_plus.i
enum_scope_template.i
enum_template.i
enum_thorough.i massive typemap unification 2005-10-18 13:24:15 +00:00
enum_thorough_proper.i
enum_thorough_simple.i
enum_thorough_typesafe.i
enum_thorough_typeunsafe.i
enum_var.i
enums.i change comments to C/Ansi 2005-03-19 19:57:38 +00:00
evil_diamond.i Ruby warning suppression 2005-10-08 14:23:56 +00:00
evil_diamond_ns.i Ruby warning suppression 2005-10-08 14:23:56 +00:00
evil_diamond_prop.i Ruby warning suppression 2005-10-08 14:23:56 +00:00
exception_order.i More of the new C# exceptions 2005-02-05 00:45:57 +00:00
extend_default.i remove python keyword 2005-05-26 20:43:43 +00:00
extend_placement.i
extend_template.i
extend_template_ns.i
extend_variable.i add Luigi's static patch for extended variables 2005-10-18 14:04:14 +00:00
extern_declaration.i massive typemap unification 2005-10-18 13:24:15 +00:00
extern_namespace.i fix for #1205859 2005-06-18 08:04:30 +00:00
extern_throws.i
features.i adding more tests 2004-11-15 22:58:10 +00:00
file_test.i remove test.dat file 2004-11-16 05:25:17 +00:00
fragments.i
friends.i fix friend bug #1323114 2005-10-17 13:28:59 +00:00
function_typedef.i
global_ns_arg.i
global_vars.i fix varin for ptr types 2004-12-21 20:07:16 +00:00
grouping.i
ignore_parameter.i
immutable.i capitalization for Ruby 2005-10-15 01:13:17 +00:00
import_nomodule.h
import_nomodule.i minor fixes for valgrind 2005-10-20 11:20:41 +00:00
imports.list
imports_a.h fix minor warnings 2005-09-06 09:02:54 +00:00
imports_a.i
imports_b.h
imports_b.i recover the %import(module=name) option,lost in previous fix 2005-09-30 15:27:20 +00:00
inctest.i
inherit.i Test for patch #1116431 Fix non member functions inadvertently being called instead of member functions. 2005-09-23 21:20:27 +00:00
inherit_missing.i minor fixes for valgrind 2005-10-20 11:20:41 +00:00
inherit_same_name.i forgotten checkin - new test where a symbol name usage changes down the inheritance hierarchy 2005-06-12 08:18:34 +00:00
inherit_void_arg.i
inline_initializer.i
java_constants.i
java_director.i Scott Michel director patch, typemap consolidation 2005-04-28 22:11:06 +00:00
java_enums.i const enum SWIGTYPE & typemap tests 2004-11-28 19:13:27 +00:00
java_jnitypes.i
java_lib_arrays.i
java_lib_arrays_dimensionless.i test java arrays wrapping for dimensionless arrays 2005-02-15 22:41:52 +00:00
java_lib_various.i add setter into test 2005-02-17 22:23:37 +00:00
java_pragmas.i
java_throws.i
java_typemaps_proxy.i
java_typemaps_typewrapper.i
kind.i
langobj.i Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names 2005-10-24 14:59:05 +00:00
lextype.i more fixes for gcc -fstrict-aliasing -Wall 2005-05-13 23:51:16 +00:00
li_carrays.i
li_cdata.i
li_cmalloc.i
li_constraints.i
li_cpointer.i
li_cstring.i adding test for binary buffer 2005-09-06 06:31:25 +00:00
li_cwstring.i adding test for binary buffer 2005-09-06 06:31:25 +00:00
li_implicit.i massive typemap unification 2005-10-18 13:24:15 +00:00
li_math.i
li_std_deque.i
li_std_pair.i
li_std_string.i more fixes for gcc -fstrict-aliasing -Wall 2005-05-13 23:51:16 +00:00
li_std_vector.i
li_std_wstring.i Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names 2005-10-24 14:59:05 +00:00
li_typemaps.i Add a whole bunch of chicken runme scripts, and fix the bugs exposed by those scripts 2005-04-15 05:23:14 +00:00
list_vector.i
long_long.i
long_long_apply.i
member_template.i fix example max macro/template and external max macro conflicts 2005-09-16 00:35:38 +00:00
memberin1.i
minherit.i
mixed_types.i added more test cases and broken ones 2004-11-15 18:45:28 +00:00
multiple_inheritance.i more multiple inheritance tests checking ignored classes 2005-10-08 11:35:25 +00:00
multivalue.i
name.i deprecated %name warning suppression 2004-11-28 19:10:18 +00:00
name_cxx.i deprecated %name warning suppression 2004-11-28 19:10:18 +00:00
name_warnings.i replace bad parameter names when neccessary 2005-10-21 10:43:41 +00:00
namespace_class.i recover pseudo nested class support 2004-11-13 01:25:56 +00:00
namespace_enum.i
namespace_extend.i
namespace_nested.i
namespace_spaces.i
namespace_template.i fix example max macro/template and external max macro conflicts 2005-09-16 00:35:38 +00:00
namespace_typedef_class.i
namespace_typemap.i
namespace_union.i
namespace_virtual_method.i
nested.i
nested_comment.i added more cases 2004-11-16 00:18:32 +00:00
newobject1.i
newobject2.i
operator_overload.i provide default names for operators 2005-09-22 22:29:39 +00:00
ordering.i tests ordering of section blocks 2005-02-15 22:33:04 +00:00
overload_complicated.i
overload_copy.i
overload_extend.i
overload_extendc.i
overload_rename.i fix typo 2004-11-15 22:15:32 +00:00
overload_simple.i tcl long long overloading fix - bug #1191835, patch from Jeroen Dobbelaere 2005-05-20 23:51:31 +00:00
overload_subtype.i
overload_template.i fix example max macro/template and external max macro conflicts 2005-09-16 00:35:38 +00:00
pointer_in_out.i
pointer_reference.i
preproc.i Lots more bug fixes for the chicken module: almost the entire test-sutie now runs 2005-03-17 07:28:19 +00:00
primitive_ref.i
primitive_types.i Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names 2005-10-24 14:59:05 +00:00
private_assign.i adding more tests 2004-11-15 22:58:10 +00:00
profiletest.i
protected_rename.i
pure_virtual.i php4 multiple inheritance warning suppression 2005-10-08 11:37:27 +00:00
README
redefined.i
refcount.h warning/error fixes for Visual Studio 2005-10-09 13:49:44 +00:00
refcount.i fix keyword problem with C# 2005-10-09 07:16:50 +00:00
reference_global_vars.i
register_par.i add missing method bodies 2004-12-02 21:19:12 +00:00
rename_scope.i
ret_by_value.i
return_const_value.i
return_value_scope.i
rname.i %rename tests beefed up a bit 2004-11-09 21:24:21 +00:00
sizeof_pointer.i
sizet.i added more test cases and broken ones 2004-11-15 18:45:28 +00:00
smart_pointer_const.i
smart_pointer_const2.i
smart_pointer_extend.i fix ruby warn 2005-02-28 23:57:51 +00:00
smart_pointer_member.i ruby warning fix 2005-03-28 19:43:33 +00:00
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_typedef.i
sneaky1.i
static_array_member.i
static_const_member.i
static_const_member_2.i
struct_rename.i
struct_value.i
sym.i
tag_no_clash_with_variable.i
template.i fix example max macro/template and external max macro conflicts 2005-09-16 00:35:38 +00:00
template_arg_replace.i
template_arg_scope.i
template_arg_typename.i
template_array_numeric.i
template_base_template.i
template_classes.i Test would not compile on windows because it defines a template class called Rectangle, but Windows defines a function called Rectangle in wingdi.h. Thus renamed Rectangle to RectangleTest. Note this should not affect any test cases, because they test RectangleInt which is defined as RectangleText<int>. Thus the external api to the produced module does not change. 2005-09-24 21:42:07 +00:00
template_const_ref.i
template_construct.i
template_default.i typemap fix for c# and visual c++ 2005-10-09 19:24:21 +00:00
template_default2.i
template_default_arg.i adding more tests 2004-11-15 22:58:10 +00:00
template_default_inherit.i
template_default_pointer.i add template_default_pointer broken case 2004-12-01 01:14:56 +00:00
template_default_qualify.i
template_default_vw.i
template_enum.i
template_enum_ns_inherit.i
template_enum_typedef.i
template_explicit.i fix example max macro/template and external max macro conflicts 2005-09-16 00:35:38 +00:00
template_expr.i added more test cases and broken ones 2004-11-15 18:45:28 +00:00
template_extend1.i
template_extend2.i
template_extend_overload.i
template_extend_overload_2.i
template_forward.i
template_inherit.i
template_inherit_abstract.i php4 multiple inheritance warning suppression 2005-10-08 11:37:27 +00:00
template_int_const.i
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 add private case and runtime 2005-02-23 02:04:37 +00:00
template_tbase_template.i
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 add template + typedef + fnc case reported by Carlos Pita. Broken in 1.3.24, but works in CVS. 2005-05-16 01:18:47 +00:00
template_typedef_import.i
template_typedef_import.list
template_typedef_ns.i add templatereduce 2005-03-19 19:45:24 +00:00
template_typedef_ptr.i
template_typemaps.i add template_extmode case 2005-04-01 20:05:54 +00:00
template_using.i add template+using test 2005-06-13 16:41:27 +00:00
template_virtual.i add missing method bodies 2004-12-02 21:19:12 +00:00
template_whitespace.i
threads.i A testcase for testing multi-thread issues 2005-06-01 20:40:45 +00:00
throw_exception.i Lots more bug fixes for the chicken module: almost the entire test-sutie now runs 2005-03-17 07:28:19 +00:00
typedef_array_member.i added more test cases and broken ones 2004-11-15 18:45:28 +00:00
typedef_class.i
typedef_funcptr.i
typedef_inherit.i
typedef_mptr.i
typedef_reference.i
typedef_scope.i add infinity loop case 2005-06-17 01:10:10 +00:00
typedef_struct.i test in C and fix names for ruby 2005-10-14 14:56:22 +00:00
typemap_namespace.i
typemap_ns_using.i
typemap_numinputs.i
typemap_self.i
typemap_subst.i
typemap_variables.i no special code for TCL is needed anymore 2005-10-20 12:19:19 +00:00
typemap_various.i Various fixes for Visual C++ 7.1 and Sun Studio 10 2005-06-03 20:52:16 +00:00
typename.i
union_scope.i
unions.i Fix to compile on Windows. The code defines a type called small, but Windows already defines that type in rpcndr.h. Added code to undef small at the start of the wrapper file. 2005-09-24 21:48:07 +00:00
using1.i
using2.i add infinity loop case 2005-06-17 01:10:10 +00:00
using_composition.i php4 multiple inheritance warning suppression 2005-10-08 11:37:27 +00:00
using_extend.i php4 multiple inheritance warning suppression 2005-10-08 11:37:27 +00:00
using_inherit.i
using_namespace.i php4 multiple inheritance warning suppression 2005-10-08 11:37:27 +00:00
using_pointers.i %csmethodmodifiers workaround for C# wrappers 2005-05-27 22:49:06 +00:00
using_private.i test virtual methods in private inheritance 2005-06-01 20:56:23 +00:00
using_protected.i
valuewrapper.i
valuewrapper_base.i
valuewrapper_const.i
valuewrapper_opaque.i
varargs.i more %varargs tests 2005-03-21 22:03:28 +00:00
virtual_derivation.i fix bug #1292926 2005-10-20 15:42:48 +00:00
virtual_destructor.i
virtual_poly.i fix minor warnings 2005-09-06 09:02:54 +00:00
voidtest.i finishing the first stage of the typemap unification scheme, fixing issues with gcc and valgrind 2005-10-20 09:47:56 +00:00
wrapmacro.i fix example max macro/template and external max macro conflicts 2005-09-16 00:35:38 +00:00

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.