Make this work with multi tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10052 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
53c972ddf1
commit
bc801e662a
1 changed files with 10 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ include $(srcdir)/../common.mk
|
|||
%.multicpptest:
|
||||
$(setup)
|
||||
+$(swig_and_compile_multi_cpp)
|
||||
$(run_testcase)
|
||||
$(run_multitestcase)
|
||||
|
||||
# Runs the testcase.
|
||||
#
|
||||
|
|
@ -45,6 +45,15 @@ run_testcase = \
|
|||
($(RUNR) $(srcdir)/$(SCRIPTPREFIX)$*$(WRAPSUFFIX);) \
|
||||
fi;
|
||||
|
||||
run_multitestcase = \
|
||||
for f in `cat $(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)/$*.list` ; do \
|
||||
if [ -f $(srcdir)/$(SCRIPTPREFIX)$${f}$(SCRIPTSUFFIX) ]; then ( \
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH \
|
||||
$(RUNR) $(srcdir)/$(SCRIPTPREFIX)$${f}$(SCRIPTSUFFIX) ;) \
|
||||
else \
|
||||
($(RUNR) $(srcdir)/$(SCRIPTPREFIX)$${f}$(WRAPSUFFIX);) \
|
||||
fi; \
|
||||
done
|
||||
# Clean
|
||||
clean:
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile r_clean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue