summaryrefslogtreecommitdiffstats
path: root/test/option--implicit-cache.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-07-12 06:17:59 (GMT)
committerSteven Knight <knight@baldmt.com>2002-07-12 06:17:59 (GMT)
commit721c0b5439329cce1a68d44c0e58204a83d9d354 (patch)
tree640ad8f81638eaf79461675d47418643fbb2e6b1 /test/option--implicit-cache.py
parent25846c09acbebca4f41664a76dfc6175b3617e90 (diff)
downloadSCons-721c0b5439329cce1a68d44c0e58204a83d9d354.zip
SCons-721c0b5439329cce1a68d44c0e58204a83d9d354.tar.gz
SCons-721c0b5439329cce1a68d44c0e58204a83d9d354.tar.bz2
Added --implicit-deps-unchanged option. Added GetLaunchDir() function. Added SetBuildSignatureType() function. (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 3460b2f..d6ca15c 100644
--- a/test/option--implicit-cache.py
+++ b/test/option--implicit-cache.py
@@ -27,6 +27,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
import sys
import TestSCons
+import string
if sys.platform == 'win32':
_exe = '.exe'
@@ -266,4 +267,34 @@ main(int argc, char *argv[])
test.run(arguments = "--implicit-cache one%s"%_obj)
test.run(arguments = "--implicit-cache one%s"%_obj)
+# Test forcing of implicit caching:
+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 = variant_prog)
+assert string.find(test.stdout(), 'is up to date') == -1, test.stdout()
+
test.pass_test()