swig/Examples/test-suite
Repository files (latest commit first)
Filename Latest commit message Latest commit date
William S Fulton 71679e2fce add new director tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9142 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-02 21:36:20 +00:00
..
allegrocl 02/27/2006: mutandiz 2006-02-27 21:45:07 +00:00
cffi Add test suites for CLISP, CFFI, UFFI. 2006-01-14 13:36:28 +00:00
chicken Update Chicken configuration to not use chicken-config 2006-04-06 01:16:57 +00:00
clisp Add test suites for CLISP, CFFI, UFFI. 2006-01-14 13:36:28 +00:00
csharp C# director runtime tests 2006-05-13 23:31:35 +00:00
errors
guile New test case integers. 2006-02-14 18:25:16 +00:00
guilescm Add test suites for CLISP, CFFI, UFFI. 2006-01-14 13:36:28 +00:00
java ensure %apply with char*, unsigned char* and signed char* works 2006-05-03 20:58:19 +00:00
lua bugfix #1356577, changed double=>lua_number in a few places. 2006-02-02 01:41:06 +00:00
mzscheme New test case integers. 2006-02-14 18:25:16 +00:00
ocaml fix for perl keyword 2006-03-07 23:05:11 +00:00
perl5 more fixes/tests for empty strings 2006-05-04 04:45:41 +00:00
php4 Removed support for -dlname (use -module instead). Fixed 2006-05-19 05:43:26 +00:00
pike
python remove debug 2006-05-05 23:24:58 +00:00
ruby more fixes/tests for empty strings 2006-05-04 04:45:41 +00:00
schemerunme [MzScheme] Typemaps for all integral types now accept the full range 2006-02-19 19:28:42 +00:00
tcl add option to use valgrind 2006-02-23 07:17:49 +00:00
testdir
uffi Add test suites for CLISP, CFFI, UFFI. 2006-01-14 13:36:28 +00:00
.cvsignore
abstract_access.i add support for named warning codes 2006-01-06 11:42:24 +00:00
abstract_inherit.i add support for named warning codes 2006-01-06 11:42:24 +00:00
abstract_inherit_ok.i add support for named warning codes 2006-01-06 11:42:24 +00:00
abstract_signature.i virtual method hiding fix 2006-02-17 23:41:57 +00:00
abstract_typedef.i
abstract_typedef2.i
abstract_virtual.i Silence visual studio 2006-01-10 23:24:57 +00:00
access_change.i
add_link.i
aggregate.i use include <> instead of "" for system files 2006-01-15 02:08:31 +00:00
allowexcept.i fix unused 'fail:' label warnings 2006-02-05 04:08:56 +00:00
anonymous_bitfield.i
apply_strings.i add in intended %apply 2006-05-05 23:26:36 +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 add <stdlib.h> for malloc and lua 2006-01-31 06:16:41 +00:00
arrays_dimensionless.i add support for named warning codes 2006-01-06 11:42:24 +00:00
arrays_global.i more test cases, less cast operations 2006-01-07 00:28:51 +00:00
arrays_global_twodim.i more test cases, less cast operations 2006-01-07 00:57:44 +00:00
arrays_scope.i
bloody_hell.i add support for named warning codes 2006-01-06 11:42:24 +00:00
bools.i add support for named warning codes 2006-01-06 11:42:24 +00:00
cast_operator.i
casts.i
char_constant.i fix bug #1435090 2006-02-21 18:04:59 +00:00
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 add macro to disable the extra qualifications in members, which seems to be no standard and not supported in gcc4.1 or so 2006-01-21 08:24:52 +00:00
clientdata_prop.list
clientdata_prop_a.h
clientdata_prop_a.i
clientdata_prop_b.h
clientdata_prop_b.i
common.mk add new director tests 2006-06-02 21:36:20 +00:00
compactdefaultargs.i
const_const.i
const_const_2.i
constant_pointers.i add more cases 2006-01-19 04:48:25 +00:00
constants.i
constover.i
constructor_copy.i more fixes for '%rename Class' + %copyctor 2006-03-21 19:12:43 +00:00
constructor_exception.i
constructor_explicit.i
constructor_value.i
contract.i add support for named warning codes 2006-01-06 11:42:24 +00:00
conversion.i
conversion_namespace.i
conversion_ns_template.i fix repeated symbol 2006-02-05 04:09:36 +00:00
cplusplus_throw.i muffle exception specification ignored warning (VC++). This is only for testcases that introduce exception specifications in the testcase case itself. 2006-01-12 23:43:16 +00:00
cpp_basic.i fix macro expansion issue reported by Andreas Held 2006-02-13 08:56:55 +00:00
cpp_broken.i
cpp_enum.i
cpp_namespace.i
cpp_nodefault.i remove debug printout 2006-02-04 17:37:09 +00:00
cpp_static.i
cpp_typedef.i
csharp_attributes.i
csharp_exceptions.i Add inner exception tests 2006-03-02 23:19:56 +00:00
csharp_features.i
csharp_typemaps.i
default_args.i use include <> instead of "" for system files 2006-01-15 02:08:31 +00:00
default_constructor.i check/fix the %delobject feature for member methods 2006-01-29 01:21:52 +00:00
defvalue_constructor.i
derived_byvalue.i
derived_nested.i
destructor_reprotected.i
director_abstract.i use include <> instead of "" for system files 2006-01-15 02:08:31 +00:00
director_basic.i use include <> instead of "" for system files 2006-01-15 02:08:31 +00:00
director_classes.i Correct comments 2006-06-02 20:52:00 +00:00
director_constructor.i
director_default.i use include <> instead of "" for system files 2006-01-15 02:08:31 +00:00
director_detect.i use include <> instead of "" for system files 2006-01-15 02:08:31 +00:00
director_enum.i add support for named warning codes 2006-01-06 11:42:24 +00:00
director_exception.i muffle exception specification ignored warning (VC++). This is only for testcases that introduce exception specifications in the testcase case itself. 2006-01-12 23:43:16 +00:00
director_finalizer.i
director_frob.i add support for named warning codes 2006-01-06 11:42:24 +00:00
director_nested.i Add in missing director directives 2006-06-02 20:53:37 +00:00
director_primitives.i Correct comments 2006-06-02 20:52:00 +00:00
director_protected.i new fix for director protected members + overloading 2006-02-11 18:09:46 +00:00
director_redefined.i
director_string.i use include <> instead of "" for system files 2006-01-15 02:08:31 +00:00
director_unroll.i
director_using.i Add in missing director directives 2006-06-02 20:53:37 +00:00
director_wombat.i add support for named warning codes 2006-01-06 11:42:24 +00:00
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 add support for named warning codes 2006-01-06 11:42:24 +00:00
dynamic_cast.i
empty.i
enum_plus.i add support for named warning codes 2006-01-06 11:42:24 +00:00
enum_scope_template.i
enum_template.i fix extra ; 2006-01-19 04:49:10 +00:00
enum_thorough.i workaround global namespace pollution by older versions of perl 2006-02-10 16:43:49 +00:00
enum_thorough_proper.i
enum_thorough_simple.i
enum_thorough_typesafe.i
enum_thorough_typeunsafe.i
enum_var.i
enums.i fix error #1468674 enums + char 2006-04-14 08:52:29 +00:00
evil_diamond.i add support for named warning codes 2006-01-06 11:42:24 +00:00
evil_diamond_ns.i add support for named warning codes 2006-01-06 11:42:24 +00:00
evil_diamond_prop.i add support for named warning codes 2006-01-06 11:42:24 +00:00
exception_order.i change variable name for Ruby 2006-01-29 01:14:57 +00:00
extend_default.i add support for named warning codes 2006-01-06 11:42:24 +00:00
extend_placement.i
extend_template.i
extend_template_ns.i
extend_variable.i
extern_declaration.i
extern_namespace.i fix extra ; 2006-01-19 04:49:10 +00:00
extern_throws.i muffle exception specification ignored warning (VC++). This is only for testcases that introduce exception specifications in the testcase case itself. 2006-01-12 23:43:16 +00:00
features.i add support for named warning codes 2006-01-06 11:42:24 +00:00
file_test.i
fragments.i
friends.i add macro to disable the extra qualifications in members, which seems to be no standard and not supported in gcc4.1 or so 2006-01-21 08:24:52 +00:00
function_typedef.i
global_ns_arg.i add missing check for noargs 2006-02-03 09:08:27 +00:00
global_vars.i add support for named warning codes 2006-01-06 11:42:24 +00:00
grouping.i
ignore_parameter.i
ignore_template_constructor.i fix ruby std::vector to support element with nodefault constructors 2006-02-08 23:55:53 +00:00
immutable.i
import_nomodule.h
import_nomodule.i add %delobject, which is the equivalent of %newobject but for functions that delete an element. This allows to properly disown the argument, as the %newobject directive allows to 'own' the object 2006-01-09 17:35:04 +00:00
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 add support for named warning codes 2006-01-06 11:42:24 +00:00
imports_b.h
imports_b.i
inctest.i
inherit.i
inherit_missing.i Fix dodgy code 2006-01-10 23:25:40 +00:00
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 New test case integers. 2006-02-14 18:25:16 +00:00
intermediary_classname.i vc++ warning suppression 2006-01-24 21:42:02 +00:00
java_constants.i
java_director.i add support for named warning codes 2006-01-06 11:42:24 +00:00
java_enums.i
java_jnitypes.i
java_lib_arrays.i add in check for array inputs 2006-01-20 22:18:44 +00:00
java_lib_arrays_dimensionless.i
java_lib_various.i
java_pragmas.i
java_throws.i forgotten checkin - warning fixes 2006-01-27 23:22:27 +00:00
java_typemaps_proxy.i
java_typemaps_typewrapper.i
kind.i add support for named warning codes 2006-01-06 11:42:24 +00:00
langobj.i set PyObject * out typemaps back to simple returns 2006-01-28 03:38:05 +00:00
lextype.i add <stdlib.h> for malloc and lua 2006-01-31 06:16:41 +00:00
li_attribute.i
li_carrays.i use include <> instead of "" for system files 2006-01-15 02:08:31 +00:00
li_cdata.i use include <> instead of "" for system files 2006-01-15 02:08:31 +00:00
li_cmalloc.i use include <> instead of "" for system files 2006-01-15 02:08:31 +00:00
li_constraints.i fix inclusion path 2006-01-15 01:09:27 +00:00
li_cpointer.i add support for named warning codes 2006-01-06 11:42:24 +00:00
li_cstring.i use consistent macro name SWIG_CSTRING_UNIMPL 2006-01-06 01:52:19 +00:00
li_cwstring.i use consistent macro name SWIG_CSTRING_UNIMPL 2006-01-06 01:52:19 +00:00
li_factory.i readd %factory for create method 2006-03-19 23:28:34 +00:00
li_implicit.i add support for named warning codes 2006-01-06 11:42:24 +00:00
li_math.i
li_std_deque.i
li_std_except.i mods for VC++ 2006-01-13 23:40:42 +00:00
li_std_pair.i
li_std_string.i more fixes/tests for empty strings 2006-05-04 04:45:41 +00:00
li_std_vector.i Fix compilation error in test case (gcc). 2006-03-03 23:35:57 +00:00
li_std_wstring.i add missing header 2006-03-19 15:40:32 +00:00
li_stdint.i
li_typemaps.i
li_windows.i
list_vector.i
long_long.i add support for named warning codes 2006-01-06 11:42:24 +00:00
long_long_apply.i
member_template.i
memberin1.i
minherit.i
mixed_types.i add support for named warning codes 2006-01-06 11:42:24 +00:00
mod.h avoid cast list elements, add more debug info, add Rubin's multi-module 'mod'example 2006-01-20 18:59:06 +00:00
mod.list avoid cast list elements, add more debug info, add Rubin's multi-module 'mod'example 2006-01-20 18:59:06 +00:00
mod_a.i avoid cast list elements, add more debug info, add Rubin's multi-module 'mod'example 2006-01-20 18:59:06 +00:00
mod_b.i avoid cast list elements, add more debug info, add Rubin's multi-module 'mod'example 2006-01-20 18:59:06 +00:00
multiple_inheritance.i add missing virtual destructors 2006-03-03 22:35:23 +00:00
multivalue.i
name.i add support for named warning codes 2006-01-06 11:42:24 +00:00
name_cxx.i add support for named warning codes 2006-01-06 11:42:24 +00:00
name_warnings.i workaround gcc-2.96 failures 2006-02-08 22:26:44 +00:00
namespace_class.i more fixes for %copyctor 2006-03-20 10:39:01 +00:00
namespace_enum.i
namespace_extend.i add support for named warning codes 2006-01-06 11:42:24 +00:00
namespace_nested.i add more cases 2006-02-22 21:54:19 +00:00
namespace_spaces.i
namespace_template.i add support for named warning codes 2006-01-06 11:42:24 +00:00
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 add <stdlib.h> for malloc and lua 2006-01-31 06:16:41 +00:00
operator_overload.i fix php keyword warnings 2006-01-23 21:46:49 +00:00
ordering.i fix php keyword warnings 2006-01-23 21:46:49 +00:00
overload_complicated.i
overload_copy.i
overload_extend.i add <stdlib.h> for malloc and lua 2006-01-31 06:16:41 +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 add support for named warning codes 2006-01-06 11:42:24 +00:00
preproc.i fix bug #1060789 2006-02-24 02:39:24 +00:00
primitive_ref.i
primitive_types.i muffle exception specification ignored warning (VC++). This is only for testcases that introduce exception specifications in the testcase case itself. 2006-01-12 23:43:16 +00:00
private_assign.i add <stdlib.h> for malloc and lua 2006-01-31 06:16:41 +00:00
profiletest.i
protected_rename.i
pure_virtual.i add support for named warning codes 2006-01-06 11:42:24 +00:00
README
redefined.i add support for named warning codes 2006-01-06 11:42:24 +00:00
refcount.h
refcount.i add extended support for smart pointers 2006-02-04 09:48:40 +00:00
reference_global_vars.i add support for named warning codes 2006-01-06 11:42:24 +00:00
register_par.i
rename_camel.i add initial regexp support based on the coptional rxspencer library. Active it using --with-rxspencer after installing the rxspencer library 2006-01-17 00:32:21 +00:00
rename_scope.i fix [ 1432152 ] %rename friend operators in namespace 2006-02-16 06:59:06 +00:00
ret_by_value.i add support for named warning codes 2006-01-06 11:42:24 +00:00
return_const_value.i type correction 2006-01-10 23:48:55 +00:00
return_value_scope.i
rname.i
sizeof_pointer.i
sizet.i
smart_pointer_const.i
smart_pointer_const2.i
smart_pointer_extend.i add support for named warning codes 2006-01-06 11:42:24 +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_typedef.i
sneaky1.i fix for perl keyword 2006-03-07 23:05:11 +00:00
static_array_member.i
static_const_member.i
static_const_member_2.i add support for named warning codes 2006-01-06 11:42:24 +00:00
struct_rename.i
struct_value.i
sym.i
tag_no_clash_with_variable.i
template.i add support for named warning codes 2006-01-06 11:42:24 +00:00
template_arg_replace.i add support for named warning codes 2006-01-06 11:42:24 +00:00
template_arg_scope.i
template_arg_typename.i
template_array_numeric.i
template_base_template.i fix php keyword warnings 2006-01-23 21:46:49 +00:00
template_classes.i add nested class test 2006-02-03 07:49:04 +00:00
template_const_ref.i
template_construct.i
template_default.i add support for named warning codes 2006-01-06 11:42:24 +00:00
template_default2.i add support for named warning codes 2006-01-06 11:42:24 +00:00
template_default_arg.i add support for named warning codes 2006-01-06 11:42:24 +00:00
template_default_inherit.i add support for named warning codes 2006-01-06 11:42:24 +00:00
template_default_pointer.i
template_default_qualify.i add support for named warning codes 2006-01-06 11:42:24 +00:00
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 add support for named warning codes 2006-01-06 11:42:24 +00:00
template_explicit.i add support for named warning codes 2006-01-06 11:42:24 +00:00
template_expr.i
template_extend1.i add support for named warning codes 2006-01-06 11:42:24 +00:00
template_extend2.i add support for named warning codes 2006-01-06 11:42:24 +00:00
template_extend_overload.i
template_extend_overload_2.i
template_forward.i fix template forward + using 2006-01-24 22:23:12 +00:00
template_inherit.i
template_inherit_abstract.i add support for named warning codes 2006-01-06 11:42:24 +00:00
template_int_const.i add support for named warning codes 2006-01-06 11:42:24 +00:00
template_ns.i add support for named warning codes 2006-01-06 11:42:24 +00:00
template_ns2.i
template_ns3.i add support for named warning codes 2006-01-06 11:42:24 +00:00
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 fix for directors, now the test-suite runs again using -directors 2006-02-21 11:20:09 +00:00
template_retvalue.i
template_specialization.i
template_specialization_defarg.i
template_specialization_enum.i add support for named warning codes 2006-01-06 11:42:24 +00:00
template_static.i fix extra ; 2006-01-19 04:49:10 +00:00
template_tbase_template.i php keyword fixes 2006-03-07 21:58:28 +00:00
template_type_namespace.i add support for named warning codes 2006-01-06 11:42:24 +00:00
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 fix extra ; 2006-01-19 04:49:10 +00:00
template_typedef_ptr.i add support for named warning codes 2006-01-06 11:42:24 +00:00
template_typedef_rec.i
template_typemaps.i
template_using.i
template_virtual.i
template_whitespace.i
threads.i
throw_exception.i muffle exception specification ignored warning (VC++). This is only for testcases that introduce exception specifications in the testcase case itself. 2006-01-12 23:43:16 +00:00
traits.i
typedef_array_member.i
typedef_class.i
typedef_funcptr.i add support for named warning codes 2006-01-06 11:42:24 +00:00
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 Fix for C# which doesn't have a freearg typemap 2005-12-29 23:57:19 +00:00
typemap_ns_using.i add support for named warning codes 2006-01-06 11:42:24 +00:00
typemap_numinputs.i
typemap_self.i
typemap_subst.i fix unused warnings 2006-02-05 04:10:10 +00:00
typemap_variables.i add the SWIGUTL macro to identify a language using the Unified Typemap Library, and using it around 2006-01-28 17:35:22 +00:00
typemap_various.i extend comment for %nocopyctor 2006-03-20 10:49:38 +00:00
typename.i
union_scope.i add support for named warning codes 2006-01-06 11:42:24 +00:00
unions.i
using1.i add support for named warning codes 2006-01-06 11:42:24 +00:00
using2.i add support for named warning codes 2006-01-06 11:42:24 +00:00
using_composition.i add support for named warning codes 2006-01-06 11:42:24 +00:00
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 remove vc++ noise 2006-01-21 00:02:05 +00:00
using_private.i
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 solaris warning fix 2006-02-17 23:36:39 +00:00
voidtest.i add test for 'void *' argument 2006-02-04 00:02:03 +00:00
wrapmacro.i fix for directors, now the test-suite runs again using -directors 2006-02-21 11:20:09 +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.