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-f.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-f.py')
-rw-r--r-- | test/option-f.py | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/test/option-f.py b/test/option-f.py index 30c49bb..cda5ab8 100644 --- a/test/option-f.py +++ b/test/option-f.py @@ -46,38 +46,46 @@ print "subdir/BuildThis", os.getcwd() wpath = test.workpath() test.run(arguments = '-f SConscript .', - stdout = 'SConscript %s\nscons: "." is up to date.\n' % wpath) - + stdout = test.wrap_stdout(read_str = 'SConscript %s\n' % wpath, + build_str = 'scons: "." is up to date.\n')) test.run(arguments = '-f %s .' % subdir_BuildThis, - stdout = 'subdir/BuildThis %s\nscons: "." is up to date.\n' % wpath) + stdout = test.wrap_stdout(read_str = 'subdir/BuildThis %s\n' % wpath, + build_str = 'scons: "." is up to date.\n')) test.run(arguments = '--file=SConscript .', - stdout = 'SConscript %s\nscons: "." is up to date.\n' % wpath) + stdout = test.wrap_stdout(read_str = 'SConscript %s\n' % wpath, + build_str = 'scons: "." is up to date.\n')) test.run(arguments = '--file=%s .' % subdir_BuildThis, - stdout = 'subdir/BuildThis %s\nscons: "." is up to date.\n' % wpath) + stdout = test.wrap_stdout(read_str = 'subdir/BuildThis %s\n' % wpath, + build_str = 'scons: "." is up to date.\n')) test.run(arguments = '--makefile=SConscript .', - stdout = 'SConscript %s\nscons: "." is up to date.\n' % wpath) + stdout = test.wrap_stdout(read_str = 'SConscript %s\n' % wpath, + build_str = 'scons: "." is up to date.\n')) test.run(arguments = '--makefile=%s .' % subdir_BuildThis, - stdout = 'subdir/BuildThis %s\nscons: "." is up to date.\n' % wpath) + stdout = test.wrap_stdout(read_str = 'subdir/BuildThis %s\n' % wpath, + build_str = 'scons: "." is up to date.\n')) test.run(arguments = '--sconstruct=SConscript .', - stdout = 'SConscript %s\nscons: "." is up to date.\n' % wpath) + stdout = test.wrap_stdout(read_str = 'SConscript %s\n' % wpath, + build_str = 'scons: "." is up to date.\n')) test.run(arguments = '--sconstruct=%s .' % subdir_BuildThis, - stdout = 'subdir/BuildThis %s\nscons: "." is up to date.\n' % wpath) + stdout = test.wrap_stdout(read_str = 'subdir/BuildThis %s\n' % wpath, + build_str = 'scons: "." is up to date.\n')) test.run(arguments = '-f - .', stdin = """ import os print "STDIN " + os.getcwd() """, - stdout = 'STDIN %s\nscons: "." is up to date.\n' % wpath) + stdout = test.wrap_stdout(read_str = 'STDIN %s\n' % wpath, + build_str = 'scons: "." is up to date.\n')) test.run(arguments = '-f no_such_file .', - stdout = 'scons: "." is up to date.\n', - stderr = "Ignoring missing SConscript 'no_such_file'\n") + stdout = test.wrap_stdout('scons: "." is up to date.\n'), + stderr = "Ignoring missing SConscript 'no_such_file'\n") test.pass_test() |