Merged revisions 2136-2200,2202-2290,2292-2301 via svnmerge from
[scons.git] / test / SWIG / SWIGOUTDIR.py
index 69d535cb825e3081df6cd777e532b38a93df19d2..b638a3bdf5e2127b6a37b0b23e38731f504c8ac3 100644 (file)
@@ -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'])