summaryrefslogtreecommitdiff
path: root/test/chained-build.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-08-17 22:59:44 +0000
committerSteven Knight <knight@baldmt.com>2004-08-17 22:59:44 +0000
commit401c24879c1dcd9e28df19b3ee2384b26df583ee (patch)
tree6020672dd780529908f2e7fdb10530400b1e0cfc /test/chained-build.py
parentf7f7241f5bb9a93bf0aa9cf583b9ca19fc4f7e53 (diff)
downloadscons-401c24879c1dcd9e28df19b3ee2384b26df583ee.tar.gz
Remove the misbegotten --save-explain-info feature.
Diffstat (limited to 'test/chained-build.py')
-rw-r--r--test/chained-build.py46
1 files changed, 7 insertions, 39 deletions
diff --git a/test/chained-build.py b/test/chained-build.py
index 23187bc8..d2772e27 100644
--- a/test/chained-build.py
+++ b/test/chained-build.py
@@ -28,7 +28,13 @@ import TestSCons
test = TestSCons.TestSCons()
-test.subdir('w1', 'w2')
+# During the development of 0.96, there was a --save-explain-info
+# option for a brief moment that would surpress storing extra
+# info in the .sconsign file(s). At that time, this test used two
+# working subdirectories to test both with and without the saved info.
+# We eliminated the --save-explain-info option and the second working
+# subdirectory here, but didn't go back and change all the filenames.
+test.subdir('w1')
SConstruct1_contents = """\
def build(env, target, source):
@@ -46,7 +52,6 @@ env=Environment(BUILDERS={'B' : Builder(action=build)})
env.B('foo.out', 'foo.mid')
"""
-# Test with the default of saving explanation info.
test.write(['w1', 'SConstruct1'], SConstruct1_contents)
test.write(['w1', 'SConstruct2'], SConstruct2_contents)
test.write(['w1', 'foo.in'], "foo.in 1")
@@ -82,41 +87,4 @@ test.up_to_date(chdir='w1',
options="--max-drift=0 -f SConstruct2",
arguments="foo.out")
-# Now test when we're not saving explanation info.
-preamble = "SetOption('save_explain_info', 0)\n"
-test.write(['w2', 'SConstruct1'], preamble + SConstruct1_contents)
-test.write(['w2', 'SConstruct2'], preamble + SConstruct2_contents)
-test.write(['w2', 'foo.in'], "foo.in 1")
-
-test.run(chdir='w2',
- arguments="--max-drift=0 -f SConstruct1 foo.mid",
- stdout = test.wrap_stdout('build(["foo.mid"], ["foo.in"])\n'))
-test.run(chdir='w2',
- arguments="--max-drift=0 -f SConstruct2 foo.out",
- stdout = test.wrap_stdout('build(["foo.out"], ["foo.mid"])\n'))
-
-test.up_to_date(chdir='w2',
- options="--max-drift=0 -f SConstruct1",
- arguments="foo.mid")
-test.up_to_date(chdir='w2',
- options="--max-drift=0 -f SConstruct2",
- arguments="foo.out")
-
-test.sleep() # make sure foo.in rewrite has new mod-time
-test.write(['w2', 'foo.in'], "foo.in 2")
-
-test.run(chdir='w2',
- arguments="--max-drift=0 -f SConstruct1 foo.mid",
- stdout = test.wrap_stdout('build(["foo.mid"], ["foo.in"])\n'))
-test.run(chdir='w2',
- arguments="--max-drift=0 -f SConstruct2 foo.out",
- stdout = test.wrap_stdout('build(["foo.out"], ["foo.mid"])\n'))
-
-test.up_to_date(chdir='w2',
- options="--max-drift=0 -f SConstruct1",
- arguments="foo.mid")
-test.up_to_date(chdir='w2',
- options="--max-drift=0 -f SConstruct2",
- arguments="foo.out")
-
test.pass_test()