swig/Examples/test-suite/perl5
Vadim Zeitlin cdf1ba9120 Don't accept strings too long to fit in char[N] with trailing NUL.
It was previously possible to assign "hello" to a variable backed by char[5]
storage in C, and the array contained the correct character data but without
the trailing NUL, which was unexpected in C.

This is not allowed any more, only "helo" can fit into a char[5] now and
anything else fails the type check, just as it already happened for the longer
strings before.

Closes #122
2013-12-23 21:13:25 +00:00
..
aggregate_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
apply_signed_char_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
apply_strings_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
array_member_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
char_binary_runme.pl Added some missing multi-argument typemaps: (char *STRING, size_t LENGTH) and (char *STRING, int LENGTH) - Java patch is from Volker Grabsch. Elements of the primitive_types.i testcase for this moved into char_binary.i. Documentation for this enhanced. 2011-01-14 19:06:43 +00:00
char_strings_runme.pl Fix SF#2564192 2009-02-05 15:47:42 +00:00
class_ignore_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
contract_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
default_args_runme.pl Fix assorted typos. 2013-01-08 18:47:40 +13:00
default_constructor_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
director_abstract_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_alternating_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_basic_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_classes_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_classic_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_constructor_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_default_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_detect_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_enum_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_exception_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_extend_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_finalizer_runme.pl prefer polymorphism on existing destructor over custom destructor method 2013-11-14 08:23:46 -08:00
director_frob_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_ignore_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_nested_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_primitives_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_protected_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_string_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_unroll_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_wombat_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
disown_runme.pl add disown.i and li_attribute.i 2005-10-26 07:08:18 +00:00
dynamic_cast_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
enum_template_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
enum_thorough_runme.pl remove perl specific modifications to the enum_thorough test 2009-06-16 20:26:28 +00:00
exception_order_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
global_vars_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
grouping_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
ignore_parameter_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
import_nomodule_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
imports_runme.pl rollback 10737:10749, this work is better left on a branch until it is 2008-08-19 07:09:29 +00:00
inctest_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
inherit_missing_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
inherit_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
li_carrays_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
li_cdata_carrays_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
li_reference_runme.pl rename byreference testcase to li_reference to follow normal test naming conventions of library files. Remove ability to add testcases into subdirectories (again) - not wanted 2009-07-02 20:32:51 +00:00
li_std_except_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
li_std_string_runme.pl Test modifications of changed behaviour in perl 5.12 and 5.14 in reporting errors 2011-05-19 18:48:57 +00:00
li_typemaps_runme.pl fix "long long" tests for perl v5.6 2013-11-14 11:24:24 -08:00
Makefile.in remove unnecessary extra semicolons in the tesuite 2009-08-09 22:52:08 +00:00
member_pointer_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
minherit_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
multiple_inheritance_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
naturalvar_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
operator_overload_break_runme.pl added test which breaks perl 2008-04-04 10:30:49 +00:00
operator_overload_runme.pl added __rsub__() and test for reversed subtraction operator 2008-04-03 11:40:20 +00:00
overload_copy_runme.pl
overload_simple_runme.pl Patch #3260265 fixing overloading of non-primitive types and integers in Perl 5.12 and later 2011-05-19 19:31:39 +00:00
packageoption_runme.pl Apply patch #2143727 for Python from Serge Monkewitz to fix importing base classes when the package option is specified in %module and that module is %import'ed 2008-12-02 20:21:16 +00:00
preproc_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
primitive_ref_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
primitive_types_runme.pl Don't accept strings too long to fit in char[N] with trailing NUL. 2013-12-23 21:13:25 +00:00
profiletest_runme.pl added profile test 2004-06-14 09:09:12 +00:00
README several testcases for perl 2008-04-30 21:02:46 +00:00
reference_global_vars_runme.pl fix "long long" tests for perl v5.6 2013-11-14 11:24:24 -08:00
rename_scope_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
ret_by_value_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
return_const_value_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
run-perl-test.pl run test cases in the Perl set by the --with-perl5 configure option. 2008-05-26 20:09:56 +00:00
sizet_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
sneaky1_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
template_default_arg_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
template_ref_type_runme.pl
template_typedef_cplx2_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
template_typedef_cplx3_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
template_typedef_cplx_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
typedef_class_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
typemap_namespace_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
typename_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
unions_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
using1_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
using2_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
varargs_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
virtual_poly_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
voidtest_runme.pl several testcases for perl 2008-04-30 21:02:46 +00:00
wrapmacro_runme.pl PHP: fix for the wrapmacro testcase 2009-08-04 09:32:12 +00:00

See ../README for common README file.

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

Test::More Support
==

Test::More and Test::Harness are two of the standard perl test harness
tools. Support has been added for these modules as of 1.3.28. If
adding a new test to this suite, please use Test::More. 

Currently converted test cases include:

* operator_overload
* operator_overload_break
* package
* overload_simple
* apply_strings
* char_strings
* default_args
* enum_thorough
* global_vars
* import_nomodule
* inherit
* li_cdata_carrays
* li_std_string
* member_pointer
* multiple_inheritance
* primitive_ref
* template_default_arg
* unions
* voidtest