summaryrefslogtreecommitdiff
path: root/test/Value.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-05-14 03:08:46 +0000
committerSteven Knight <knight@baldmt.com>2004-05-14 03:08:46 +0000
commit86c11822b8f41dff8ec28e4ee8a8afeec9bfaa5f (patch)
treef4e261a94be38bdc1beff13b857c54b169113baf /test/Value.py
parente2ed7aef1547812fa9ce49ae726ae1815158936d (diff)
downloadscons-86c11822b8f41dff8ec28e4ee8a8afeec9bfaa5f.tar.gz
Make the saved info opaque to the .sconsign subsystem. Lots of other cleanup.
Diffstat (limited to 'test/Value.py')
-rw-r--r--test/Value.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/test/Value.py b/test/Value.py
index 5f723bf4..ee92d430 100644
--- a/test/Value.py
+++ b/test/Value.py
@@ -33,6 +33,8 @@ import TestCmd
test = TestSCons.TestSCons(match=TestCmd.match_re)
+# Run all of the tests with both types of source signature
+# to make sure there's no difference in behavior.
for source_signature in ['MD5', 'timestamp']:
print "Testing Value node with source signatures:", source_signature
@@ -76,8 +78,7 @@ env.B('f3.out', Value(C))
test.fail_test(not os.path.exists(test.workpath('f3.out')))
test.fail_test(open(test.workpath('f3.out'), 'rb').read() != 'C=/usr/local')
- if source_signature == 'MD5':
- test.up_to_date(arguments='.')
+ test.up_to_date(arguments='.')
test.run(arguments='prefix=/usr')
out4 = """create("f1.out", "'/usr'")"""
@@ -95,8 +96,7 @@ env.B('f3.out', Value(C))
test.fail_test(not os.path.exists(test.workpath('f3.out')))
test.fail_test(open(test.workpath('f3.out'), 'rb').read() != 'C=/usr')
- if source_signature == 'MD5':
- test.up_to_date('prefix=/usr', '.')
+ test.up_to_date('prefix=/usr', '.')
test.unlink('f3.out')
@@ -104,14 +104,10 @@ env.B('f3.out', Value(C))
out4 = """create("f1.out", "'/var'")"""
test.fail_test(string.find(test.stdout(), out4) == -1)
- if source_signature == 'MD5':
- test.fail_test(string.find(test.stdout(), out5) != -1)
- else:
- test.fail_test(string.find(test.stdout(), out5) == -1)
+ test.fail_test(string.find(test.stdout(), out5) != -1)
test.fail_test(re.search(out6, test.stdout()) == None)
- if source_signature == 'MD5':
- test.up_to_date('prefix=/var', '.')
+ test.up_to_date('prefix=/var', '.')
test.fail_test(not os.path.exists(test.workpath('f1.out')))
test.fail_test(open(test.workpath('f1.out'), 'rb').read() != '/var')