Adapt test-suite configuration to allow switching between js engines.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13822 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8948360725
commit
4616f9643f
1 changed files with 7 additions and 1 deletions
|
|
@ -56,6 +56,12 @@ SKIP_MULTI_CPP_CASES = @SKIP_MULTI_CPP_CASES@
|
||||||
|
|
||||||
include $(srcdir)/../common.mk
|
include $(srcdir)/../common.mk
|
||||||
|
|
||||||
|
ifeq (,$(V8))
|
||||||
|
JSENGINEFLAG = -jsc
|
||||||
|
else
|
||||||
|
JSENGINEFLAG = -v8
|
||||||
|
endif
|
||||||
|
|
||||||
# Overridden variables here
|
# Overridden variables here
|
||||||
|
|
||||||
# Custom tests - tests with additional commandline options
|
# Custom tests - tests with additional commandline options
|
||||||
|
|
@ -83,7 +89,7 @@ javascript_exe:
|
||||||
# a file is found which has _runme.js appended after the testcase name.
|
# a file is found which has _runme.js 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) $(JAVASCRIPT_EXE) -l $* $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
|
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(JAVASCRIPT_EXE) $(JSENGINEFLAG) -l $* $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Clean
|
# Clean
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue