diff options
author | Steven Knight <knight@baldmt.com> | 2009-11-28 04:52:19 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2009-11-28 04:52:19 (GMT) |
commit | 6857194764c8c5428a3973d8bf657d3735f48376 (patch) | |
tree | fc3366b22e4575a66eacd0d2b7784f3d41c35517 | |
parent | f17391ac1b2a04eb8ba2cab68bf9c5f547e2c50e (diff) | |
download | SCons-6857194764c8c5428a3973d8bf657d3735f48376.zip SCons-6857194764c8c5428a3973d8bf657d3735f48376.tar.gz SCons-6857194764c8c5428a3973d8bf657d3735f48376.tar.bz2 |
Don't hard-code the swig location in the expected output.
Use test.wrap_stdout() instead of hard-coding the SCons messages.
-rw-r--r-- | test/SWIG/generated_swigfile.py | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/test/SWIG/generated_swigfile.py b/test/SWIG/generated_swigfile.py index 844f786..1187df2 100644 --- a/test/SWIG/generated_swigfile.py +++ b/test/SWIG/generated_swigfile.py @@ -49,7 +49,6 @@ else: _dll = '.so' test = TestSCons.TestSCons() -test.verbose_set(1) swig = test.where_is('swig') if not swig: @@ -77,16 +76,13 @@ java_c_file = foo.CFile( target='java_swig_test' ,source=java_interface, SW """ % locals()) -expected_stdout = """scons: Reading SConscript files ... -scons: done reading SConscript files. -scons: Building targets ... -echo '%module test_java_swig' > test_java_swig.i -/usr/bin/swig -o java_swig_test_wrap.cc -java -c++ test_java_swig.i -echo '%module test_py_swig' > test_py_swig.i -/usr/bin/swig -o python_swig_test_wrap.cc -python -c++ test_py_swig.i -scons: done building targets. -""" -test.run(arguments = '.',stdout=expected_stdout) +expected_stdout = """\ +echo '%%module test_java_swig' > test_java_swig.i +%(swig)s -o java_swig_test_wrap.cc -java -c++ test_java_swig.i +echo '%%module test_py_swig' > test_py_swig.i +%(swig)s -o python_swig_test_wrap.cc -python -c++ test_py_swig.i +""" % locals() +test.run(arguments = '.',stdout=test.wrap_stdout(expected_stdout)) # If we mistakenly depend on the .py file that SWIG didn't create |