swig/Examples/test-suite
Vadim Zeitlin 9a8ebbb998 Throw SWIG_CException from C++ wrappers automatically
Check for the pending exception after every call to a wrapper function
not marked "noexcept" and throw a C++ exception if necessary.

Add C++ version of the exception example to show how this works.

Also change SWIG_CException to use member functions for checking for and
resetting pending exceptions, this seems better than having separate
functions for it and will make it easier to customize exception handling
later by just replacing SWIG_CException class with something else.

Note that we still use a global (and not a member) function for raising
the exception, but this one is not exported at all, and needs to be a
function in order to be easily callable from other modules (see the
upcoming commit).
2021-11-27 00:19:05 +01:00
..
c Throw SWIG_CException from C++ wrappers automatically 2021-11-27 00:19:05 +01:00
cffi
csharp Fix Java %interface family of macros 2021-04-27 23:37:18 +01:00
d
errors Remove support for $source and $target 2021-04-30 10:20:14 +12:00
go
guile
java Fix Java %interface family of macros 2021-04-27 23:37:18 +01:00
javascript Don't run ccomplextest as part of JavaScript test suite 2021-10-01 02:11:11 +02:00
lua
mzscheme
ocaml
octave
perl5 perl5: Enable more testcases 2021-04-21 15:46:41 +12:00
php [php] Fix -prefix when there are subclasses 2021-05-12 15:04:31 +12:00
python
r
ruby Do nothing in li_std_functors test when using Ruby 2.6 2021-10-01 04:26:15 +02:00
schemerunme [Chicken] Remove code for Chicken 2021-05-16 08:42:39 +12:00
scilab
tcl
testdir
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 Drop special case for PHP in allowexcept.i 2021-04-17 07:38:23 +12:00
allprotected.i
allprotected_not.i
anonymous_bitfield.i
apply_signed_char.i
apply_strings.i [Chicken] Remove code for Chicken 2021-05-16 08:42:39 +12:00
argcargvtest.i
argout.i
array_member.i
array_typedef_memberin.i
arrayref.i
arrays.i
arrays_dimensionless.i
arrays_global.i
arrays_global_twodim.i
arrays_scope.i
autodoc.i
bloody_hell.i
bom_utf8.i
bools.i
c_backend_cpp_exception.i
c_backend_cpp_natural_std_string.i
c_delete.i
c_delete_function.i
callback.i
cast_operator.i
casts.i
catches.i
ccomplextest.i
char_binary.i
char_constant.i
char_strings.i
chartest.i
class_forward.i
class_ignore.i
class_scope_namespace.i
class_scope_weird.i
clientdata_prop.list
clientdata_prop_a.h
clientdata_prop_a.i
clientdata_prop_b.h
clientdata_prop_b.i
common.mk Eliminate a separate FAILING_CPP_TESTS variable in C Makefile 2021-10-15 00:57:25 +02:00
compactdefaultargs.i
complextest.i
const_const.i
const_const_2.i
constant_directive.i
constant_expr.i
constant_pointers.i
constants.i
constover.i
constructor_copy.i
constructor_exception.i
constructor_explicit.i
constructor_ignore.i
constructor_rename.i
constructor_value.i
contract.i
conversion.i
conversion_namespace.i
conversion_ns_template.i
conversion_operators.i
cplusplus_throw.i
cpp11_alias_nested_template_scoping.i
cpp11_alignment.i
cpp11_alternate_function_syntax.i Disable only part of cpp11_alternate_function_syntax test 2021-10-04 22:11:29 +02:00
cpp11_constexpr.i
cpp11_decltype.i
cpp11_default_delete.i
cpp11_delegating_constructors.i
cpp11_director_enums.i
cpp11_directors.i
cpp11_explicit_conversion_operators.i
cpp11_final_directors.i
cpp11_final_override.i
cpp11_function_objects.i
cpp11_hash_tables.i
cpp11_inheriting_constructors.i
cpp11_initializer_list.i
cpp11_initializer_list_extend.i
cpp11_lambda_functions.i Eliminate use of fn in testcases 2021-03-30 11:01:51 +13:00
cpp11_noexcept.i
cpp11_null_pointer_constant.i
cpp11_raw_string_literals.i
cpp11_ref_qualifiers.i
cpp11_ref_qualifiers_rvalue_unignore.i
cpp11_ref_qualifiers_typemaps.i
cpp11_reference_wrapper.i
cpp11_result_of.i
cpp11_rvalue_reference.i
cpp11_rvalue_reference2.i
cpp11_rvalue_reference3.i
cpp11_shared_ptr_const.i
cpp11_shared_ptr_nullptr_in_containers.i
cpp11_shared_ptr_overload.i
cpp11_shared_ptr_template_upcast.i
cpp11_shared_ptr_upcast.i
cpp11_sizeof_object.i
cpp11_static_assert.i
cpp11_std_array.i
cpp11_std_unordered_map.i
cpp11_std_unordered_multimap.i
cpp11_std_unordered_multiset.i
cpp11_std_unordered_set.i
cpp11_strongly_typed_enumerations.i
cpp11_strongly_typed_enumerations_simple.i
cpp11_template_double_brackets.i
cpp11_template_explicit.i
cpp11_template_typedefs.i
cpp11_thread_local.i
cpp11_type_aliasing.i
cpp11_type_traits.i
cpp11_uniform_initialization.i
cpp11_unrestricted_unions.i
cpp11_userdefined_literals.i
cpp11_variadic_templates.i
cpp14_binary_integer_literals.i
cpp17_hex_floating_literals.i
cpp17_nested_namespaces.i
cpp17_nspace_nested_namespaces.i
cpp17_u8_char_literals.i
cpp_basic.i Merge branch 'master' into C 2021-10-04 16:03:36 +02:00
cpp_enum.i
cpp_namespace.i
cpp_nodefault.i
cpp_parameters.i
cpp_static.i
cpp_typedef.i
csharp_attributes.i
csharp_director_typemaps.i
csharp_exceptions.i
csharp_features.i
csharp_lib_arrays.i
csharp_lib_arrays_bool.i
csharp_namespace_system_collision.i
csharp_prepost.i
csharp_swig2_compatibility.i
csharp_typemaps.i
curiously_recurring_template_pattern.i
d_nativepointers.i
default_arg_expressions.i
default_arg_values.i
default_args.i
default_args_c.i
default_constructor.i
defvalue_constructor.i
derived_byvalue.i
derived_nested.i
destructor_methodmodifiers.i
destructor_reprotected.i
director_abstract.i
director_alternating.i
director_basic.i
director_binary_string.i
director_classes.i
director_classic.i
director_comparison_operators.i
director_constructor.i
director_conversion_operators.i
director_default.i
director_detect.i
director_enum.i
director_exception.i Make PHP directors work more like other languages 2021-04-22 14:40:21 +12:00
director_exception_catches.i
director_exception_nothrow.i
director_extend.i
director_finalizer.i
director_frob.i
director_ignore.i
director_keywords.i
director_namespace_clash.i
director_nested.i
director_nested_class.i
director_nestedmodule.i
director_nspace.i Remove unnecessary warning triggering copy ctors from the test 2021-10-01 01:39:12 +02:00
director_nspace_director_name_collision.i
director_overload.i
director_overload2.i
director_ownership.i
director_pass_by_value.i
director_primitives.i
director_profile.i
director_property.i
director_protected.i Remove PHP-specific testcase workarounds 2021-04-19 18:57:17 +12:00
director_protected_overloaded.i
director_redefined.i
director_ref.i
director_smartptr.i Add minimal shared_ptr support 2021-10-15 01:26:22 +02:00
director_stl.i Make PHP directors work more like other languages 2021-04-22 14:40:21 +12:00
director_string.i
director_thread.i
director_unroll.i
director_using.i
director_void.i
director_wombat.i
director_wstring.i
disown.i
doxygen_alias.i
doxygen_basic_notranslate.i
doxygen_basic_translate.h
doxygen_basic_translate.i
doxygen_basic_translate_style2.i
doxygen_basic_translate_style3.i
doxygen_code_blocks.i
doxygen_ignore.i
doxygen_misc_constructs.h
doxygen_misc_constructs.i
doxygen_nested_class.i
doxygen_parsing.i
doxygen_parsing_enums.i
doxygen_parsing_enums_proper.i
doxygen_parsing_enums_simple.i
doxygen_parsing_enums_typesafe.i
doxygen_parsing_enums_typeunsafe.i
doxygen_translate.i
doxygen_translate_all_tags.i
doxygen_translate_links.i
dynamic_cast.i
empty.i
empty_c.i
enum_forward.i
enum_ignore.i
enum_macro.i
enum_missing.i
enum_plus.i
enum_rename.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
equality.i
evil_diamond.i
evil_diamond_ns.i
evil_diamond_prop.i
exception_classname.i
exception_order.i
exception_partial_info.i [Chicken] Remove code for Chicken 2021-05-16 08:42:39 +12:00
expressions.i
extend.i
extend_constructor_destructor.i
extend_default.i
extend_placement.i
extend_special_variables.i
extend_template.i
extend_template_method.i
extend_template_ns.i
extend_typedef_class.i
extend_variable.i
extern_c.i
extern_declaration.i
extern_namespace.i
extern_throws.i
features.i
file_test.i
fragments.i
friends.i
friends_template.i
funcptr.i
funcptr_cpp.i
function_typedef.i
functors.i
fvirtual.i
global_functions.i
global_immutable_vars.i
global_immutable_vars_cpp.i
global_namespace.i
global_ns_arg.i
global_scope_types.i
global_vars.i Add PHP run test for global_vars 2021-04-17 06:11:49 +12:00
go_director_inout.i
go_inout.i
go_subdir_import.list
go_subdir_import_a.i
go_subdir_import_b.i
grouping.i
guile_ext_test.i
iadd.i
ignore_parameter.i
ignore_template_constructor.i
immutable_values.i
implicittest.i
import_fragments.i
import_fragments_a.i Include required headers for %imported modules 2021-11-27 00:19:05 +01:00
import_fragments_b.i
import_nomodule.h
import_nomodule.i php: Wrap classes using only swig_object_wrapper 2021-04-04 07:45:20 +12:00
import_stl.list
import_stl_a.i
import_stl_b.i
imports.list
imports_a.h
imports_a.i
imports_b.h
imports_b.i
inctest.h
inctest.i
infinity.i
inherit.i
inherit_member.i
inherit_missing.i
inherit_same_name.i
inherit_target_language.i
inherit_void_arg.i
inline_initializer.i
inout.i
inplaceadd.i
input.i
insert_directive.h
insert_directive.i
integers.i
intermediary_classname.i
java_constants.i
java_director.i
java_director_assumeoverride.i
java_director_exception_feature.i
java_director_exception_feature_nspace.i
java_director_ptrclass.i
java_director_typemaps.i
java_director_typemaps_ptr.i
java_enums.i
java_jnitypes.i
java_lib_arrays.i
java_lib_arrays_dimensionless.i
java_lib_various.i
java_nspacewithoutpackage.i
java_pgcpp.i
java_pragmas.i
java_prepost.i
java_throws.i
java_typemaps_proxy.i
java_typemaps_typewrapper.i
javascript_lib_arrays.i
keyword_rename.i
keyword_rename_c.i
kind.i
kwargs_feature.i Explicitly refuse to wrap vararg functions 2021-10-04 22:09:12 +02:00
langobj.i
lextype.i
li_attribute.i
li_attribute_template.i
li_boost_intrusive_ptr.i
li_boost_shared_ptr.i Add minimal shared_ptr support 2021-10-15 01:26:22 +02:00
li_boost_shared_ptr_attribute.i Add minimal shared_ptr support 2021-10-15 01:26:22 +02:00
li_boost_shared_ptr_bits.i Add minimal shared_ptr support 2021-10-15 01:26:22 +02:00
li_boost_shared_ptr_director.i Add minimal shared_ptr support 2021-10-15 01:26:22 +02:00
li_boost_shared_ptr_template.i Add minimal shared_ptr support 2021-10-15 01:26:22 +02:00
li_carrays.i
li_carrays_cpp.i
li_cdata.i
li_cdata_carrays.i
li_cdata_carrays_cpp.i
li_cdata_cpp.i
li_cmalloc.i
li_constraints.i
li_cpointer.i
li_cpointer_cpp.i
li_cstring.i
li_cwstring.i
li_factory.i
li_implicit.i
li_math.i
li_reference.i
li_std_auto_ptr.i
li_std_carray.i
li_std_combinations.i
li_std_container_typemaps.i
li_std_containers_int.i
li_std_containers_overload.i
li_std_deque.i
li_std_except.i
li_std_except_as_class.i
li_std_functors.i
li_std_list.i
li_std_map.i
li_std_map_member.i
li_std_multimap.i
li_std_pair.i
li_std_pair_extra.i
li_std_pair_lang_object.i
li_std_pair_using.i
li_std_queue.i
li_std_set.i Add simple std::set<> typemaps too 2021-10-07 22:03:47 +02:00
li_std_stack.i
li_std_stream.i
li_std_string.i
li_std_string_extra.i
li_std_vector.i
li_std_vector_back_reference.i
li_std_vector_enum.i
li_std_vector_extra.i
li_std_vector_member_var.i
li_std_vector_ptr.i
li_std_vectora.i
li_std_wstream.i
li_std_wstring.i
li_std_wstring_inherit.i
li_stdint.i
li_swigtype_inout.i
li_typemaps.i
li_typemaps_apply.i
li_windows.i
list_vector.i
long_long.i
long_long_apply.i
lua_inherit_getitem.i
lua_lightuserdata.i
lua_no_module_global.i
member_funcptr_galore.i
member_pointer.i
member_pointer_const.i
member_template.i
memberin1.i
memberin_extend.i Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
memberin_extend_c.i Fix GCC -Wstringop-truncation warning 2021-04-19 18:13:02 +12:00
minherit.i
minherit2.i
mixed_types.i
mod.h
mod.list
mod_a.i
mod_b.i
multi_import.h
multi_import.list
multi_import_a.i
multi_import_b.i
multi_import_c.i
multiple_inheritance.i
multiple_inheritance_abstract.i Fix Java %interface family of macros 2021-04-27 23:37:18 +01:00
multiple_inheritance_interfaces.i
multiple_inheritance_nspace.i Fix Java %interface family of macros 2021-04-27 23:37:18 +01:00
multiple_inheritance_shared_ptr.i Fix Java %interface family of macros 2021-04-27 23:37:18 +01:00
multivalue.i
name.i
name_cxx.i
name_warnings.i
namespace_chase.i
namespace_class.i
namespace_enum.i
namespace_extend.i Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00
namespace_forward_declaration.i
namespace_nested.i
namespace_spaces.i
namespace_template.i
namespace_typedef_class.i
namespace_typemap.i
namespace_union.i
namespace_virtual_method.i
native_directive.i
naturalvar.i
naturalvar_more.i
naturalvar_onoff.i
nested.i
nested_class.i
nested_comment.i
nested_directors.i
nested_extend_c.i
nested_ignore.i
nested_in_template.i
nested_inheritance_interface.i
nested_private.i
nested_scope.i
nested_scope_flat.i
nested_structs.i
nested_template_base.i
nested_workaround.i
newobject1.i
newobject2.i
newobject3.i
not_c_keywords.i
nspace.i
nspace_extend.i
null_pointer.i
octave_cell_deref.i
octave_dim.i
operator_overload.i
operator_overload_break.i
operator_pointer_ref.i
operbool.i
ordering.i
overload_arrays.i [Chicken] Remove code for Chicken 2021-05-16 08:42:39 +12:00
overload_bool.i
overload_complicated.i
overload_copy.i
overload_extend.i
overload_extend2.i
overload_extend_c.i
overload_method.i
overload_null.i
overload_numeric.i
overload_polymorphic.i
overload_rename.i
overload_return_type.i
overload_simple.i [Chicken] Remove code for Chicken 2021-05-16 08:42:39 +12:00
overload_subtype.i
overload_template.i
overload_template_fast.i
packageoption.h
packageoption.list
packageoption_a.i
packageoption_b.i
packageoption_c.i
php_iterator.i
php_namewarn_rename.i [php] Fix reserved class names TRUE, FALSE, NULL 2021-05-12 16:45:42 +12:00
php_pragma.i
pointer_in_out.i
pointer_reference.i
prefix.i [php] Fix -prefix when there are subclasses 2021-05-12 15:04:31 +12:00
preproc.i [Chicken] Remove code for Chicken 2021-05-16 08:42:39 +12:00
preproc_constants.i
preproc_constants_c.i
preproc_defined.i
preproc_gcc_output.h
preproc_gcc_output.i
preproc_include.i
preproc_include_a.h
preproc_include_b.h
preproc_include_c.h
preproc_include_d withspace.h
preproc_include_e withspace.h
preproc_include_f withspace.h
preproc_include_g.h
preproc_include_h1.i
preproc_include_h2.i
preproc_include_h3.i
preproc_line_file.i
primitive_ref.i
primitive_types.i
private_assign.i Avoid another warning about deprecated implicit copy ctor 2021-10-01 01:39:12 +02:00
profiletest.i
protected_rename.i
proxycode.i
pure_virtual.i
python_abstractbase.i
python_append.i
python_builtin.i
python_destructor_exception.i
python_director.i
python_docstring.i
python_extranative.i
python_moduleimport.i
python_nondynamic.i
python_overload_simple_cast.i
python_pickle.i
python_pybuffer.i
python_pythoncode.i
python_richcompare.i
python_strict_unicode.i
python_threads.i
python_varargs_typemap.i
r_copy_struct.i
r_double_delete.i
r_legacy.i
r_memory_leak.i
r_overload_array.i
r_overload_comma.i
r_sexp.i
r_use_isnull.i
README
redefined.i
redefined_not.i
refcount.h
refcount.i
reference_global_vars.i
register_par.i
rename.h testcase fixes for gcc-9 2021-03-25 16:17:06 +13:00
rename1.i testcase fixes for gcc-9 2021-03-25 16:17:06 +13:00
rename2.i testcase fixes for gcc-9 2021-03-25 16:17:06 +13:00
rename3.i testcase fixes for gcc-9 2021-03-25 16:17:06 +13:00
rename4.i testcase fixes for gcc-9 2021-03-25 16:17:06 +13:00
rename_camel.i
rename_pcre_encoder.i
rename_pcre_enum.i
rename_predicates.i
rename_rstrip_encoder.i
rename_scope.i
rename_simple.i
rename_strip_encoder.i
rename_wildcard.i
restrict_cplusplus.i
ret_by_value.i
return_const_value.i
return_value_scope.i
rname.i Eliminate use of fn in testcases 2021-03-30 11:01:51 +13:00
ruby_alias_global_function.i
ruby_alias_method.i
ruby_alias_module_function.i
ruby_global_immutable_vars.i
ruby_global_immutable_vars_cpp.i
ruby_keywords.i
ruby_li_std_speed.i
ruby_manual_proxy.i
ruby_minherit_shared_ptr.i
ruby_naming.i
ruby_rdata.i
ruby_track_objects.i
ruby_track_objects_directors.i
samename.i
scilab_consts.i
scilab_enums.i
scilab_identifier_name.i
scilab_li_matrix.i
scilab_multivalue.i
scilab_pointer_conversion_functions.i
shared_ptr_wrapper.h
simple_array.i
simutry.i
sizeof_pointer.i
sizet.i [Chicken] Remove code for Chicken 2021-05-16 08:42:39 +12:00
smart_pointer_const.i
smart_pointer_const2.i
smart_pointer_const_overload.i
smart_pointer_extend.i
smart_pointer_ignore.i
smart_pointer_inherit.i
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_template_const_overload.i
smart_pointer_template_defaults_overload.i
smart_pointer_templatemethods.i
smart_pointer_templatevariables.i
smart_pointer_typedef.i
sneaky1.i
special_variable_attributes.i
special_variable_macros.i
special_variables.i
static_array_member.i
static_const_member.i
static_const_member_2.i
std_containers.i
stl_new.i
stl_no_default_constructor.i Allow using vector with classes without default ctor in C too 2021-10-07 22:03:47 +02:00
string_constants.i
string_simple.i
struct_initialization.i
struct_initialization_cpp.i
struct_rename.i
struct_value.i
swig_examples_lock.h
swig_exception.i
swigobject.i
sym.i
symbol_clash.i
tag_no_clash_with_variable.i
template_arg_replace.i
template_arg_scope.i
template_arg_typename.i
template_array_numeric.i
template_base_template.i
template_basic.i
template_class_reuse_name.i
template_classes.i
template_const_ref.i
template_construct.i
template_default.i [Chicken] Remove code for Chicken 2021-05-16 08:42:39 +12:00
template_default2.i
template_default_arg.i
template_default_arg_overloaded.i
template_default_arg_overloaded_extend.i
template_default_arg_virtual_destructor.i
template_default_cache.i
template_default_class_parms.i
template_default_class_parms_typedef.i
template_default_inherit.i
template_default_pointer.i
template_default_qualify.i
template_default_vw.i
template_empty_inherit.i
template_enum.i
template_enum_ns_inherit.i
template_enum_typedef.i
template_explicit.i
template_expr.i
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
template_int_const.i
template_keyword_in_type.i
template_matrix.i
template_methods.i
template_namespace_forward_declaration.i
template_nested.i
template_nested_flat.i
template_nested_typemaps.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_parameters_global_scope.i
template_partial_arg.i
template_partial_specialization.i
template_partial_specialization_typedef.i
template_private_assignment.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
template_template_parameters.i
template_templated_constructors.i
template_type_namespace.i
template_typedef.i
template_typedef_class_template.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_funcptr.i
template_typedef_import.i
template_typedef_import.list
template_typedef_inherit.i
template_typedef_ns.i
template_typedef_ptr.i
template_typedef_rec.i
template_typedef_typedef.i
template_typemaps.i
template_typemaps_typedef.i
template_typemaps_typedef2.i
template_using.i
template_using_directive_and_declaration_forward.i
template_using_directive_typedef.i
template_virtual.i
template_whitespace.i
threads.i
threads_exception.i
throw_exception.i
typedef_array_member.i
typedef_class.i
typedef_classforward_same_name.i
typedef_funcptr.i
typedef_inherit.i
typedef_mptr.i
typedef_reference.i
typedef_scope.i
typedef_sizet.i
typedef_struct.i
typedef_struct_cpp.i
typedef_typedef.i
typemap_array_qualifiers.i
typemap_arrays.i
typemap_delete.i
typemap_directorout.i
typemap_documentation.i
typemap_global_scope.i
typemap_manyargs.i
typemap_namespace.i
typemap_ns_using.i
typemap_numinputs.i
typemap_out_optimal.i
typemap_qualifier_strip.i
typemap_self.i
typemap_subst.i
typemap_template.i
typemap_template_parm_typedef.i
typemap_template_parms.i
typemap_template_typedef.i
typemap_variables.i
typemap_various.i
typename.i
types_directive.i
unicode_strings.i
union_parameter.i
union_scope.i
unions.i
using1.i
using2.i
using_composition.i
using_directive_and_declaration.i
using_directive_and_declaration_forward.i
using_extend.i
using_inherit.i
using_namespace.i
using_namespace_loop.i
using_pointers.i
using_private.i
using_protected.i
valuewrapper.i
valuewrapper_base.i
valuewrapper_const.i
valuewrapper_opaque.i
varargs.i
varargs_overload.i
variable_replacement.i
virtual_derivation.i
virtual_destructor.i
virtual_poly.i
virtual_vs_nonvirtual_base.i
voidtest.i
wallkw.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.

There is a special directory called testdir for testcases requiring
inputs from subdirectories or multiple directories. See the
testdir/README file.

Further Documentation
---------------------

There is documentation about the test-suite and how to use it in
the SWIG documentation - Doc/Manual/Extending.html#Extending_test_suite.