swig/Examples/test-suite/python
William S Fulton bf36bf7d8a Movable and move-only types supported in "out" typemaps.
Enhance SWIGTYPE "out" typemaps to use std::move when copying
objects, thereby making use of move semantics when wrapping a function returning
by value if the returned type supports move semantics.

Wrapping functions that return move only types 'by value' now work out the box
without having to provide custom typemaps.

The implementation removed all casts in the "out" typemaps to allow the compiler to
appropriately choose calling a move constructor, where possible, otherwise a copy
constructor. The implementation alsoand required modifying SwigValueWrapper to
change a cast operator from:

  SwigValueWrapper::operator T&() const;

to

  #if __cplusplus >=201103L
    SwigValueWrapper::operator T&&() const;
  #else
    SwigValueWrapper::operator T&() const;
  #endif

This is not backwards compatible for C++11 and later when using the valuewrapper feature
if a cast is explicitly being made in user supplied "out" typemaps. Suggested change
in custom "out" typemaps for C++11 and later code:

1. Try remove the cast altogether to let the compiler use an appropriate implicit cast.
2. Change the cast, for example, from static_cast<X &> to static_cast<X &&>, using the
   __cplusplus macro if all versions of C++ need to be supported.

Issue #999
Closes #1044

More about the commit:
Added some missing "varout" typemaps for Ocaml which was falling back to
use "out" typemaps as they were missing.

