Custom test required for the intermediary_classname test as it requires a swig commandline option to set the shared object/dll name.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8121 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1d30af4873
commit
6231337a9b
1 changed files with 7 additions and 1 deletions
|
|
@ -20,10 +20,12 @@ CPP_TEST_CASES = \
|
|||
enum_thorough_simple \
|
||||
enum_thorough_typesafe
|
||||
|
||||
CUSTOM_TEST_CASES = intermediary_classname
|
||||
|
||||
include $(srcdir)/../common.mk
|
||||
|
||||
# Overridden variables here
|
||||
SWIGOPT += -namespace $*Namespace
|
||||
SWIGOPT += -namespace $*Namespace $(SWIGOPTSPECIAL)
|
||||
|
||||
# Rules for the different types of tests
|
||||
%.cpptest:
|
||||
|
|
@ -41,6 +43,10 @@ SWIGOPT += -namespace $*Namespace
|
|||
(cd $* && $(swig_and_compile_multi_cpp); ) && \
|
||||
$(run_testcase)
|
||||
|
||||
# Rules for custom tests
|
||||
intermediary_classname.customtest:
|
||||
$(MAKE) intermediary_classname.cpptest SWIGOPTSPECIAL="-dllimport intermediary_classname"
|
||||
|
||||
# Makes a directory for the testcase if it does not exist
|
||||
setup = \
|
||||
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue