summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-09-07 12:34:45 (GMT)
committerSteven Knight <knight@baldmt.com>2002-09-07 12:34:45 (GMT)
commitd2c0e3aa84d0355f592799ce260159e8c8679f88 (patch)
tree53eddd5f8a30af3956a51b4928407356bfabf342 /test
parent3cc2054726843bc99b8efe37964db7d94aeec1e7 (diff)
downloadSCons-d2c0e3aa84d0355f592799ce260159e8c8679f88.zip
SCons-d2c0e3aa84d0355f592799ce260159e8c8679f88.tar.gz
SCons-d2c0e3aa84d0355f592799ce260159e8c8679f88.tar.bz2
Fix -j with multiple targets. (Anthony Roach)
Diffstat (limited to 'test')
-rw-r--r--test/option-j.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/option-j.py b/test/option-j.py
index e67d3b4..b886afb 100644
--- a/test/option-j.py
+++ b/test/option-j.py
@@ -51,11 +51,27 @@ file.write(str(time.time()))
file.close()
""")
+test.subdir('foo')
+
+test.write(['foo','foo.in'], r"""
+foo you
+""")
+
test.write('SConstruct', """
MyBuild = Builder(action = r'%s build.py $TARGETS')
env = Environment(BUILDERS = { 'MyBuild' : MyBuild })
env.MyBuild(target = 'f1', source = 'f1.in')
env.MyBuild(target = 'f2', source = 'f2.in')
+
+def copyn(env, target, source):
+ import shutil
+ import time
+ time.sleep(1)
+ for t in target:
+ shutil.copy(str(source[0]), str(t))
+
+t = env.Command(target=['foo/foo1.out', 'foo/foo2.out'], source='foo/foo.in', action=copyn)
+env.Install('out', t)
""" % python)
def RunTest(args, extra):
@@ -93,5 +109,7 @@ start2, finish1 = RunTest('f1 f2', "second")
# before the first one was finished
test.fail_test(start2 < finish1)
+test.run(arguments='-j 2 out')
+
test.pass_test()