Fixes a few C++ test cases: clientdata_prop/imports/mod/multi_import/packageoption/template_typedef_import. Thx to Wolfgang Frisch

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12974 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Vincent Couvert 2012-04-10 19:56:17 +00:00
commit 654066529b

View file

@ -19,27 +19,26 @@ include $(srcdir)/../common.mk
# Rules for the different types of tests # Rules for the different types of tests
%.cpptest: %.cpptest:
@$(setup) $(setup)
@+$(swig_and_compile_cpp) #> scilab.log +$(swig_and_compile_cpp)
@$(run_testcase) $(run_testcase)
%.ctest: %.ctest:
@$(setup) $(setup)
@+$(swig_and_compile_c) #> scilab.log +$(swig_and_compile_c)
@$(run_testcase) $(run_testcase)
%.multicpptest: %.multicpptest:
@$(setup) $(setup)
@+$(swig_and_compile_multi_cpp) > #scilab.log +$(swig_and_compile_multi_cpp)
@$(run_testcase) $(run_testcase)
# Runs the testcase. A testcase is only run if # Runs the testcase. A testcase is only run if
# a file is found which has _runme.sci appended after the testcase name. # a file is found which has _runme.sci appended after the testcase name.
run_testcase = \ run_testcase = \
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \ if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(SCILAB) -nwni -nb -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ; ) \ env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(SCILAB) -nwni -nb -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ; ) \
fi; \ fi;
# Clean: remove the generated .sci file # Clean: remove the generated .sci file
%.clean: %.clean: