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:
William S Fulton 2005-12-29 23:24:22 +00:00
commit 6231337a9b

View file

@ -20,10 +20,12 @@ CPP_TEST_CASES = \
enum_thorough_simple \ enum_thorough_simple \
enum_thorough_typesafe enum_thorough_typesafe
CUSTOM_TEST_CASES = intermediary_classname
include $(srcdir)/../common.mk include $(srcdir)/../common.mk
# Overridden variables here # Overridden variables here
SWIGOPT += -namespace $*Namespace SWIGOPT += -namespace $*Namespace $(SWIGOPTSPECIAL)
# Rules for the different types of tests # Rules for the different types of tests
%.cpptest: %.cpptest:
@ -41,6 +43,10 @@ SWIGOPT += -namespace $*Namespace
(cd $* && $(swig_and_compile_multi_cpp); ) && \ (cd $* && $(swig_and_compile_multi_cpp); ) && \
$(run_testcase) $(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 # Makes a directory for the testcase if it does not exist
setup = \ setup = \
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \ if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \