summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2008-09-20 05:42:59 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2008-09-20 05:42:59 (GMT)
commitfa63153c9ba99481ce070c5eca25016d08a6a13f (patch)
treee2266e680bdc135d00781f1c12c871259d5fdfa6
parenta366f132c9dd57989997a0cfa980e037a2720628 (diff)
downloadSCons-fa63153c9ba99481ce070c5eca25016d08a6a13f.zip
SCons-fa63153c9ba99481ce070c5eca25016d08a6a13f.tar.gz
SCons-fa63153c9ba99481ce070c5eca25016d08a6a13f.tar.bz2
Fix broken swig tests when python being used to run tests is incompatible with system swig.
Propagate to the created SConstructs the version of swig found by the test (which is used to determine whether to run or not run this test).
-rw-r--r--test/SWIG/build-dir.py1
-rw-r--r--test/SWIG/live.py1
-rw-r--r--test/SWIG/module-parens.py1
-rw-r--r--test/SWIG/remove-modules.py1
-rw-r--r--test/SWIG/subdir.py1
5 files changed, 5 insertions, 0 deletions
diff --git a/test/SWIG/build-dir.py b/test/SWIG/build-dir.py
index 85ad7f5..1bee0c2 100644
--- a/test/SWIG/build-dir.py
+++ b/test/SWIG/build-dir.py
@@ -66,6 +66,7 @@ test.write(['SConstruct'], """\
#
env = Environment(CPPPATH = [".", r'%(python_include_dir)s'],
CPPDEFINES = "NDEBUG",
+ SWIG =r'%(swig)s',
SWIGFLAGS = ["-python", "-c++"],
SWIGCXXFILESUFFIX = "_wrap.cpp",
LDMODULEPREFIX='_',
diff --git a/test/SWIG/live.py b/test/SWIG/live.py
index 893d839..cfaf019 100644
--- a/test/SWIG/live.py
+++ b/test/SWIG/live.py
@@ -84,6 +84,7 @@ foo = Environment(SWIGFLAGS='-python',
LDMODULEPREFIX='%(ldmodule_prefix)s',
LDMODULESUFFIX='%(_dll)s',
FRAMEWORKS='%(python_frameworks)s',
+ SWIG=r'%(swig)s',
#LIBS=%(python_library_path)s,
)
diff --git a/test/SWIG/module-parens.py b/test/SWIG/module-parens.py
index 3dabacf..e30b93e 100644
--- a/test/SWIG/module-parens.py
+++ b/test/SWIG/module-parens.py
@@ -50,6 +50,7 @@ if not os.path.exists(Python_h):
test.write(['SConstruct'], """\
env = Environment(SWIGFLAGS = '-python -c++',
CPPPATH=r"%(python_include_dir)s",
+ SWIG=r'%(swig)s',
FRAMEWORKS='%(python_frameworks_flags)s',
)
diff --git a/test/SWIG/remove-modules.py b/test/SWIG/remove-modules.py
index ca681ea..fad8577 100644
--- a/test/SWIG/remove-modules.py
+++ b/test/SWIG/remove-modules.py
@@ -73,6 +73,7 @@ foo = Environment(SWIGFLAGS='-python',
LDMODULEPREFIX='%(ldmodule_prefix)s',
LDMODULESUFFIX='%(_dll)s',
FRAMEWORKS='%(python_frameworks_flags)s',
+ SWIG=r'%(swig)s',
)
import sys
diff --git a/test/SWIG/subdir.py b/test/SWIG/subdir.py
index f96b706..c3c8cf0 100644
--- a/test/SWIG/subdir.py
+++ b/test/SWIG/subdir.py
@@ -71,6 +71,7 @@ env = Environment(SWIGFLAGS='-python',
LDMODULEPREFIX='%(ldmodule_prefix)s',
LDMODULESUFFIX='%(_dll)s',
FRAMEWORKS='%(python_frameworks_flags)s',
+ SWIG=r'%(swig)s',
)
import sys