summaryrefslogtreecommitdiffstats
path: root/test/option--C.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-15 13:46:11 (GMT)
committerSteven Knight <knight@baldmt.com>2001-09-15 13:46:11 (GMT)
commitfcd916513a1ad10e13479d4d604f239f7ea45c73 (patch)
tree4ddf60867e13b0ba12f5b37c6a4eaebc9a08ebaa /test/option--C.py
parentf4b5ccd3fdacad36cb124245591ea5bfaf4de12e (diff)
downloadSCons-fcd916513a1ad10e13479d4d604f239f7ea45c73.zip
SCons-fcd916513a1ad10e13479d4d604f239f7ea45c73.tar.gz
SCons-fcd916513a1ad10e13479d4d604f239f7ea45c73.tar.bz2
Add a TestSCons module for common initialization of SCons tests.
Diffstat (limited to 'test/option--C.py')
-rw-r--r--test/option--C.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/option--C.py b/test/option--C.py
index d1389bb..7b3bc27 100644
--- a/test/option--C.py
+++ b/test/option--C.py
@@ -2,13 +2,11 @@
__revision__ = "test/option--C.py __REVISION__ __DATE__ __DEVELOPER__"
-import TestCmd
+import TestSCons
import string
import sys
-test = TestCmd.TestCmd(program = 'scons.py',
- workdir = '',
- interpreter = 'python')
+test = TestSCons.TestSCons()
wpath = test.workpath()
wpath_sub = test.workpath('sub')
@@ -31,12 +29,12 @@ import os
print "sub/dir/SConstruct", os.getcwd()
""")
-test.run(chdir = '.', arguments = '-C sub')
+test.run(arguments = '-C sub')
test.fail_test(test.stdout() != "sub/SConstruct %s\n" % wpath_sub)
test.fail_test(test.stderr() != "")
-test.run(chdir = '.', arguments = '-C sub -C dir')
+test.run(arguments = '-C sub -C dir')
test.fail_test(test.stdout() != "sub/dir/SConstruct %s\n" % wpath_sub_dir)
test.fail_test(test.stderr() != "")
@@ -46,12 +44,12 @@ test.run(chdir = '.')
test.fail_test(test.stdout() != "SConstruct %s\n" % wpath)
test.fail_test(test.stderr() != "")
-test.run(chdir = '.', arguments = '--directory=sub/dir')
+test.run(arguments = '--directory=sub/dir')
test.fail_test(test.stdout() != "sub/dir/SConstruct %s\n" % wpath_sub_dir)
test.fail_test(test.stderr() != "")
-test.run(chdir = '.', arguments = '-C %s -C %s' % (wpath_sub_dir, wpath_sub))
+test.run(arguments = '-C %s -C %s' % (wpath_sub_dir, wpath_sub))
test.fail_test(test.stdout() != "sub/SConstruct %s\n" % wpath_sub)
test.fail_test(test.stderr() != "")