diff options
author | Steven Knight <knight@baldmt.com> | 2001-11-02 03:12:07 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-11-02 03:12:07 (GMT) |
commit | 2f51f69cf055ec44e37eaac22b1992bd5218278f (patch) | |
tree | 60165bd248d020974a0be3f5477825876a682445 /test/CCFLAGS.py | |
parent | 00c3ada748b164ecf909727fa81f521dde72fda9 (diff) | |
download | SCons-2f51f69cf055ec44e37eaac22b1992bd5218278f.zip SCons-2f51f69cf055ec44e37eaac22b1992bd5218278f.tar.gz SCons-2f51f69cf055ec44e37eaac22b1992bd5218278f.tar.bz2 |
Rebuild in response to a changed build command.
Diffstat (limited to 'test/CCFLAGS.py')
-rw-r--r-- | test/CCFLAGS.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/test/CCFLAGS.py b/test/CCFLAGS.py index cc6ad73..8b0e5a8 100644 --- a/test/CCFLAGS.py +++ b/test/CCFLAGS.py @@ -53,9 +53,22 @@ main(int argc, char *argv[]) """) -test.run(arguments = 'foo bar') +test.run(arguments = '.') test.run(program = test.workpath('foo'), stdout = "prog.c: FOO\n") test.run(program = test.workpath('bar'), stdout = "prog.c: BAR\n") +test.write('SConstruct', """ +bar = Environment(CCFLAGS = '-DBAR') +bar.Object(target = 'foo.o', source = 'prog.c') +bar.Object(target = 'bar.o', source = 'prog.c') +bar.Program(target = 'foo', source = 'foo.o') +bar.Program(target = 'bar', source = 'bar.o') +""") + +test.run(arguments = '.') + +test.run(program = test.workpath('foo'), stdout = "prog.c: BAR\n") +test.run(program = test.workpath('bar'), stdout = "prog.c: BAR\n") + test.pass_test() |