swig/SWIG/Examples/test-suite
Marcelo Matus 1ed8f4209a add test for nondynamic
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6265 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-26 00:52:24 +00:00
..
chicken Restore multiple build directories for test-suite 2004-09-10 22:25:02 +00:00
csharp Restore multiple build directories for test-suite 2004-09-10 22:25:02 +00:00
errors
guile Fix name of module init function. 2004-07-11 17:09:13 +00:00
guilescm Testcases that used the prebuilt runtime library generate their own runtime library DLL/so and use that instead now 2004-07-10 16:36:19 +00:00
java Restore multiple build directories for test-suite 2004-09-10 22:25:02 +00:00
mzscheme Testcases that used the prebuilt runtime library generate their own runtime library DLL/so and use that instead now 2004-07-10 16:36:19 +00:00
ocaml Replace ; with && where appropriate. This fixes the makefiles so that Make correctly errors out rather than blindly carrying on when some error occurs. 2004-02-20 22:57:23 +00:00
perl5 new runtime test 2004-08-24 22:29:47 +00:00
php4 Replace ; with && where appropriate. This fixes the makefiles so that Make correctly errors out rather than blindly carrying on when some error occurs. 2004-02-20 22:57:23 +00:00
pike Testcases that used the prebuilt runtime library generate their own runtime library DLL/so and use that instead now 2004-07-10 16:36:19 +00:00
python add test for nondynamic 2004-09-26 00:52:24 +00:00
ruby Ignore .bundle files in Examples/test-suite/ruby (for Mac OS X). 2004-08-24 13:39:36 +00:00
schemerunme The guile and chicken _runme scripts are now shared 2004-06-07 05:03:39 +00:00
tcl Testcases that used the prebuilt runtime library generate their own runtime library DLL/so and use that instead now 2004-07-10 16:36:19 +00:00
testdir Fixes for Sun Workshop compiler 2004-06-15 20:06:19 +00:00
.cvsignore *** empty log message *** 2003-09-02 16:04:04 +00:00
abstract_access.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
abstract_inherit.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
abstract_inherit_ok.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
abstract_signature.i
abstract_typedef.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
abstract_typedef2.i Various warning fixes for Visual Studio 2003 C++ compiler 2004-09-01 22:24:24 +00:00
abstract_virtual.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
add_link.i
aggregate.i *** empty log message *** 2003-11-13 17:02:30 +00:00
anonymous_arg.i
anonymous_bitfield.i more warn fixes 2004-09-18 00:27:40 +00:00
argout.i
array_member.i
array_typedef_memberin.i remove more warnings, ICC 2004-09-17 21:46:44 +00:00
arrayref.i
arrays.i Consolidated some of the C test cases. 2003-12-02 18:37:42 +00:00
arrays_dimensionless.i
arrays_global.i silence warning for char[] 2004-08-25 05:27:43 +00:00
arrays_global_twodim.i
arrays_scope.i
bloody_hell.i
bool_default.i
bools.i Better bool test by Mark Traudt 2004-07-23 22:45:29 +00:00
cast_operator.i test fix 2004-08-12 21:06:45 +00:00
casts.i
char_constant.i
char_strings.i test crash fix 2004-08-29 22:38:15 +00:00
class_ignore.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
class_scope_weird.i
common.mk Bill Clarke patch to restore multiple build directories for test-suite 2004-09-10 22:24:24 +00:00
const_const.i
const_const_2.i
constant_pointers.i remove more warnings, ICC 2004-09-17 21:46:44 +00:00
constover.i
constructor_exception.i Various warning fixes for Visual Studio 2003 C++ compiler 2004-09-01 22:24:24 +00:00
constructor_explicit.i
constructor_value.i
contract.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
conversion.i
conversion_namespace.i
conversion_ns_template.i added constructor case 2004-01-14 02:45:29 +00:00
cplusplus_throw.i
cpp_enum.i fix anon enums 2004-05-28 02:10:02 +00:00
cpp_enum_scope.i
cpp_namespace.i remove more warnings, ICC 2004-09-17 21:46:44 +00:00
cpp_nodefault.i
cpp_static.i Improved test to test parameters in static functions 2003-09-18 19:16:18 +00:00
cpp_typedef.i
default_cast.i Added string test 2003-11-25 16:45:12 +00:00
default_char.i
default_constructor.i
default_ns.i
default_ref.i
defvalue_constructor.i new tests 2003-09-26 19:56:45 +00:00
derived_nested.i Three new broken test cases created to test various patches in the patch list. 2004-08-23 07:06:01 +00:00
director_abstract.i Removed unused typemap file includes 2003-09-16 20:53:11 +00:00
director_basic.i Removed unused typemap file includes 2003-09-16 20:53:11 +00:00
director_detect.i Suppress warnings about covariant return types in Java and C#. 2003-12-28 21:06:52 +00:00
director_exception.i forgot %feature(director) for Bar 2004-08-25 05:32:34 +00:00
director_finalizer.i
director_frob.i also, change the module name to director_frob 2004-01-22 00:52:06 +00:00
director_nested.i The dirprot feature is now disabled by default. Added dirprot option and ruby runtime examples. 2003-12-09 02:52:08 +00:00
director_protected.i Fixed more %rename errors, and moving 2003-12-11 03:59:18 +00:00
director_redefined.i eliminate spurious temporal variables 2004-01-14 06:46:20 +00:00
director_unroll.i Removed unused typemap file includes 2003-09-16 20:53:11 +00:00
director_using.i Fixed more %rename errors, and moving 2003-12-11 03:59:18 +00:00
director_wombat.i Enhanced to check typedef'd parameters in directors - Scott Michel contribution. 2003-11-01 20:06:09 +00:00
dynamic_cast.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
enum_plus.i
enum_scope.i fix for solaris 2004-09-01 09:32:48 +00:00
enum_scope_template.i
enum_thorough.i missing typename added to keep gcc-3.4 and other ISO compilers happy 2004-08-29 22:27:43 +00:00
enum_thorough_proper.i Proper enum test added. Needs JDK1.5 beta 2 2004-06-15 19:51:18 +00:00
enum_thorough_simple.i New default C/C++ enum wrapping approach which uses the type safe enum pattern for Java and C# 2004-05-24 20:05:40 +00:00
enum_thorough_typesafe.i New default C/C++ enum wrapping approach which uses the type safe enum pattern for Java and C# 2004-05-24 20:05:40 +00:00
enum_thorough_typeunsafe.i New default C/C++ enum wrapping approach which uses the type safe enum pattern for Java and C# 2004-05-24 20:05:40 +00:00
enum_var.i
enums.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
evil_diamond.i
evil_diamond_ns.i
evil_diamond_prop.i
exception_order.i fix precatching exception behaviour to postcatching 2004-01-12 23:40:58 +00:00
extend_placement.i
extend_template.i
extend_template_ns.i
extern_throws.i new tests 2003-09-26 19:56:45 +00:00
features.i New test case testing some broken aspects of %feature 2004-02-04 21:05:39 +00:00
file_test.i debug messages removed 2004-08-24 21:42:15 +00:00
fragments.i Simple patch to allow fragments to include other fragments: 2004-01-27 23:39:35 +00:00
friends.i Various warning fixes for Visual Studio 2003 C++ compiler 2004-09-01 22:24:24 +00:00
function_typedef.i
global_ns_arg.i
grouping.i
ignore_parameter.i Fix for Sun Workshop compiler 2004-06-15 19:48:06 +00:00
import_nomodule.h
import_nomodule.i remove more warnings, ICC 2004-09-17 21:46:44 +00:00
imports.list
imports_a.h add virtual destructor 2004-09-01 09:42:12 +00:00
imports_a.i Ruby warnings removed 2004-07-10 16:29:35 +00:00
imports_b.h enums added for testing across different SWIG generated modules 2004-04-22 20:32:48 +00:00
imports_b.i enums added for testing across different SWIG generated modules 2004-04-22 20:32:48 +00:00
imports_runtime.i Testcases that used the prebuilt runtime library generate their own runtime library DLL/so and use that instead now 2004-07-10 16:36:19 +00:00
inctest.i Added test for %import 2003-12-11 21:33:34 +00:00
inherit_missing.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
inherit_void_arg.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
inline_initializer.i
java_constants.i Test for %javaconstvalue added 2004-06-27 21:05:48 +00:00
java_enums.i Test for %javaconstvalue added 2004-06-27 21:05:48 +00:00
java_jnitypes.i
java_lib_arrays.i New default C/C++ enum wrapping approach which uses the type safe enum pattern for Java and C# 2004-05-24 20:05:40 +00:00
java_lib_various.i quieten Sun Workshop compiler 2004-08-30 16:08:34 +00:00
java_pragmas.i Mods for new java typemaps 2004-06-03 22:41:58 +00:00
java_throws.i Various warning fixes for Visual Studio 2003 C++ compiler 2004-09-01 22:24:24 +00:00
java_typemaps_proxy.i Correct changes 2004-06-04 23:19:44 +00:00
java_typemaps_typewrapper.i Correct changes 2004-06-04 23:19:44 +00:00
kind.i
lib_carrays.i
lib_cdata.i
lib_cmalloc.i
lib_constraints.i
lib_cpointer.i
lib_cstring.i
lib_math.i
lib_std_deque.i
lib_std_pair.i Added a new test case for the std_pair.i library module. 2003-09-19 22:05:08 +00:00
lib_std_string.i Added two more tests to lib_std_string.i, to test throwing a pointer to 2004-08-24 13:26:45 +00:00
lib_std_vector.i more tests 2004-03-21 23:38:59 +00:00
lib_typemaps.i more tests 2004-03-21 23:38:59 +00:00
list_vector.i
long_long.i
long_long_apply.i
member_template.i
memberin1.i
minherit.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
multiple_inheritance.i Three new broken test cases created to test various patches in the patch list. 2004-08-23 07:06:01 +00:00
multivalue.i The guile and chicken _runme scripts are now shared 2004-06-07 05:03:39 +00:00
name.i
name_cxx.i
name_inherit.i
name_warnings.i fix template complex 2004-03-17 09:43:35 +00:00
namespace_enum.i
namespace_extend.i
namespace_nested.i remove more warnings, ICC 2004-09-17 21:46:44 +00:00
namespace_spaces.i
namespace_template.i
namespace_typedef_class.i new test 2004-01-09 19:32:08 +00:00
namespace_typemap.i more warn fixes 2004-09-18 00:27:40 +00:00
namespace_union.i new tests 2003-09-26 19:56:45 +00:00
namespace_virtual_method.i
nested.i
newobject1.i
newobject2.i
overload_complicated.i overloading when SWIG cannot disambiguate parameters tests added 2004-02-12 21:45:11 +00:00
overload_copy.i
overload_extend.i
overload_extendc.i
overload_simple.i Added extra test case 2003-09-30 17:35:39 +00:00
overload_subtype.i
overload_template.i
pointer_in_out.i
pointer_reference.i
preproc.i add test for the mangling extension #@ preproc.i 2004-03-17 09:44:35 +00:00
primitive_ref.i
primitive_types.i fixes for char[ANY] 2004-09-17 07:25:58 +00:00
private_assign.i remove more warnings, ICC 2004-09-17 21:46:44 +00:00
profiletest.i added profile test 2004-06-14 09:09:12 +00:00
protected_rename.i Added missing function body which was causes linker errors 2003-12-12 23:19:07 +00:00
pure_virtual.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
README
redefined.i remove more warnings, ICC 2004-09-17 21:46:44 +00:00
refcount.h added refcount example using the old macro way and the proposed ref/unref features 2004-01-22 06:26:17 +00:00
refcount.i Added the ref/unref 'recursive' featues. See refcount.i for details 2004-02-10 09:21:36 +00:00
reference_global_vars.i
rename_default.i
rename_scope.i
ret_by_value.i
return_const_value.i Three new broken test cases created to test various patches in the patch list. 2004-08-23 07:06:01 +00:00
return_value_scope.i
rname.i
sizeof_pointer.i
smart_pointer_const.i
smart_pointer_const2.i
smart_pointer_multi.i
smart_pointer_multi_typedef.i
smart_pointer_namespace.i new tests 2003-10-01 21:55:26 +00:00
smart_pointer_namespace2.i new tests 2003-10-01 21:55:26 +00:00
smart_pointer_not.i
smart_pointer_overload.i
smart_pointer_protected.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
smart_pointer_rename.i
smart_pointer_simple.i
smart_pointer_static.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
smart_pointer_typedef.i
sneaky1.i
static_array_member.i Add %inline %{ ... %} 2004-08-17 14:31:32 +00:00
static_const_member.i
static_const_member_2.i
struct_rename.i
struct_value.i
sym.i
tag_no_clash_with_variable.i Add new C test tag_no_clash_with_variable 2004-04-27 17:33:26 +00:00
template.i
template_arg_replace.i
template_arg_scope.i
template_arg_typename.i
template_array_numeric.i
template_base_template.i fix errors on solaris CC 2004-09-18 01:31:59 +00:00
template_classes.i
template_const_ref.i
template_construct.i
template_default.i
template_default2.i
template_default_arg.i
template_default_inherit.i Test case fix for ISO compliant compilers 2004-06-04 23:32:51 +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
template_extend1.i
template_extend2.i
template_extend_overload.i
template_extend_overload_2.i
template_forward.i
template_inherit.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
template_inherit_abstract.i Multiple inheritance workarounds for C# 2003-12-08 21:31:05 +00:00
template_int_const.i
template_ns.i add test for the mangling extension #@ preproc.i 2004-03-17 09:44:35 +00:00
template_ns2.i
template_ns3.i
template_ns4.i fix errors on solaris CC 2004-09-18 01:31:59 +00:00
template_ns_enum.i
template_ns_enum2.i
template_ns_inherit.i
template_ns_scope.i
template_opaque.i fix warning 2004-09-01 08:47:47 +00:00
template_partial_arg.i
template_qualifier.i
template_ref_type.i
template_rename.i
template_retvalue.i
template_specialization.i fix warning 2004-01-13 02:52:25 +00:00
template_specialization_defarg.i
template_specialization_enum.i
template_static.i
template_tbase_template.i fix errors on solaris CC 2004-09-18 01:31:59 +00:00
template_type_namespace.i
template_typedef.i Various warning fixes for Visual Studio 2003 C++ compiler 2004-09-01 22:24:24 +00:00
template_typedef_cplx.i Various warning fixes for Visual Studio 2003 C++ compiler 2004-09-01 22:24:24 +00:00
template_typedef_cplx2.h Various warning fixes for Visual Studio 2003 C++ compiler 2004-09-01 22:24:24 +00:00
template_typedef_cplx2.i
template_typedef_cplx3.i
template_typedef_cplx4.i
template_typedef_cplx5.i *** empty log message *** 2003-11-27 16:54:26 +00:00
template_typedef_import.i
template_typedef_import.list
template_typedef_import_runtime.i Testcases that used the prebuilt runtime library generate their own runtime library DLL/so and use that instead now 2004-07-10 16:36:19 +00:00
template_typedef_ptr.i add new broken case template_typedef_ptr 2004-04-09 22:14:51 +00:00
template_virtual.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
template_whitespace.i
throw_exception.i remove more warnings, ICC 2004-09-17 21:46:44 +00:00
typedef_array_member.i
typedef_class.i
typedef_funcptr.i For for workshop compilers 2004-08-12 21:07:39 +00:00
typedef_inherit.i more warn fixes 2004-09-18 00:27:40 +00:00
typedef_mptr.i
typedef_reference.i
typedef_scope.i
typemap_namespace.i
typemap_ns_using.i
typemap_self.i added more ugly 'self' cases 2004-01-15 22:59:55 +00:00
typemap_subst.i
typename.i
union_scope.i
unions.i
using1.i
using2.i
using_composition.i
using_extend.i
using_inherit.i
using_namespace.i
using_pointers.i add virtual destructors where needed 2004-04-11 12:10:44 +00:00
using_private.i
using_protected.i
valuewrapper.i value_wrapper -> valuewrapper. My test suite depends on the module name 2003-12-09 02:06:57 +00:00
valuewrapper_base.i
valuewrapper_const.i
valuewrapper_default.i
varargs.i
virtual_derivation.i _a -> m_a name change 2004-04-09 20:01:43 +00:00
virtual_destructor.i Added a protected destructor in derived class 2003-11-29 00:29:54 +00:00
virtual_poly.i Suppress warnings about covariant return types in Java and C#. 2003-12-28 21:06:52 +00:00
voidtest.i remove more warnings, ICC 2004-09-17 21:46:44 +00:00
wrapmacro.i add python runme 2004-01-20 20:49:05 +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.