summaryrefslogtreecommitdiffstats
path: root/test/SHCC.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-06-15 04:53:49 (GMT)
committerSteven Knight <knight@baldmt.com>2002-06-15 04:53:49 (GMT)
commit77d43537975b406379979d599894971bf4a225f2 (patch)
tree93c8e6987a60b53f5ca0e3bc986bdcb4208893f3 /test/SHCC.py
parentcef5b7fa735eb4e405fab5f852df8e7d53c76954 (diff)
downloadSCons-77d43537975b406379979d599894971bf4a225f2.zip
SCons-77d43537975b406379979d599894971bf4a225f2.tar.gz
SCons-77d43537975b406379979d599894971bf4a225f2.tar.bz2
Add LIBS and LIBPATH dependencies for shared libraries. (Charles Crain)
Diffstat (limited to 'test/SHCC.py')
-rw-r--r--test/SHCC.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/test/SHCC.py b/test/SHCC.py
index 1313272..1d01663 100644
--- a/test/SHCC.py
+++ b/test/SHCC.py
@@ -31,11 +31,6 @@ import TestSCons
python = sys.executable
-if sys.platform == 'win32':
- _exe = '.exe'
-else:
- _exe = ''
-
test = TestSCons.TestSCons()
test.write("wrapper.py",
@@ -50,8 +45,8 @@ test.write('SConstruct', """
foo = Environment()
shcc = foo.Dictionary('SHCC')
bar = Environment(SHCC = r'%s wrapper.py ' + shcc)
-foo.Program(target = 'foo', source = 'foo.c', shared = 1)
-bar.Program(target = 'bar', source = 'bar.c', shared = 1)
+foo.SharedObject(target = 'foo/foo', source = 'foo.c')
+bar.SharedObject(target = 'bar/bar', source = 'bar.c')
""" % python)
test.write('foo.c', r"""
@@ -75,11 +70,11 @@ main(int argc, char *argv[])
""")
-test.run(arguments = 'foo' + _exe)
+test.run(arguments = 'foo')
test.fail_test(os.path.exists(test.workpath('wrapper.out')))
-test.run(arguments = 'bar' + _exe)
+test.run(arguments = 'bar')
test.fail_test(test.read('wrapper.out') != "wrapper.py\n")