diff options
author | Steven Knight <knight@baldmt.com> | 2002-12-28 05:31:39 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-12-28 05:31:39 (GMT) |
commit | 474383d6f14d1594ad394c22afd837d1522175e9 (patch) | |
tree | d19629c2db3846ac88b80467547d5e89c15dcb37 /test/chained-build.py | |
parent | 38d41c10db89f34f72a62d6ada1a4122d4a1cc3f (diff) | |
download | SCons-474383d6f14d1594ad394c22afd837d1522175e9.zip SCons-474383d6f14d1594ad394c22afd837d1522175e9.tar.gz SCons-474383d6f14d1594ad394c22afd837d1522175e9.tar.bz2 |
Refactor FunctionAction objects to support -n and -s.
Diffstat (limited to 'test/chained-build.py')
-rw-r--r-- | test/chained-build.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/chained-build.py b/test/chained-build.py index 94277fd..fc0d2d4 100644 --- a/test/chained-build.py +++ b/test/chained-build.py @@ -31,7 +31,6 @@ test = TestSCons.TestSCons() test.write('SConstruct1', """ def build(env, target, source): open(str(target[0]), 'wt').write(open(str(source[0]), 'rt').read()) - print "built %s"%target[0] env=Environment(BUILDERS={'B' : Builder(action=build)}) env.B('foo.mid', 'foo.in') @@ -40,7 +39,6 @@ env.B('foo.mid', 'foo.in') test.write('SConstruct2', """ def build(env, target, source): open(str(target[0]), 'wt').write(open(str(source[0]), 'rt').read()) - print "built %s"%target[0] env=Environment(BUILDERS={'B' : Builder(action=build)}) env.B('foo.out', 'foo.mid') @@ -49,9 +47,9 @@ env.B('foo.out', 'foo.mid') test.write('foo.in', "foo.in") test.run(arguments="--max-drift=0 -f SConstruct1 foo.mid", - stdout = test.wrap_stdout('built foo.mid\n')) + stdout = test.wrap_stdout('build("foo.mid", "foo.in")\n')) test.run(arguments="--max-drift=0 -f SConstruct2 foo.out", - stdout = test.wrap_stdout('built foo.out\n')) + stdout = test.wrap_stdout('build("foo.out", "foo.mid")\n')) test.run(arguments="--max-drift=0 -f SConstruct1 foo.mid", stdout = test.wrap_stdout('scons: "foo.mid" is up to date.\n')) @@ -61,9 +59,9 @@ test.run(arguments="--max-drift=0 -f SConstruct2 foo.out", test.write('foo.in', "foo.in 2") test.run(arguments="--max-drift=0 -f SConstruct1 foo.mid", - stdout = test.wrap_stdout('built foo.mid\n')) + stdout = test.wrap_stdout('build("foo.mid", "foo.in")\n')) test.run(arguments="--max-drift=0 -f SConstruct2 foo.out", - stdout = test.wrap_stdout('built foo.out\n')) + stdout = test.wrap_stdout('build("foo.out", "foo.mid")\n')) test.run(arguments="--max-drift=0 -f SConstruct1 foo.mid", stdout = test.wrap_stdout('scons: "foo.mid" is up to date.\n')) |