https://swig.svn.sourceforge.net/svnroot/swig/trunk ........ r10498 | talby | 2008-05-26 22:09:56 +0200 (Pn, 26 maj 2008) | 2 lines run test cases in the Perl set by the --with-perl5 configure option. ........ r10499 | talby | 2008-05-26 23:04:06 +0200 (Pn, 26 maj 2008) | 3 lines The perl5 minherit runtime test will work better if the classes are actually built under SWIGPERL. ........ r10503 | wsfulton | 2008-05-28 11:44:37 +0200 (Śr, 28 maj 2008) | 1 line Fix variable wrappers when using -proxy. Patch from Jan Jezabek ........ r10504 | bhy | 2008-05-28 19:27:48 +0200 (Śr, 28 maj 2008) | 2 lines Fixed SF #1971977: typo in pycontainer.swg (related to -extranative option) ........ r10506 | wsfulton | 2008-05-29 02:45:28 +0200 (Cz, 29 maj 2008) | 1 line Fix variable wrappers when using -noproxy ........ r10508 | bhy | 2008-05-30 15:53:33 +0200 (Pt, 30 maj 2008) | 1 line Fixed SF #1976978, apply the macros for primitive types to std::wstring ........ r10511 | olly | 2008-05-30 18:11:27 +0200 (Pt, 30 maj 2008) | 4 lines Fix typo in handling of /*@SWIG[...]*/ comments in the scanner. This just meant we were only actually looking for /*@SWI at the start of the comment, so was pretty harmless in practice. ........ r10515 | wsfulton | 2008-06-02 22:10:40 +0200 (Pn, 02 cze 2008) | 1 line Fix samename testcase for c# and java ........ r10516 | wsfulton | 2008-06-02 22:15:39 +0200 (Pn, 02 cze 2008) | 1 line Fix enums when using -noproxy ........ r10518 | bhy | 2008-06-07 13:20:07 +0200 (So, 07 cze 2008) | 4 lines Added a test case for keyword renaming. Now it works for Python in SWIG's -c++ mode, but in C mode it doesn't work! (you can try with make keyword_rename.ctest) ........ r10519 | bhy | 2008-06-07 15:40:51 +0200 (So, 07 cze 2008) | 1 line fixed keyword_rename.ctest tese case, caused by a mistake in Swig/naming.c ........ r10527 | mgossage | 2008-06-17 04:57:15 +0200 (Wt, 17 cze 2008) | 1 line [lua] bugfix 1938142 (bool& and bool* support) ........ r10530 | wsfulton | 2008-06-19 22:02:13 +0200 (Cz, 19 cze 2008) | 1 line Add R keyword support. Rename keywords for successful compilation of Java and C# code. More consistent keyword warnings across the different languages. ........ r10531 | wsfulton | 2008-06-19 23:15:48 +0200 (Cz, 19 cze 2008) | 1 line add complete list of R reserved words ........ r10536 | wsfulton | 2008-06-21 13:35:33 +0200 (So, 21 cze 2008) | 1 line better terminology for static types ........ r10537 | wsfulton | 2008-06-21 13:42:48 +0200 (So, 21 cze 2008) | 1 line remove raise as keyword test- it conflicts with _raise in LIBCMT on windows ........ r10539 | wsfulton | 2008-06-21 17:21:29 +0200 (So, 21 cze 2008) | 1 line Lua example warning removal fixes for vc++ ........ r10540 | wsfulton | 2008-06-21 17:23:02 +0200 (So, 21 cze 2008) | 1 line Remove some vc++ /W4 warnings ........ r10541 | wsfulton | 2008-06-21 18:04:55 +0200 (So, 21 cze 2008) | 1 line minor vc++ /W4 warning fixes ........ r10542 | wsfulton | 2008-06-21 21:07:51 +0200 (So, 21 cze 2008) | 1 line 'byte' is already used in Ruby on windows, so use another keyword ........ r10543 | wsfulton | 2008-06-21 22:45:32 +0200 (So, 21 cze 2008) | 1 line Fix crashing in the Ruby reject method in the STL wrappers ........ r10544 | wsfulton | 2008-06-21 22:48:28 +0200 (So, 21 cze 2008) | 1 line Fix crashing in the Ruby reject method in the STL wrappers ........ r10545 | wsfulton | 2008-06-21 22:49:10 +0200 (So, 21 cze 2008) | 1 line remove unnecessary variable int the char **STRING_ARRAY out typemap ........ r10546 | wsfulton | 2008-06-21 23:07:49 +0200 (So, 21 cze 2008) | 1 line Fix Ruby C++ example dependencies in dsp files ........ r10547 | wsfulton | 2008-06-22 00:25:36 +0200 (N, 22 cze 2008) | 1 line Fix unused parameter warnings in python when using gcc's -W -Wall options ........ r10548 | wsfulton | 2008-06-22 00:26:35 +0200 (N, 22 cze 2008) | 1 line Fix virtual destructor ........ r10549 | wsfulton | 2008-06-22 01:25:20 +0200 (N, 22 cze 2008) | 1 line various warning fixes ........ r10550 | wsfulton | 2008-06-22 02:09:11 +0200 (N, 22 cze 2008) | 1 line Another fix for the JVM hanging on exit problem when using directors ........ r10551 | wsfulton | 2008-06-22 02:09:51 +0200 (N, 22 cze 2008) | 1 line documentation sections update ........ r10552 | wsfulton | 2008-06-22 02:18:10 +0200 (N, 22 cze 2008) | 1 line more docs on defining macros for the thread hanging problem ........ r10558 | wsfulton | 2008-06-22 23:30:20 +0200 (N, 22 cze 2008) | 1 line fix unused parms in last commit for C code ........ r10559 | wsfulton | 2008-06-23 00:12:43 +0200 (Pn, 23 cze 2008) | 1 line Suppress unused methods warning for VC++ ........ r10560 | wsfulton | 2008-06-23 22:26:07 +0200 (Pn, 23 cze 2008) | 1 line fix partialcheck-test-suite and parallel make for r, chicken, tcl and php ........ r10561 | wsfulton | 2008-06-23 22:39:41 +0200 (Pn, 23 cze 2008) | 1 line correct message display when running the partialcheck-test-suite make target ........ r10562 | wsfulton | 2008-06-23 23:14:53 +0200 (Pn, 23 cze 2008) | 1 line fix typo ........ r10563 | olly | 2008-06-23 23:23:54 +0200 (Pn, 23 cze 2008) | 3 lines Fix bad use of Python API (untested, since I can't even compile this code on x86-64!) ........ r10564 | olly | 2008-06-24 00:58:03 +0200 (Wt, 24 cze 2008) | 3 lines [PHP] Fix segfault when wrapping a non-class function marked with %newobject (testcase char_strings). ........ r10565 | olly | 2008-06-24 02:27:34 +0200 (Wt, 24 cze 2008) | 3 lines [PHP] Fix assertion failure when handling %typemap(in,numinputs=0) (testcase ignore_parameter). ........ r10566 | olly | 2008-06-24 02:33:08 +0200 (Wt, 24 cze 2008) | 2 lines [PHP] Fix typemap_namespace.i to not try to copy a non-existent typemap. ........ r10567 | olly | 2008-06-24 02:41:07 +0200 (Wt, 24 cze 2008) | 3 lines Clean up dead and unused code in SwigToPhpType(), and rename to GetShadowReturnType(). ........ r10568 | olly | 2008-06-24 02:42:29 +0200 (Wt, 24 cze 2008) | 2 lines Fix cosmetic typo in string constant. ........ r10574 | wsfulton | 2008-06-24 22:10:28 +0200 (Wt, 24 cze 2008) | 1 line zap last entry ........ r10575 | wsfulton | 2008-06-24 22:11:46 +0200 (Wt, 24 cze 2008) | 1 line variable name changes to remove php keywords ........ r10576 | wsfulton | 2008-06-24 22:12:08 +0200 (Wt, 24 cze 2008) | 1 line variable name hiding fix ........ r10577 | wsfulton | 2008-06-24 22:12:43 +0200 (Wt, 24 cze 2008) | 1 line More info about numobjects added ........ r10578 | wsfulton | 2008-06-24 22:13:41 +0200 (Wt, 24 cze 2008) | 1 line update for 1.3.36 release ........ r10579 | wsfulton | 2008-06-24 23:48:46 +0200 (Wt, 24 cze 2008) | 1 line remove deprecated -c commandline option (runtime library generation) ........ r10580 | wsfulton | 2008-06-24 23:53:12 +0200 (Wt, 24 cze 2008) | 1 line correct comment about deprecated option ........ r10582 | wsfulton | 2008-06-25 01:00:27 +0200 (Śr, 25 cze 2008) | 1 line use rsync and ssh to upload releases to SourceForge as ftp no longer works ........ r10584 | wsfulton | 2008-06-25 01:24:48 +0200 (Śr, 25 cze 2008) | 1 line correction for 1.3.36 ........ r10588 | wsfulton | 2008-06-25 02:16:04 +0200 (Śr, 25 cze 2008) | 1 line section update ........ r10589 | wsfulton | 2008-06-25 02:16:40 +0200 (Śr, 25 cze 2008) | 1 line bump version to 1.3.37 ........ r10594 | wsfulton | 2008-06-26 20:33:06 +0200 (Cz, 26 cze 2008) | 1 line correct typo in first entry about %fragment ........ git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@10606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
542 lines
13 KiB
Makefile
542 lines
13 KiB
Makefile
#######################################################################
|
|
# SWIG test suite makefile.
|
|
# The test suite comprises many different test cases, which have
|
|
# typically produced bugs in the past. The aim is to have the test
|
|
# cases compiling for every language modules. Some testcase have
|
|
# a runtime test which is written in each of the module's language.
|
|
#
|
|
# This makefile runs SWIG on the testcases, compiles the c/c++ code
|
|
# then builds the object code for use by the language.
|
|
# To complete a test in a language follow these guidelines:
|
|
# 1) Add testcases to CPP_TEST_CASES (c++) or C_TEST_CASES (c) or
|
|
# MULTI_CPP_TEST_CASES (multi-module c++ tests)
|
|
# 2) If not already done, create a makefile which:
|
|
# a) Defines LANGUAGE matching a language rule in Examples/Makefile,
|
|
# for example LANGUAGE = java
|
|
# b) Define rules for %.ctest, %.cpptest, %.multicpptest and %.clean.
|
|
# c) Define srcdir, top_srcdir and top_builddir (these are the
|
|
# equivalent to configure's variables of the same name).
|
|
# 3) One off special commandline options can be achieved by adding a
|
|
# test case to CUSTOM_TEST_CASES and defining rules to run and test.
|
|
#
|
|
# The 'check' target runs the testcases including SWIG invocation,
|
|
# C/C++ compilation, target language compilation (if any) and runtime
|
|
# test (if there is an associated 'runme' test).
|
|
# The 'partialcheck' target only invokes SWIG.
|
|
# The 'all' target is the same as the 'check' target but also includes
|
|
# known broken testcases.
|
|
# The 'clean' target cleans up.
|
|
#
|
|
# Note that the RUNTOOL, COMPILETOOL and SWIGTOOL variables can be used
|
|
# for # invoking tools for the runtime tests and target language
|
|
# compiler (eg javac) respectively. For example, valgrind can be used
|
|
# for memory checking of the runtime tests using:
|
|
# make RUNTOOL="valgrind --leak-check-full"
|
|
# and valgrind can be used when invoking SWIG using:
|
|
# make SWIGTOOL="valgrind --tool=memcheck"
|
|
#
|
|
# The variables below can be overridden after including this makefile
|
|
#######################################################################
|
|
|
|
#######################################################################
|
|
# Variables
|
|
#######################################################################
|
|
|
|
ifneq (,$(USE_VALGRIND))
|
|
VALGRIND_OPT = --leak-check=full
|
|
RUNTOOL = valgrind $(VALGRIND_OPT)
|
|
else
|
|
RUNTOOL =
|
|
endif
|
|
COMPILETOOL=
|
|
SWIGTOOL =
|
|
|
|
SWIG = $(SWIGTOOL) $(top_builddir)/preinst-swig
|
|
SWIG_LIB = $(top_srcdir)/Lib
|
|
TEST_SUITE = test-suite
|
|
EXAMPLES = Examples
|
|
CXXSRCS =
|
|
CSRCS =
|
|
TARGETPREFIX =
|
|
TARGETSUFFIX =
|
|
SWIGOPT = -I$(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)/$(LANGUAGE) -I$(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE) -DSWIG_NOEXTRA_QUALIFICATION
|
|
INCLUDES = -I$(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)/$(LANGUAGE) -I$(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)
|
|
LIBS = -L.
|
|
LIBPREFIX = lib
|
|
ACTION = check
|
|
|
|
#
|
|
# Please keep test cases in alphabetical order.
|
|
# Note that any whitespace after the last entry in each list will break make
|
|
#
|
|
|
|
# Broken C++ test cases. (Can be run individually using make testcase.cpptest.)
|
|
CPP_TEST_BROKEN += \
|
|
constants \
|
|
cpp_broken \
|
|
exception_partial_info \
|
|
extend_variable \
|
|
namespace_union \
|
|
nested_comment \
|
|
overload_complicated \
|
|
template_default_pointer \
|
|
template_expr
|
|
|
|
|
|
# Broken C test cases. (Can be run individually using make testcase.ctest.)
|
|
C_TEST_BROKEN += \
|
|
tag_no_clash_with_variable
|
|
|
|
|
|
# C++ test cases. (Can be run individually using make testcase.cpptest.)
|
|
CPP_TEST_CASES += \
|
|
abstract_access \
|
|
abstract_inherit \
|
|
abstract_inherit_ok \
|
|
abstract_signature \
|
|
abstract_typedef \
|
|
abstract_typedef2 \
|
|
abstract_virtual \
|
|
access_change \
|
|
add_link \
|
|
aggregate \
|
|
allowexcept \
|
|
allprotected \
|
|
anonymous_bitfield \
|
|
apply_signed_char \
|
|
apply_strings \
|
|
argout \
|
|
array_member \
|
|
array_typedef_memberin \
|
|
arrayref \
|
|
arrays_dimensionless \
|
|
arrays_global \
|
|
arrays_global_twodim \
|
|
arrays_scope \
|
|
bloody_hell \
|
|
bools \
|
|
cast_operator \
|
|
casts \
|
|
char_strings \
|
|
class_ignore \
|
|
class_scope_weird \
|
|
compactdefaultargs \
|
|
const_const_2 \
|
|
constant_pointers \
|
|
constover \
|
|
constructor_copy \
|
|
constructor_exception \
|
|
constructor_explicit \
|
|
constructor_ignore \
|
|
constructor_value \
|
|
contract \
|
|
conversion \
|
|
conversion_namespace \
|
|
conversion_ns_template \
|
|
cplusplus_throw \
|
|
cpp_basic \
|
|
cpp_enum \
|
|
cpp_namespace \
|
|
cpp_nodefault \
|
|
cpp_static \
|
|
cpp_typedef \
|
|
default_args \
|
|
default_constructor \
|
|
defvalue_constructor \
|
|
derived_byvalue \
|
|
derived_nested \
|
|
destructor_reprotected \
|
|
director_abstract \
|
|
director_basic \
|
|
director_classes \
|
|
director_classic \
|
|
director_constructor \
|
|
director_default \
|
|
director_detect \
|
|
director_enum \
|
|
director_exception \
|
|
director_extend \
|
|
director_finalizer \
|
|
director_frob \
|
|
director_ignore \
|
|
director_namespace_clash \
|
|
director_nested \
|
|
director_overload \
|
|
director_primitives \
|
|
director_protected \
|
|
director_redefined \
|
|
director_thread \
|
|
director_unroll \
|
|
director_using \
|
|
director_wombat \
|
|
disown \
|
|
dynamic_cast \
|
|
empty \
|
|
enum_scope_template \
|
|
enum_template \
|
|
enum_thorough \
|
|
enum_var \
|
|
evil_diamond \
|
|
evil_diamond_ns \
|
|
evil_diamond_prop \
|
|
exception_order \
|
|
extend \
|
|
extend_default \
|
|
extend_placement \
|
|
extend_template \
|
|
extend_template_ns \
|
|
extern_namespace \
|
|
extern_throws \
|
|
features \
|
|
fragments \
|
|
friends \
|
|
fvirtual \
|
|
global_ns_arg \
|
|
global_vars \
|
|
grouping \
|
|
ignore_parameter \
|
|
import_nomodule \
|
|
inherit \
|
|
inherit_missing \
|
|
inherit_same_name \
|
|
inherit_target_language \
|
|
inherit_void_arg \
|
|
inline_initializer \
|
|
keyword_rename \
|
|
kind \
|
|
langobj \
|
|
li_attribute \
|
|
li_boost_shared_ptr \
|
|
li_boost_shared_ptr_bits \
|
|
li_carrays \
|
|
li_cdata \
|
|
li_cpointer \
|
|
li_stdint \
|
|
li_typemaps \
|
|
li_windows \
|
|
long_long_apply \
|
|
member_pointer \
|
|
member_template \
|
|
minherit \
|
|
minherit2 \
|
|
mixed_types \
|
|
multiple_inheritance \
|
|
name_cxx \
|
|
name_warnings \
|
|
namespace_class \
|
|
namespace_enum \
|
|
namespace_extend \
|
|
namespace_nested \
|
|
namespace_spaces \
|
|
namespace_template \
|
|
namespace_typedef_class \
|
|
namespace_typemap \
|
|
namespace_virtual_method \
|
|
naturalvar \
|
|
newobject1 \
|
|
null_pointer \
|
|
operator_overload \
|
|
operator_overload_break \
|
|
ordering \
|
|
overload_copy \
|
|
overload_extend \
|
|
overload_rename \
|
|
overload_simple \
|
|
overload_subtype \
|
|
overload_template \
|
|
overload_template_fast \
|
|
pointer_reference \
|
|
primitive_ref \
|
|
private_assign \
|
|
protected_rename \
|
|
pure_virtual \
|
|
redefined \
|
|
refcount \
|
|
reference_global_vars \
|
|
register_par \
|
|
rename1 \
|
|
rename2 \
|
|
rename3 \
|
|
rename4 \
|
|
rename_scope \
|
|
restrict_cplusplus \
|
|
return_const_value \
|
|
return_value_scope \
|
|
rname \
|
|
samename \
|
|
sizet \
|
|
smart_pointer_const \
|
|
smart_pointer_const2 \
|
|
smart_pointer_extend \
|
|
smart_pointer_member \
|
|
smart_pointer_multi \
|
|
smart_pointer_multi_typedef \
|
|
smart_pointer_namespace \
|
|
smart_pointer_namespace2 \
|
|
smart_pointer_not \
|
|
smart_pointer_overload \
|
|
smart_pointer_protected \
|
|
smart_pointer_rename \
|
|
smart_pointer_simple \
|
|
smart_pointer_static \
|
|
smart_pointer_templatemethods \
|
|
smart_pointer_templatevariables \
|
|
smart_pointer_typedef \
|
|
special_variables \
|
|
static_array_member \
|
|
static_const_member \
|
|
static_const_member_2 \
|
|
struct_value \
|
|
template \
|
|
template_arg_replace \
|
|
template_arg_scope \
|
|
template_arg_typename \
|
|
template_array_numeric \
|
|
template_base_template \
|
|
template_classes \
|
|
template_const_ref \
|
|
template_construct \
|
|
template_default \
|
|
template_default2 \
|
|
template_default_arg \
|
|
template_default_class_parms \
|
|
template_default_inherit \
|
|
template_default_qualify \
|
|
template_default_vw \
|
|
template_enum \
|
|
template_enum_ns_inherit \
|
|
template_enum_typedef \
|
|
template_explicit \
|
|
template_extend1 \
|
|
template_extend2 \
|
|
template_extend_overload \
|
|
template_extend_overload_2 \
|
|
template_forward \
|
|
template_inherit \
|
|
template_inherit_abstract \
|
|
template_int_const \
|
|
template_methods \
|
|
template_ns \
|
|
template_ns2 \
|
|
template_ns3 \
|
|
template_ns4 \
|
|
template_ns_enum \
|
|
template_ns_enum2 \
|
|
template_ns_inherit \
|
|
template_ns_scope \
|
|
template_partial_arg \
|
|
template_qualifier \
|
|
template_qualifier \
|
|
template_ref_type \
|
|
template_rename \
|
|
template_retvalue \
|
|
template_specialization \
|
|
template_specialization_defarg \
|
|
template_specialization_enum \
|
|
template_static \
|
|
template_tbase_template \
|
|
template_template_parameters \
|
|
template_typedef \
|
|
template_typedef_cplx \
|
|
template_typedef_cplx2 \
|
|
template_typedef_cplx3 \
|
|
template_typedef_cplx4 \
|
|
template_typedef_cplx5 \
|
|
template_typedef_funcptr \
|
|
template_typedef_ns \
|
|
template_typedef_ptr \
|
|
template_typedef_rec \
|
|
template_using \
|
|
template_virtual \
|
|
template_whitespace \
|
|
threads \
|
|
throw_exception \
|
|
typedef_array_member \
|
|
typedef_class \
|
|
typedef_funcptr \
|
|
typedef_inherit \
|
|
typedef_mptr \
|
|
typedef_reference \
|
|
typedef_scope \
|
|
typedef_sizet \
|
|
typedef_struct \
|
|
typemap_namespace \
|
|
typemap_ns_using \
|
|
typemap_numinputs \
|
|
typemap_variables \
|
|
typemap_various \
|
|
typename \
|
|
types_directive \
|
|
union_scope \
|
|
using1 \
|
|
using2 \
|
|
using_composition \
|
|
using_extend \
|
|
using_inherit \
|
|
using_namespace \
|
|
using_pointers \
|
|
using_private \
|
|
using_protected \
|
|
valuewrapper \
|
|
valuewrapper_base \
|
|
valuewrapper_const \
|
|
valuewrapper_opaque \
|
|
varargs \
|
|
virtual_destructor \
|
|
virtual_poly \
|
|
voidtest \
|
|
wrapmacro
|
|
|
|
#
|
|
# Put all the heavy STD/STL cases here, where they can be skipped if needed
|
|
#
|
|
CPP_STD_TEST_CASES += \
|
|
director_string \
|
|
ignore_template_constructor \
|
|
li_std_deque \
|
|
li_std_except \
|
|
li_std_pair \
|
|
li_std_string \
|
|
li_std_vector \
|
|
naturalvar \
|
|
smart_pointer_inherit \
|
|
template_typedef_fnc \
|
|
template_type_namespace \
|
|
template_opaque
|
|
|
|
|
|
ifndef SKIP_CPP_STD_CASES
|
|
CPP_TEST_CASES += ${CPP_STD_TEST_CASES}
|
|
endif
|
|
|
|
|
|
# C test cases. (Can be run individually using make testcase.ctest.)
|
|
C_TEST_CASES += \
|
|
arrays \
|
|
char_constant \
|
|
const_const \
|
|
empty \
|
|
enums \
|
|
extern_declaration \
|
|
funcptr \
|
|
function_typedef \
|
|
immutable \
|
|
inctest \
|
|
integers \
|
|
keyword_rename \
|
|
lextype \
|
|
li_carrays \
|
|
li_cdata \
|
|
li_cmalloc \
|
|
li_constraints \
|
|
li_cpointer \
|
|
li_math \
|
|
long_long \
|
|
name \
|
|
nested \
|
|
newobject2 \
|
|
overload_extend \
|
|
overload_extendc \
|
|
preproc \
|
|
ret_by_value \
|
|
sizeof_pointer \
|
|
sneaky1 \
|
|
struct_rename \
|
|
typedef_struct \
|
|
typemap_subst \
|
|
unions
|
|
|
|
|
|
# Multi-module C++ test cases . (Can be run individually using make testcase.multicpptest.)
|
|
MULTI_CPP_TEST_CASES += \
|
|
clientdata_prop \
|
|
imports \
|
|
packageoption \
|
|
mod \
|
|
template_typedef_import \
|
|
multi_import
|
|
|
|
NOT_BROKEN_TEST_CASES = $(CPP_TEST_CASES:=.cpptest) \
|
|
$(C_TEST_CASES:=.ctest) \
|
|
$(MULTI_CPP_TEST_CASES:=.multicpptest) \
|
|
$(CUSTOM_TEST_CASES:=.customtest) \
|
|
$(EXTRA_TEST_CASES)
|
|
|
|
BROKEN_TEST_CASES = $(CPP_TEST_BROKEN:=.cpptest) \
|
|
$(C_TEST_BROKEN:=.ctest)
|
|
|
|
ALL_CLEAN = $(CPP_TEST_CASES:=.clean) \
|
|
$(C_TEST_CASES:=.clean) \
|
|
$(MULTI_CPP_TEST_CASES:=.clean) \
|
|
$(CUSTOM_TEST_CASES:=.clean) \
|
|
$(CPP_TEST_BROKEN:=.clean) \
|
|
$(C_TEST_BROKEN:=.clean)
|
|
|
|
#######################################################################
|
|
# The following applies for all module languages
|
|
#######################################################################
|
|
all: $(BROKEN_TEST_CASES) $(NOT_BROKEN_TEST_CASES)
|
|
|
|
check: $(NOT_BROKEN_TEST_CASES)
|
|
|
|
# partialcheck target runs SWIG only, ie no compilation or running of tests (for a subset of languages)
|
|
partialcheck:
|
|
$(MAKE) check CC=true CXX=true LDSHARED=true CXXSHARED=true RUNTOOL=true COMPILETOOL=true
|
|
|
|
broken: $(BROKEN_TEST_CASES)
|
|
|
|
swig_and_compile_cpp = \
|
|
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile CXXSRCS="$(CXXSRCS)" \
|
|
SWIG_LIB="$(SWIG_LIB)" SWIG="$(SWIG)" \
|
|
INCLUDES="$(INCLUDES)" SWIGOPT="$(SWIGOPT)" NOLINK=true \
|
|
TARGET="$(TARGETPREFIX)$*$(TARGETSUFFIX)" INTERFACE="$*.i" \
|
|
$(LANGUAGE)$(VARIANT)_cpp
|
|
|
|
swig_and_compile_c = \
|
|
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile CSRCS="$(CSRCS)" \
|
|
SWIG_LIB="$(SWIG_LIB)" SWIG="$(SWIG)" \
|
|
INCLUDES="$(INCLUDES)" SWIGOPT="$(SWIGOPT)" NOLINK=true \
|
|
TARGET="$(TARGETPREFIX)$*$(TARGETSUFFIX)" INTERFACE="$*.i" \
|
|
$(LANGUAGE)$(VARIANT)
|
|
|
|
swig_and_compile_multi_cpp = \
|
|
for f in `cat $(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)/$*.list` ; do \
|
|
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile CXXSRCS="$(CXXSRCS)" \
|
|
SWIG_LIB="$(SWIG_LIB)" SWIG="$(SWIG)" LIBS='$(LIBS)' \
|
|
INCLUDES="$(INCLUDES)" SWIGOPT="$(SWIGOPT)" NOLINK=true \
|
|
TARGET="$(TARGETPREFIX)$${f}$(TARGETSUFFIX)" INTERFACE="$$f.i" \
|
|
$(LANGUAGE)$(VARIANT)_cpp; \
|
|
done
|
|
|
|
swig_and_compile_external = \
|
|
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile \
|
|
SWIG_LIB="$(SWIG_LIB)" SWIG="$(SWIG)" \
|
|
TARGET="$*_wrap_hdr.h" \
|
|
$(LANGUAGE)$(VARIANT)_externalhdr; \
|
|
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile CXXSRCS="$(CXXSRCS) $*_external.cxx" \
|
|
SWIG_LIB="$(SWIG_LIB)" SWIG="$(SWIG)" \
|
|
INCLUDES="$(INCLUDES)" SWIGOPT="$(SWIGOPT)" NOLINK=true \
|
|
TARGET="$(TARGETPREFIX)$*$(TARGETSUFFIX)" INTERFACE="$*.i" \
|
|
$(LANGUAGE)$(VARIANT)_cpp
|
|
|
|
swig_and_compile_runtime = \
|
|
|
|
setup = \
|
|
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \
|
|
echo "$(ACTION)ing testcase $* (with run test) under $(LANGUAGE)" ; \
|
|
else \
|
|
echo "$(ACTION)ing testcase $* under $(LANGUAGE)" ; \
|
|
fi;
|
|
|
|
|
|
|
|
#######################################################################
|
|
# Clean
|
|
#######################################################################
|
|
clean: $(ALL_CLEAN)
|
|
|
|
distclean: clean
|
|
@rm -f Makefile
|
|
|
|
.PHONY: all check partialcheck broken clean distclean
|
|
|