summaryrefslogtreecommitdiffstats
path: root/test/option--implicit-cache.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-07-14 18:48:56 (GMT)
committerSteven Knight <knight@baldmt.com>2002-07-14 18:48:56 (GMT)
commit64abe288f007db6a36ed2bb5d018fde707a243de (patch)
treeb45029d74b471fafd7757bceeb29a8c6ae5f73c3 /test/option--implicit-cache.py
parent4a6f158a8f3589b43fcda1c5ca50b743661a87f2 (diff)
downloadSCons-64abe288f007db6a36ed2bb5d018fde707a243de.zip
SCons-64abe288f007db6a36ed2bb5d018fde707a243de.tar.gz
SCons-64abe288f007db6a36ed2bb5d018fde707a243de.tar.bz2
Add --implicit-deps-changed. (Anthony Roach)
Diffstat (limited to 'test/option--implicit-cache.py')
-rw-r--r--test/option--implicit-cache.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/option--implicit-cache.py b/test/option--implicit-cache.py
index d6ca15c..4e5cf1e 100644
--- a/test/option--implicit-cache.py
+++ b/test/option--implicit-cache.py
@@ -297,4 +297,35 @@ assert string.find(test.stdout(), 'is up to date') != -1, test.stdout()
test.run(arguments = variant_prog)
assert string.find(test.stdout(), 'is up to date') == -1, test.stdout()
+# Test forcing rescanning:
+test.write(['include', 'foo.h'],
+r"""
+#define FOO_STRING "include/foo.h 3\n"
+#include "bar.h"
+""")
+
+test.run(arguments = "--implicit-cache " + args)
+
+test.write(['include', 'foo.h'],
+r"""
+#define FOO_STRING "include/foo.h 3\n"
+#include "baz.h"
+#include "bar.h"
+""")
+
+test.run(arguments = "--implicit-deps-unchanged " + variant_prog)
+assert string.find(test.stdout(), 'is up to date') == -1, test.stdout()
+
+test.write(['include', 'baz.h'],
+r"""
+#define BAZ_STRING "include/baz.h 2\n"
+""")
+
+test.run(arguments = "--implicit-deps-unchanged " + variant_prog)
+assert string.find(test.stdout(), 'is up to date') != -1, test.stdout()
+
+test.run(arguments = "--implicit-deps-changed " + variant_prog)
+assert string.find(test.stdout(), 'is up to date') == -1, test.stdout()
+
+
test.pass_test()