summaryrefslogtreecommitdiff
path: root/test/SWIG/SWIGOUTDIR.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/SWIG/SWIGOUTDIR.py')
-rw-r--r--test/SWIG/SWIGOUTDIR.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/SWIG/SWIGOUTDIR.py b/test/SWIG/SWIGOUTDIR.py
index 69d535cb..b638a3bd 100644
--- a/test/SWIG/SWIGOUTDIR.py
+++ b/test/SWIG/SWIGOUTDIR.py
@@ -29,10 +29,21 @@ Verify that use of the $SWIGOUTDIR variable causes SCons to recognize
that Java files are created in the specified output directory.
"""
+import sys
+
import TestSCons
test = TestSCons.TestSCons()
+test = TestSCons.TestSCons()
+
+swig = test.where_is('swig')
+
+if not swig:
+ test.skip_test('Can not find installed "swig", skipping test.\n')
+
+
+
test.write(['SConstruct'], """\
env = Environment(tools = ['default', 'swig'])