summaryrefslogtreecommitdiffstats
path: root/test/chained-build.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-06-07 11:32:40 (GMT)
committerSteven Knight <knight@baldmt.com>2005-06-07 11:32:40 (GMT)
commit086a115a4add32f83be62140e9c0677cfdb90d73 (patch)
treed6cd2aac66041c1064740f28d018220815d9a210 /test/chained-build.py
parent7a75ef62e1067b6c8af61f1656c54f5d6853432c (diff)
downloadSCons-086a115a4add32f83be62140e9c0677cfdb90d73.zip
SCons-086a115a4add32f83be62140e9c0677cfdb90d73.tar.gz
SCons-086a115a4add32f83be62140e9c0677cfdb90d73.tar.bz2
Split Node-specific stuff from BuildInfo into a separate NodeInfo class. Add size info to the File information we collect.
Diffstat (limited to 'test/chained-build.py')
-rw-r--r--test/chained-build.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/test/chained-build.py b/test/chained-build.py
index d2772e2..9d87347 100644
--- a/test/chained-build.py
+++ b/test/chained-build.py
@@ -76,9 +76,11 @@ test.write(['w1', 'foo.in'], "foo.in 2")
test.run(chdir='w1',
arguments="--max-drift=0 -f SConstruct1 foo.mid",
stdout = test.wrap_stdout('build(["foo.mid"], ["foo.in"])\n'))
-test.run(chdir='w1',
- arguments="--max-drift=0 -f SConstruct2 foo.out",
- stdout = test.wrap_stdout('build(["foo.out"], ["foo.mid"])\n'))
+# Because we're using --max-drift=0, we use the cached csig value
+# and think that foo.mid hasn't changed even though it has on disk.
+test.up_to_date(chdir='w1',
+ options="--max-drift=0 -f SConstruct2",
+ arguments="foo.out")
test.up_to_date(chdir='w1',
options="--max-drift=0 -f SConstruct1",
@@ -87,4 +89,14 @@ test.up_to_date(chdir='w1',
options="--max-drift=0 -f SConstruct2",
arguments="foo.out")
+# Now try with --max-drift disabled. The build of foo.mid should still
+# be considered up-to-date, but the build of foo.out now detects the
+# change and rebuilds, too.
+test.up_to_date(chdir='w1',
+ options="--max-drift=-1 -f SConstruct1",
+ arguments="foo.mid")
+test.run(chdir='w1',
+ arguments="--max-drift=-1 -f SConstruct2 foo.out",
+ stdout = test.wrap_stdout('build(["foo.out"], ["foo.mid"])\n'))
+
test.pass_test()