diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-18 03:39:08 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-18 03:39:08 (GMT) |
commit | e6b7921406394594c23f907469e923ccf028adcc (patch) | |
tree | ba5443defdb983af0347909b063e31a3670ee439 /test | |
parent | 61441924d40157f2744aa74049db3b1c1f73e6c9 (diff) | |
download | SCons-e6b7921406394594c23f907469e923ccf028adcc.zip SCons-e6b7921406394594c23f907469e923ccf028adcc.tar.gz SCons-e6b7921406394594c23f907469e923ccf028adcc.tar.bz2 |
Add Alias() global function. (Anthony Roach)
Diffstat (limited to 'test')
-rw-r--r-- | test/Alias.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/Alias.py b/test/Alias.py index 6608d72..ea94652 100644 --- a/test/Alias.py +++ b/test/Alias.py @@ -50,11 +50,18 @@ env.B(target = 'f2.out', source = 'f2.in') env.B(target = 'f3.out', source = 'f3.in') SConscript('sub1/SConscript', "env") SConscript('sub2/SConscript', "env") -env.Alias('foo', ['f2.out', 'sub1']) -env.Alias('bar', ['sub2', 'f3.out']) + +foo = Alias('foo') +foo2 = env.Alias('foo', ['f2.out', 'sub1']) +assert foo == foo2 +bar = env.Alias('bar', ['sub2', 'f3.out']) env.Alias('blat', ['sub2', 'f3.out']) env.Alias('blat', ['f2.out', 'sub1']) env.Depends('f1.out', 'bar') + +assert Alias('foo') == foo +assert Alias('bar') == bar + """ % python) test.write(['sub1', 'SConscript'], """ |