summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-04-18 03:39:08 (GMT)
committerSteven Knight <knight@baldmt.com>2003-04-18 03:39:08 (GMT)
commite6b7921406394594c23f907469e923ccf028adcc (patch)
treeba5443defdb983af0347909b063e31a3670ee439 /test
parent61441924d40157f2744aa74049db3b1c1f73e6c9 (diff)
downloadSCons-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.py11
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'], """