Testcases that used the prebuilt runtime library generate their own runtime library DLL/so and use that instead now

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6022 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-07-10 16:36:19 +00:00
commit aa07e2c4d5
12 changed files with 31 additions and 16 deletions

View file

@ -32,7 +32,7 @@ CPP_TEST_CASES += \
include $(srcdir)/../common.mk
# Overridden variables here
# none!
LIBS = -L. -l_$*_runtime
# Rules for the different types of tests
%.cpptest:
@ -54,7 +54,7 @@ include $(srcdir)/../common.mk
# a file is found which has _runme.py appended after the testcase name.
run_testcase = \
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
env LD_LIBRARY_PATH=$(DYNAMIC_LIB_PATH):$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH python $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH python $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \
fi;
# Clean: remove the generated .py file