diff options
author | Steven Knight <knight@baldmt.com> | 2002-09-30 16:53:47 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-09-30 16:53:47 (GMT) |
commit | 752502105f63c91ee1f87cc35b83634c6bc42c3b (patch) | |
tree | 0b603afdbd7d32b8aa3e7482dc72badf69345874 /test/option-c.py | |
parent | f6141b3f503c8f78fca191bfd59d9785cd81bf10 (diff) | |
download | SCons-752502105f63c91ee1f87cc35b83634c6bc42c3b.zip SCons-752502105f63c91ee1f87cc35b83634c6bc42c3b.tar.gz SCons-752502105f63c91ee1f87cc35b83634c6bc42c3b.tar.bz2 |
Add output to tell people when we're reading SConscript files versus when we're building targets.
Diffstat (limited to 'test/option-c.py')
-rw-r--r-- | test/option-c.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/test/option-c.py b/test/option-c.py index 6bb25da..060ebfb 100644 --- a/test/option-c.py +++ b/test/option-c.py @@ -62,21 +62,24 @@ test.fail_test(test.read(test.workpath('foo2.xxx')) != "foo2.in\n") test.fail_test(test.read(test.workpath('foo2.out')) != "foo2.in\n") test.fail_test(test.read(test.workpath('foo3.out')) != "foo3.in\n") -test.run(arguments = '-c foo1.out', stdout = "Removed foo1.out\n") +test.run(arguments = '-c foo1.out', + stdout = test.wrap_stdout("Removed foo1.out\n")) test.fail_test(os.path.exists(test.workpath('foo1.out'))) test.fail_test(not os.path.exists(test.workpath('foo2.xxx'))) test.fail_test(not os.path.exists(test.workpath('foo2.out'))) test.fail_test(not os.path.exists(test.workpath('foo3.out'))) -test.run(arguments = '--clean foo2.out foo2.xxx', stdout = "Removed foo2.xxx\nRemoved foo2.out\n") +test.run(arguments = '--clean foo2.out foo2.xxx', + stdout = test.wrap_stdout("Removed foo2.xxx\nRemoved foo2.out\n")) test.fail_test(os.path.exists(test.workpath('foo1.out'))) test.fail_test(os.path.exists(test.workpath('foo2.xxx'))) test.fail_test(os.path.exists(test.workpath('foo2.out'))) test.fail_test(not os.path.exists(test.workpath('foo3.out'))) -test.run(arguments = '--remove foo3.out', stdout = "Removed foo3.out\n") +test.run(arguments = '--remove foo3.out', + stdout = test.wrap_stdout("Removed foo3.out\n")) test.fail_test(os.path.exists(test.workpath('foo1.out'))) test.fail_test(os.path.exists(test.workpath('foo2.xxx'))) @@ -90,7 +93,8 @@ test.fail_test(test.read(test.workpath('foo2.xxx')) != "foo2.in\n") test.fail_test(test.read(test.workpath('foo2.out')) != "foo2.in\n") test.fail_test(test.read(test.workpath('foo3.out')) != "foo3.in\n") -test.run(arguments = '-c foo2.xxx', stdout = "Removed foo2.xxx\n") +test.run(arguments = '-c foo2.xxx', + stdout = test.wrap_stdout("Removed foo2.xxx\n")) test.fail_test(test.read(test.workpath('foo1.out')) != "foo1.in\n") test.fail_test(os.path.exists(test.workpath('foo2.xxx'))) @@ -98,7 +102,7 @@ test.fail_test(test.read(test.workpath('foo2.out')) != "foo2.in\n") test.fail_test(test.read(test.workpath('foo3.out')) != "foo3.in\n") test.run(arguments = '-c .', - stdout = "Removed foo1.out\nRemoved foo2.out\nRemoved foo3.out\n") + stdout = test.wrap_stdout("Removed foo1.out\nRemoved foo2.out\nRemoved foo3.out\n")) test.fail_test(os.path.exists(test.workpath('foo1.out'))) test.fail_test(os.path.exists(test.workpath('foo2.out'))) @@ -106,11 +110,11 @@ test.fail_test(os.path.exists(test.workpath('foo3.out'))) test.run(arguments = 'foo1.out foo2.out foo3.out') -expect = """Removed foo1.out +expect = test.wrap_stdout("""Removed foo1.out Removed foo2.xxx Removed foo2.out Removed foo3.out -""" +""") test.run(arguments = '-c -n foo1.out foo2.out foo3.out', stdout = expect) @@ -125,7 +129,7 @@ test.writable('.', 0) f = open(test.workpath('foo1.out')) test.run(arguments = '-c foo1.out', - stdout = "scons: Could not remove 'foo1.out': Permission denied\n") + stdout = test.wrap_stdout("scons: Could not remove 'foo1.out': Permission denied\n")) test.fail_test(not os.path.exists(test.workpath('foo1.out'))) |