summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-10-06 21:41:15 (GMT)
committerSteven Knight <knight@baldmt.com>2003-10-06 21:41:15 (GMT)
commitb462ddcce80024755db7fbd667c9fb122dad98c9 (patch)
treec056f407f3f50a2e8e851ea8232921ff3aea1124 /test
parent9afb4a60206be177cb061406f8c427c094027f11 (diff)
downloadSCons-b462ddcce80024755db7fbd667c9fb122dad98c9.zip
SCons-b462ddcce80024755db7fbd667c9fb122dad98c9.tar.gz
SCons-b462ddcce80024755db7fbd667c9fb122dad98c9.tar.bz2
New parallel job execution. (J.T. Conklin)
Diffstat (limited to 'test')
-rw-r--r--test/SideEffect.py24
1 files changed, 14 insertions, 10 deletions
diff --git a/test/SideEffect.py b/test/SideEffect.py
index 33a553a..a480326 100644
--- a/test/SideEffect.py
+++ b/test/SideEffect.py
@@ -25,6 +25,7 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os.path
+import string
import TestSCons
@@ -111,16 +112,19 @@ test.fail_test(os.path.exists(test.workpath('bar.out')))
test.fail_test(os.path.exists(test.workpath('blat.out')))
test.fail_test(os.path.exists(test.workpath('log.txt')))
-test.run(arguments = "-j 4 .", stdout=test.wrap_stdout("""\
-build("bar.out", "bar.in")
-build("blat.out", "blat.in")
-build("foo.out", "foo.in")
-build("log.out", "log.txt")
-build("%s", "baz.in")
-build("%s", "%s")
-""" % (os.path.join('subdir', 'baz.out'),
- os.path.join('subdir', 'out.out'),
- os.path.join('subdir', 'out.txt'))))
+build_lines = [
+ 'build("bar.out", "bar.in")',
+ 'build("blat.out", "blat.in")',
+ 'build("foo.out", "foo.in")',
+ 'build("log.out", "log.txt")',
+ 'build("%s", "baz.in")' % os.path.join('subdir', 'baz.out'),
+ 'build("%s", "%s")' % (os.path.join('subdir', 'out.out'),
+ os.path.join('subdir', 'out.txt')),
+]
+test.run(arguments = "-j 4 .")
+output = test.stdout()
+for line in build_lines:
+ test.fail_test(string.find(output, line) == -1)
expect = """\
bar.in -> bar.out