swig/Examples/test-suite
Marcelo Matus 495c5e6306 add test for 'void *' argument
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8706 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-04 00:34:12 +00:00
..
allegrocl *** empty log message *** 2006-01-30 19:14:40 +00:00
cffi Add test suites for CLISP, CFFI, UFFI. 2006-01-14 13:36:28 +00:00
chicken add %naturalvar to std::string and remove local li_std_string.i, so Mattias can finish the examples here :) 2006-01-30 19:52:57 +00:00
clisp Add test suites for CLISP, CFFI, UFFI. 2006-01-14 13:36:28 +00:00
csharp add in const std::string variable tests 2006-01-29 14:47:38 +00:00
errors
guile Add test suites for CLISP, CFFI, UFFI. 2006-01-14 13:36:28 +00:00
guilescm Add test suites for CLISP, CFFI, UFFI. 2006-01-14 13:36:28 +00:00
java add in const std::string variable tests 2006-01-29 14:47:38 +00:00
lua bugfix #1356577, changed double=>lua_number in a few places. 2006-02-02 01:41:06 +00:00
mzscheme Get clean target working again 2005-11-26 09:36:21 +00:00
ocaml
perl5 add test for 'void *' argument 2006-02-04 00:02:45 +00:00
php4 Add in runtime tests for std::string variables 2006-01-29 15:52:48 +00:00
pike
python add test for 'void *' argument 2006-02-04 00:34:12 +00:00
ruby add test for 'void *' argument 2006-02-04 00:34:12 +00:00
schemerunme Fix test case. 2006-01-30 19:03:09 +00:00
tcl add/fix std_string test with %naturalvar 2006-01-30 06:14:35 +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 add support for named warning codes 2006-01-06 11:42:24 +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 test to make sure that variables do not use %exception by default 2006-02-03 21:59:37 +00:00
anonymous_bitfield.i
argout.i
array_member.i more test cases, less cast operations 2006-01-07 00:57:44 +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
char_strings.i add test for %newobject 2006-01-19 08:35:18 +00:00
class_ignore.i adding more broken cases 2005-10-27 09:14:20 +00:00
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 Test for bug #1204342 (put in broken section for now) 2006-02-03 22:49:07 +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 add more cases 2006-01-19 04:48:25 +00:00
constants.i adding more broken cases 2005-10-27 09:14:20 +00:00
constover.i
constructor_copy.i generate implicit copyctor, add -nocopyctor, and clarify the -nodefault, -nodefaultctor, -nodefautldtor options 2005-12-22 06:26:26 +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
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 add support for named warning codes 2006-01-06 11:42:24 +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
cpp_namespace.i
cpp_nodefault.i
cpp_static.i
cpp_typedef.i
csharp_attributes.i
csharp_exceptions.i vc++ warning suppression 2006-01-24 21:42:02 +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_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 support for named warning codes 2006-01-06 11:42:24 +00:00
director_protected.i
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
director_wombat.i add support for named warning codes 2006-01-06 11:42:24 +00:00
director_wstring.i use include <> instead of "" for system files 2006-01-15 02:08:31 +00:00
disown.i add support for named warning codes 2006-01-06 11:42:24 +00:00
dynamic_cast.i
empty.i test wrapping nothing! 2005-09-28 20:55:18 +00:00
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 add support for named warning codes 2006-01-06 11:42:24 +00:00
enum_thorough_proper.i
enum_thorough_simple.i
enum_thorough_typesafe.i
enum_thorough_typeunsafe.i
enum_var.i
enums.i add support for named warning codes 2006-01-06 11:42:24 +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 add namespace case 2005-11-05 12:36:38 +00:00
extern_declaration.i massive typemap unification 2005-10-18 13:24:15 +00:00
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
immutable.i capitalization for Ruby 2005-10-15 01:13:17 +00:00
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 fix minor warnings 2005-09-06 09:02:54 +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 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 Fix dodgy code 2006-01-10 23:25:40 +00:00
inherit_same_name.i
inherit_void_arg.i
inline_initializer.i
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 add disown.i and li_attribute.i 2005-10-26 07:08:18 +00:00
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_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 reenable missing INPUT/OUTPUT, and add tests for std::string 2006-01-30 19:55:43 +00:00
li_std_vector.i test vectors of primitive types 2005-12-27 01:51:32 +00:00
li_std_wstring.i remove vc++ noise 2006-01-21 00:02:05 +00:00
li_stdint.i adding stdint.i, the ISO C99 int types 2005-11-21 20:27:24 +00:00
li_typemaps.i
li_windows.i More types added eg UINT8, WORD, BYTE etc. 2005-11-14 22:33:50 +00:00
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 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 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 support for named warning codes 2006-01-06 11:42:24 +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 add support for named warning codes 2006-01-06 11:42:24 +00:00
namespace_class.i add support for named warning codes 2006-01-06 11:42:24 +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 support for named warning codes 2006-01-06 11:42:24 +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 c# keyword clash 2005-11-26 08:39:05 +00:00
namespace_union.i
namespace_virtual_method.i
naturalvar.i another case 2005-12-28 22:41:05 +00:00
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 silence warning for chicken 2006-01-29 18:54:24 +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
overload_template_fast.i 'oficially' add fastdispatch option 2005-12-08 21:30:06 +00:00
pointer_in_out.i
pointer_reference.i add support for named warning codes 2006-01-06 11:42:24 +00:00
preproc.i simple #warning and #error tests 2006-01-26 22:33:34 +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 add more cases 2005-12-27 22:35:54 +00:00
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 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 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
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 fixes for chicken and the STL/STD cases 2005-11-05 12:38:28 +00:00
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
static_array_member.i more cleanups 2005-12-22 08:43:11 +00:00
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 add support for named warning codes 2006-01-06 11:42: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 adding more broken cases 2005-10-27 09:14:20 +00:00
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 php keyword fixes 2005-11-26 08:38:49 +00:00
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 add support for named warning codes 2006-01-06 11:42:24 +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 add support for named warning codes 2006-01-06 11:42:24 +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 fix name 2005-12-22 23:47:08 +00:00
template_typemaps.i
template_using.i
template_virtual.i
template_whitespace.i php keyword fixes 2005-11-26 08:38:49 +00:00
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 add initial traits 2005-11-04 10:58:28 +00:00
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 add infinity loop case 2005-06-17 01:10:10 +00:00
typedef_sizet.i add test for 'typedef unsigned long size_t' 2005-12-07 07:35:11 +00:00
typedef_struct.i test in C and fix names for ruby 2005-10-14 14:56:22 +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 add support for named warning codes 2006-01-06 11:42:24 +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
typename.i
union_scope.i add support for named warning codes 2006-01-06 11:42:24 +00:00
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 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 support for named warning codes 2006-01-06 11:42:24 +00:00
using_inherit.i
using_namespace.i add support for named warning codes 2006-01-06 11:42:24 +00:00
using_pointers.i remove vc++ noise 2006-01-21 00:02:05 +00:00
using_private.i add missing virtual destructor 2005-12-18 02:30:31 +00:00
using_protected.i
valuewrapper.i
valuewrapper_base.i
valuewrapper_const.i
valuewrapper_opaque.i
varargs.i
virtual_derivation.i fix bug #1292926 2005-10-20 15:42:48 +00:00
virtual_destructor.i
virtual_poly.i add support for named warning codes 2006-01-06 11:42:24 +00:00
voidtest.i add test for 'void *' argument 2006-02-04 00:02:03 +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.