summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-12-17 02:15:25 (GMT)
committerSteven Knight <knight@baldmt.com>2004-12-17 02:15:25 (GMT)
commit5a53a86e487de2c6d93bf5f8a1df1ae61f983a67 (patch)
tree17355dfd6143b1d5cec76e519f51ca5bdff0ddeb /test
parentac942908a6f1ee9291ff4a8a21e6d4d4fbc41f64 (diff)
downloadSCons-5a53a86e487de2c6d93bf5f8a1df1ae61f983a67.zip
SCons-5a53a86e487de2c6d93bf5f8a1df1ae61f983a67.tar.gz
SCons-5a53a86e487de2c6d93bf5f8a1df1ae61f983a67.tar.bz2
Make AlwaysBuild() work with Aliases.
Diffstat (limited to 'test')
-rw-r--r--test/AlwaysBuild.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/AlwaysBuild.py b/test/AlwaysBuild.py
index 2c50841..a107302 100644
--- a/test/AlwaysBuild.py
+++ b/test/AlwaysBuild.py
@@ -45,6 +45,11 @@ AlwaysBuild('f1.out')
env.B(r'%s', source='f3.in')
env.AlwaysBuild(r'%s')
+
+env.Alias('clean1', [], Delete('clean1-target'))
+env.AlwaysBuild('clean1')
+c2 = env.Alias('clean2', [], [Delete('clean2-t1'), Delete('clean2-t2')])
+env.AlwaysBuild(c2)
""" % (os.path.join('sub', 'f3.out'),
os.path.join('$SUBDIR', 'f3.out')
))
@@ -63,4 +68,13 @@ test.run(arguments = ".")
test.fail_test(test.read('f1.out') != '2')
test.fail_test(test.read(['sub', 'f3.out']) != '2')
+test.run(arguments = 'clean1', stdout=test.wrap_stdout("""\
+Delete("clean1-target")
+"""))
+
+test.run(arguments = 'clean2', stdout=test.wrap_stdout("""\
+Delete("clean2-t1")
+Delete("clean2-t2")
+"""))
+
test.pass_test()