diff options
author | Steven Knight <knight@baldmt.com> | 2002-04-24 16:11:40 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-04-24 16:11:40 (GMT) |
commit | 755fe44095622d2ed2ac7a469686286212ea6f3c (patch) | |
tree | 33bd1ba591a86b54fdee7477d0e941a9a9c3727b /test/option-u.py | |
parent | 7eddfeb87f28c4cf8ba6839efdad8b366214ec01 (diff) | |
download | SCons-755fe44095622d2ed2ac7a469686286212ea6f3c.zip SCons-755fe44095622d2ed2ac7a469686286212ea6f3c.tar.gz SCons-755fe44095622d2ed2ac7a469686286212ea6f3c.tar.bz2 |
Make Alias work with -U, -u, and -D (Anthony Roach)
Diffstat (limited to 'test/option-u.py')
-rw-r--r-- | test/option-u.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/option-u.py b/test/option-u.py index dbeec6a..8f23746 100644 --- a/test/option-u.py +++ b/test/option-u.py @@ -44,13 +44,14 @@ file.close() """) test.write('SConstruct', """ +import SCons.Defaults B = Builder(name='B', action='%s build.py $TARGET $SOURCES') -env = Environment(BUILDERS = [B]) +env = Environment(BUILDERS = [B, SCons.Defaults.Alias]) env.B(target = 'sub1/foo.out', source = 'sub1/foo.in') Default('.') Export('env') SConscript('sub2/SConscript') -env.B(target = 'sub3/baz.out', source = 'sub3/baz.in') +env.Alias('baz', env.B(target = 'sub3/baz.out', source = 'sub3/baz.in')) """ % python) test.write(['sub2', 'SConscript'], """ @@ -73,5 +74,8 @@ test.run(chdir = 'sub2', arguments = '-u') test.fail_test(test.read(['sub2', 'bar.out']) != "sub2/bar.in") test.fail_test(os.path.exists(test.workpath('sub3', 'baz.out'))) +test.run(chdir = 'sub2', arguments = '-u baz') +test.fail_test(test.read(['sub3', 'baz.out']) != "sub3/baz.in") + test.pass_test() |