Ruby std::set fix for SwigValueWrapper C++11 changes.
2022-06-30 17:26:48 +01:00
..
abstract_access_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
abstract_basecast_runme.py Test ability to manipulate a daughter class from its base class wrapper 2022-02-12 19:40:03 -05:00
abstract_typedef2_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
abstract_typedef_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
abstract_virtual_runme.py
argcargvtest_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
array_member_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
arrays_global_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
autodoc_runme.py Move low level static methods 2022-03-18 11:10:14 +01:00
callback_runme.py Add Python testcase for testing flatstaticmethod syntax 2022-01-15 00:05:06 +00:00
ccomplextest_runme.py Quieten ccomplextest 2020-10-10 15:21:13 +01:00
char_binary_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
class_ignore_runme.py
class_scope_weird_runme.py
comment_verifier.py Test-suite: Unify string quoting in the Python sources 2019-07-14 12:58:21 +10:00
compactdefaultargs_runme.py Add tests for Python -builtin -O and compactdefaultargs and update changes file 2016-04-02 11:29:54 +01:00
complextest_runme.py Split C complex.h from C++ complex testing 2020-10-10 15:01:29 +01:00
constant_directive_runme.py fix handling of function pointers by %constant directive 2016-03-24 11:22:51 +01:00
constover_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
constructor_copy_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
constructor_rename_runme.py fix regression of Python constructor renaming introduced by py3k work 2010-04-25 14:07:14 +00:00
contract_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
cpp11_alternate_function_syntax_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
cpp11_decltype_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
cpp11_final_directors_runme.py Fix the handling of director classes with final methods 2019-02-22 06:28:53 -07:00
cpp11_function_objects_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
cpp11_hash_tables_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
cpp11_initializer_list_extend_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
cpp11_initializer_list_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
cpp11_move_only_runme.py Movable and move-only types supported in "out" typemaps. 2022-06-30 17:26:48 +01:00
cpp11_null_pointer_constant_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
cpp11_raw_string_literals_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
cpp11_ref_qualifiers_runme.py Add support for conversion operators with ref-qualifiers 2017-08-30 18:17:05 +01:00
cpp11_ref_qualifiers_rvalue_unignore_runme.py Add unignore for rvalue ref-qualifiers 2017-08-30 18:17:04 +01:00
cpp11_result_of_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
cpp11_rvalue_reference_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
cpp11_shared_ptr_overload_runme.py Fix overloading of shared_ptr method overloading 2017-09-23 15:19:34 +01:00
cpp11_shared_ptr_template_upcast_runme.py Test shared_ptr upcasts in Python 2020-01-24 19:54:29 +00:00
cpp11_shared_ptr_upcast_runme.py Port Ruby test of vector<shared_ptr<>> to Python 2020-02-13 19:21:30 +00:00
cpp11_std_array_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
cpp11_strongly_typed_enumerations_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
cpp11_template_explicit_runme.py [python] Replace uses of assert in testsuite 2022-01-30 13:38:56 +13:00
cpp11_template_typedefs_runme.py Add C++11 alias templates 2016-07-06 00:31:04 +03:00
cpp11_thread_local_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
cpp11_type_aliasing_runme.py Added support for type alias 2016-06-22 23:13:28 +03:00
cpp11_type_traits_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
cpp11_uniform_initialization_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
cpp14_binary_integer_literals_runme.py Add support for C++14 binary integer literals 2019-02-10 15:38:49 -07:00
cpp17_hex_floating_literals_runme.py Add support for C++17 hexadecimal floating literals 2019-02-13 15:16:40 -07:00
cpp17_nested_namespaces_runme.py Add c++17 nested namespaces runtime test for Python 2018-05-14 21:03:31 +01:00
cpp17_u8_char_literals_runme.py Test-suite: Unify string quoting in the Python sources 2019-07-14 12:58:21 +10:00
cpp_enum_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
cpp_namespace_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
cpp_parameters_runme.py Python -builtin constructors silently ignored keyword arguments. 2020-01-13 19:26:22 +00:00
cpp_static_runme.py Fix Python low-level static member setters. 2019-03-20 21:44:34 +00:00
default_arg_values_runme.py Fix Python typedef bool default arguments that are not booleans. 2015-05-27 20:55:56 +01:00
default_args_c_runme.py Fix C default arguments with -builtin and -fastunpack and -modernargs. 2018-10-04 08:06:01 +01:00
default_args_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
default_constructor_runme.py Remove further print statements from Python tests 2020-08-13 21:47:20 +01:00
director_abstract_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
director_alternating_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
director_basic_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
director_classic_runme.py Fix incorrect director_classic_runme.py test 2015-10-10 01:26:29 +01:00
director_comparison_operators_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
director_default_runme.py
director_detect_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
director_enum_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
director_exception_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
director_extend_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
director_finalizer_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
director_frob_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
director_keywords_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
director_nested_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
director_pass_by_value_runme.py Fix directorin SWIGTYPE typemaps to make a copy as these are used for pass by value. 2016-05-14 21:32:24 +01:00
director_profile_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
director_property_runme.py More director const std::string& testing and C# leak fix 2022-02-13 23:00:04 +00:00
director_protected_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
director_smartptr_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
director_stl_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
director_string_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
director_thread_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
director_unroll_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
director_wstring_runme.py Add C# wchar_t * director typemaps 2022-05-04 21:37:47 +01:00
disown_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
doxygen_alias_runme.py Correct python example headers 2018-05-25 23:35:28 +01:00
doxygen_autodoc_docstring_runme.py doxygen_autodoc_docstring test fix for Python builtin 2022-04-06 22:33:17 +01:00
doxygen_basic_notranslate_runme.py Fix Java doxygen:notranslate for single line comments 2018-06-16 21:23:12 +01:00
doxygen_basic_translate_runme.py Merge branch 'Issue-1643' 2020-01-16 18:54:47 +00:00
doxygen_basic_translate_style2_runme.py Flag optional arguments in doxygen pydoc output 2019-08-07 16:42:39 -05:00
doxygen_basic_translate_style3_runme.py Correct recently expanded testcase from a merge for doxygen default parameter support 2020-01-16 19:49:16 +00:00
doxygen_code_blocks_runme.py Special handling for python doctest code blocks 2019-08-07 17:04:12 -05:00
doxygen_ignore_runme.py Correct python example headers 2018-05-25 23:35:28 +01:00
doxygen_misc_constructs_runme.py Fix generated Python code for Doxygen comments with triple quotes 2020-03-04 00:57:31 +01:00
doxygen_parsing_runme.py Better detection of builtin in Python testcase 2018-08-14 19:16:25 +01:00
doxygen_translate_all_tags_runme.py Fix for missing space after \endlink in doxygen 2020-05-02 18:42:55 -05:00
doxygen_translate_links_runme.py Correct python example headers 2018-05-25 23:35:28 +01:00
doxygen_translate_runme.py Fix doxygen translation of \p command for python 2019-09-15 10:59:03 -05:00
dynamic_cast_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
empty_c_runme.py Duplicate tests that are run twice as both C and C++ tests to fix parallel make: empty 2016-02-21 18:03:14 +00:00
empty_runme.py
enum_forward_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
enum_template_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
enums_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
exception_classname_runme.py Replace assert from Python testcases with code that always runs. 2016-06-19 20:11:51 +01:00
exception_order_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
extend_placement_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
extend_template_method_runme.py Enhance %extend to extend a class with template constructors 2017-01-24 19:01:43 +00:00
extend_template_ns_runme.py
extend_template_runme.py
extend_variable_runme.py
extern_c_runme.py Remove assertions from python test cases 2022-02-14 10:33:10 +13:00
file_test_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
friends_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
funcptr_cpp_runme.py Add Python runtime test for const function pointer 2018-11-13 07:35:44 +00:00
functors_runme.py Fix functors (wrapped as __call__) when using -builtin -modern -fastunpack. 2018-09-19 20:10:11 +01:00
fvirtual_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
global_functions_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
global_namespace_runme.py Drop support for Python classic classes 2018-10-12 07:10:47 +01:00
global_ns_arg_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
global_vars_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
grouping_runme.py This commit contains all changes to the regression tests which 2011-01-30 04:13:58 +00:00
hugemod.pl Merged revisions 10487,10498-10499,10503-10504,10506,10508,10511,10515-10516,10518-10519,10527,10530-10531,10536-10537,10539-10552,10558-10568,10574-10580,10582,10584,10588-10589,10594,10607-10610,10616,10621,10624-10629,10633-10641,10643,10647,10649-10650,10662,10672,10676-10677,10682-10683,10714,10726-10727,10738,10743,10747,10749,10794,10801-10809,10827-10831,10834 via svnmerge from 2008-09-12 10:51:51 +00:00
iadd_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
ignore_parameter_runme.py Fix warning and improve description of ignore_parameter test 2022-02-27 18:15:39 +13:00
implicittest_runme.py Fix typecheck typemaps for non-pointers and NULL 2018-12-29 11:45:46 +00:00
import_nomodule_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
import_stl_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
imports_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
inctest_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
inherit_missing_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
inout_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
inplaceadd_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
input_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
keyword_rename_c_runme.py Duplicate tests that are run twice as both C and C++ tests to fix parallel make: keyword_rename 2016-02-21 18:04:04 +00:00
keyword_rename_runme.py Add more tests for Python parameter renaming 2019-01-16 04:29:04 +01:00
kwargs_feature_runme.py [Python] Add missing Python kwargs builtin support 2022-01-14 23:00:42 +00:00
langobj_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
li_attribute_runme.py Fix typos in attribute2ref() in Lib/typemaps/attribute.swg 2021-02-09 09:21:14 -07:00
li_attribute_template_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
li_boost_shared_ptr_bits_runme.py Drop support for Python classic classes 2018-10-12 07:10:47 +01:00
li_boost_shared_ptr_director_runme.py [python] Replace uses of assert in testsuite 2022-01-30 13:38:56 +13:00
li_boost_shared_ptr_runme.py Add test of null shared pointers emitted from C++ 2022-02-12 19:40:03 -05:00
li_boost_shared_ptr_template_runme.py %shared_ptr and %template testcase modified to work for python -O 2016-06-21 19:49:27 +01:00
li_carrays_cpp_runme.py Zero initialize newly created arrays 2016-12-18 17:50:47 +00:00
li_carrays_runme.py Zero initialize newly created arrays 2016-12-18 17:50:47 +00:00
li_cdata_cpp_runme.py Duplicate tests that are run twice as both C and C++ tests to fix parallel make: li_cdata 2016-02-21 18:04:04 +00:00
li_cdata_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
li_cmalloc_runme.py
li_cpointer_cpp_runme.py Zero initialize %array_functions and %array_class 2016-12-18 17:50:47 +00:00
li_cpointer_runme.py Zero initialize %array_functions and %array_class 2016-12-18 17:50:47 +00:00
li_cstring_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
li_cwstring_runme.py Convert python test scripts to be Python 2 and 3 compatible 2020-08-15 00:09:31 +01:00
li_factory_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
li_implicit_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
li_std_auto_ptr_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
li_std_carray_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
li_std_containers_int_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
li_std_containers_overload_runme.py Python STL container method overloading fix 2019-08-06 19:36:14 +01:00
li_std_except_as_class_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
li_std_map_member_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
li_std_map_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
li_std_pair_extra_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
li_std_pair_runme.py Add basic std::pair Python testing 2020-08-13 16:06:48 +01:00
li_std_pair_using_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
li_std_set_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
li_std_stream_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
li_std_string_extra_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
li_std_vector_back_reference_runme.py Add std::vector back reference test 2019-02-18 21:39:17 +00:00
li_std_vector_enum_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
li_std_vector_extra_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
li_std_vector_ptr_runme.py Add missing typedefs to std::vector + typedef corrections 2019-02-13 22:46:28 +00:00
li_std_vector_runme.py Fix iterators for containers of NULL pointers (or Python None) when using -builtin. 2016-09-17 17:53:48 +01:00
li_std_wstream_runme.py Convert python test scripts to be Python 2 and 3 compatible 2020-08-15 00:09:31 +01:00
li_std_wstring_inherit_runme.py Convert python test scripts to be Python 2 and 3 compatible 2020-08-15 00:09:31 +01:00
li_std_wstring_runme.py Add test for wchar_t members to li_std_string.i 2020-09-12 17:04:28 +01:00
Makefile.in Add argcargv test case to test-suite 2022-05-15 19:49:59 +01:00
member_pointer_const_runme.py Add some tests for typedef to member function pointers 2017-03-10 23:25:31 +00:00
member_pointer_runme.py Add some tests for typedef to member function pointers 2017-03-10 23:25:31 +00:00
memberin_extend_c_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
minherit_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
mod_runme.py avoid cast list elements, add more debug info, add Rubin's multi-module 'mod'example 2006-01-20 18:59:06 +00:00
multi_import_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
multivalue_runme.py [python] Add multivalue_runme.py 2022-01-21 11:10:30 +13:00
name_warnings_runme.py Remove assertions from python test cases 2022-02-14 10:33:10 +13:00
namespace_class_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
namespace_typemap_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
namespace_virtual_method_runme.py
naturalvar_runme.py
nested_in_template_runme.py Avoid comparing doubles in nested_in_template.i unit test 2018-12-04 20:46:35 +01:00
nested_runme.py Add testcase for nested C struct name conflict 2018-08-20 19:21:14 +01:00
nested_template_base_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
nested_workaround_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
not_c_keywords_runme.py complex can now be used as an identifier 2020-10-10 16:07:55 +01:00
operator_overload_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
operbool_runme.py Replace assert from Python testcases with code that always runs. 2016-06-19 20:11:51 +01:00
overload_bool_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
overload_complicated_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
overload_copy_runme.py
overload_extend2_runme.py rename overload_extendc testcase 2016-02-21 18:04:04 +00:00
overload_extend_c_runme.py Duplicate tests that are run twice as both C and C++ tests to fix parallel make: overload_extend 2016-02-21 19:24:11 +00:00
overload_extend_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
overload_null_runme.py Shorten testcase variable names for Scilab 6 to work 2021-11-15 22:45:56 +00:00
overload_numeric_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
overload_rename_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
overload_simple_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
overload_subtype_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
overload_template_fast_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
overload_template_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
pointer_reference_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
preproc_cpp_runme.py preproc_cpp test for testing preprocessor and C++ 2021-12-22 19:06:00 +00:00
preproc_defined_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
preproc_gcc_output_runme.py Fix regression parsing gcc preprocessor linemarkers 2019-02-19 21:32:04 +00:00
preproc_include_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
preproc_runme.py Add testcase for macros with commas in comment 2017-04-27 19:47:29 +01:00
primitive_ref_runme.py Test-suite: Unify string quoting in the Python sources 2019-07-14 12:58:21 +10:00
primitive_types_runme.py Revert 2to3 modification 2020-08-15 23:50:31 +01:00
profiletest_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
profiletestc_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
python_abstractbase_runme.py Add Python < 3.3 support for pyabc.i 2022-03-23 07:58:01 +00:00
python_annotations_c_runme.py Turn on Python annotations testing again 2022-02-28 19:40:35 +00:00
python_annotations_variable_c_runme.py Add support for Python variable annotations as a feature. 2022-03-02 19:33:03 +00:00
python_append_runme.py Fixing setting this in Python when using __slots__ 2020-02-06 07:08:16 +00:00
python_builtin_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
python_destructor_exception_runme.py Convert two tests to work with both Python 2 and 3 2020-08-13 23:34:28 +01:00
python_docstring_runme.py Drop support for Python classic classes 2018-10-12 07:10:47 +01:00
python_extranative_runme.py Python - fix compilation error when using -extranative and -builtin. 2016-11-02 22:00:54 +00:00
python_flatstaticmethod_runme.py Test -flatstaticmethod and %extend 2022-03-21 19:23:15 +00:00
python_moduleimport_runme.py Custom Python module importing code 2016-12-01 18:59:33 +00:00
python_nondynamic_runme.py Drop is_python_modern() in testcase 2022-01-26 12:30:44 +13:00
python_overload_simple_cast_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
python_pickle_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
python_pybuffer_runme.py Update python_pybuffer_runme.py syntax for working under both python 2 and 3 2020-10-07 22:41:04 +01:00
python_pythoncode_runme.py Testcase for testing __new__ override Python 3.6 fix 2018-12-20 08:10:35 +00:00
python_richcompare_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
python_runtime_data_runme.py Different capsule names for builtin changes entry 2022-03-26 15:06:13 +00:00
python_strict_unicode_runme.py Python 3.2 syntax error fixes in tests 2020-08-15 23:51:40 +01:00
python_threads_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
python_varargs_typemap_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
pythonswig.supp Add partialcheck make targets. Also add RUNTOOL, COMPILETOOL and SWIGTOOL variables for invoking tools when running tests, compiling or invoking swig 2008-05-20 21:27:22 +00:00
README Default to running tests with Python 3 2022-03-17 18:55:10 +13:00
refcount_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
reference_global_vars_runme.py Test-suite: Unify string quoting in the Python sources 2019-07-14 12:58:21 +10:00
rename_pcre_encoder_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
rename_predicates_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
rename_rstrip_encoder_runme.py Add rstrip encoder for use in %rename. 2016-03-02 07:11:09 +00:00
rename_scope_runme.py add test for rename 2006-02-17 20:46:13 +00:00
rename_strip_encoder_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
ret_by_value_runme.py
return_const_value_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
smart_pointer_const_overload_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
smart_pointer_extend_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
smart_pointer_member_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
smart_pointer_multi_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
smart_pointer_multi_typedef_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
smart_pointer_not_runme.py Remove further print statements from Python tests 2020-08-13 21:47:20 +01:00
smart_pointer_overload_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
smart_pointer_rename_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
smart_pointer_simple_runme.py
smart_pointer_templatevariables_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
smart_pointer_typedef_runme.py
sneaky1_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
special_variable_macros_runme.py Allow referencing of typemap keywords inside of "$typemap(" 2022-02-25 10:52:33 -05:00
static_const_member_2_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
std_containers_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
struct_initialization_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
struct_rename_runme.py
struct_value_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
swigobject_runme.py Convert swigobject python test to be python 2 and 3 compatible 2020-08-14 23:27:35 +01:00
template_class_reuse_name_runme.py Allow an instantiated template to have the same name as the C++ template name 2017-09-29 23:28:04 +01:00
template_classes_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
template_construct_runme.py
template_default_arg_overloaded_extend_runme.py Testcase fix for R 2016-05-07 19:30:13 +01:00
template_default_arg_overloaded_runme.py Fix overloaded templates and default arguments 2015-10-11 17:30:34 +01:00
template_default_arg_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
template_default_cache_runme.py Add template_default_cache runtime tests 2017-01-16 07:46:03 +00:00
template_extend1_runme.py
template_extend2_runme.py
template_inherit_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
template_matrix_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
template_ns4_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
template_ns_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
template_opaque_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
template_ref_type_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
template_rename_runme.py fixes for %templates/%rename/%features + templates 2006-02-05 20:25:43 +00:00
template_static_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
template_tbase_template_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
template_template_parameters_runme.py template template parameters patch tidyup 2021-03-22 01:08:05 +00:00
template_type_namespace_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
template_typedef_cplx2_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
template_typedef_cplx3_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
template_typedef_cplx4_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
template_typedef_cplx_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
template_typedef_import_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
template_typedef_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
template_typemaps_typedef2_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
template_typemaps_typedef_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
template_using_directive_typedef_runme.py Add using declarations to templates into typedef table. 2017-08-16 00:24:25 +01:00
threads_exception_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
typedef_class_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
typedef_classforward_same_name_runme.py Add more runtime typedef_classforward_same_name runtime testing 2017-12-31 16:37:27 +00:00
typedef_funcptr_runme.py Fix handling of typedef'd function pointers for Go 2017-03-17 07:49:21 +00:00
typedef_inherit_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
typedef_scope_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
typedef_typedef_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
typemap_arrays_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
typemap_delete_runme.py Fix typemap delete regression introduced in rev 11838 2010-05-03 22:58:27 +00:00
typemap_documentation_runme.py Update documentation for using SWIG_ConvertPtr example usage 2016-10-23 20:16:35 +01:00
typemap_namespace_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
typemap_ns_using_runme.py
typemap_out_optimal_runme.py Movable and move-only types supported in "out" typemaps. 2022-06-30 17:26:48 +01:00
typemap_qualifier_strip_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
typemap_template_typedef_runme.py Typemap change for templates 2017-08-16 00:24:06 +01:00
typename_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
types_directive_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00
unicode_strings_runme.py Python 3.2 syntax error fixes in tests 2020-08-15 23:51:40 +01:00
unions_runme.py Remove print statements from Python tests 2020-08-13 21:22:47 +01:00
using1_runme.py
using2_runme.py
using_composition_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
using_extend_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
using_inherit_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
using_member_runme.py Using declarations in inheritance hierarchy improvements. 2022-02-26 12:46:06 +00:00
using_private_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
using_protected_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
varargs_overload_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
varargs_runme.py Python -builtin fix wrapping constructors with varargs 2021-03-23 23:57:49 +00:00
virtual_derivation_runme.py Convert python tests using 2to3 2020-08-15 00:16:04 +01:00
virtual_poly_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
voidtest_runme.py Update Python tests to not use flatstaticmethod access 2022-01-14 22:48:11 +00:00
wrapmacro_runme.py autopep8 cleanup of Examples/test-suite/python 2015-05-08 21:35:52 -04:00

See ../README for common README file.

Any testcases which have _runme.py appended after the testcase name will be detected and run.

The _runme.py files needs to work for both Python 2.x and 3.x.

By default testcases are run with Python 3.  You can run make with PY2=1 to run test case with Python 2, eg.

  $ make voidtest.cpptest PY2=1