summaryrefslogtreecommitdiffstats
path: root/test/ninja
diff options
context:
space:
mode:
authorDaniel Moody <dmoody256@gmail.com>2022-06-15 04:13:12 (GMT)
committerDaniel Moody <dmoody256@gmail.com>2022-06-15 04:13:12 (GMT)
commitdfc8eacbc4e0157aa235b7f6bacf1d956f8ba673 (patch)
tree6fb18cce4950be7c228eddcf0c93b91eddeaa124 /test/ninja
parent4692902f97761a349fd0ea119d4c1169cf5919e5 (diff)
downloadSCons-dfc8eacbc4e0157aa235b7f6bacf1d956f8ba673.zip
SCons-dfc8eacbc4e0157aa235b7f6bacf1d956f8ba673.tar.gz
SCons-dfc8eacbc4e0157aa235b7f6bacf1d956f8ba673.tar.bz2
update changes/release notes, and add mtime check to determinism test
Diffstat (limited to 'test/ninja')
-rw-r--r--test/ninja/ninja_file_deterministic.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ninja/ninja_file_deterministic.py b/test/ninja/ninja_file_deterministic.py
index 2ac5e1a..ef1abdc 100644
--- a/test/ninja/ninja_file_deterministic.py
+++ b/test/ninja/ninja_file_deterministic.py
@@ -55,6 +55,8 @@ test.must_contain_all(test.stdout(), 'ninja%(_exe)s -f' % locals())
test.must_exist([test.workpath('out1.txt'), test.workpath('out2.txt')])
shutil.copyfile(test.workpath('build.ninja'), test.workpath('build.ninja.orig'))
+ninja_file_mtime = os.path.getmtime(test.workpath('build.ninja'))
+
# generate same build again
test.run(stdout=None)
test.must_contain_all_lines(test.stdout(), ['Generating: build.ninja', 'ninja: no work to do.'])
@@ -62,6 +64,9 @@ test.must_contain_all(test.stdout(), 'Executing:')
test.must_contain_all(test.stdout(), 'ninja%(_exe)s -f' % locals())
test.must_exist([test.workpath('out1.txt'), test.workpath('out2.txt')])
+if os.path.getmtime(test.workpath('build.ninja')) != ninja_file_mtime:
+ test.fail_test()
+
# make sure the ninja file was deterministic
if not filecmp.cmp(test.workpath('build.ninja'), test.workpath('build.ninja.orig')):
test.fail_test()