summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2015-02-22 22:45:20 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2015-02-22 22:45:20 (GMT)
commit003ac6d619b34617ff7e4cda50fa7defcc3d95b4 (patch)
tree2ab04ddf0795a374a7ac002db71dc94237996a63
parent26146b842f0ab9543142cfd5dbb21cb609030fad (diff)
downloadSCons-003ac6d619b34617ff7e4cda50fa7defcc3d95b4.zip
SCons-003ac6d619b34617ff7e4cda50fa7defcc3d95b4.tar.gz
SCons-003ac6d619b34617ff7e4cda50fa7defcc3d95b4.tar.bz2
Test for tigris bug 2944. DFLAGS changes not causing rebuild
-rw-r--r--test/D/Issues/2944/D_changed_DFLAGS_not_rebuilding.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/D/Issues/2944/D_changed_DFLAGS_not_rebuilding.py b/test/D/Issues/2944/D_changed_DFLAGS_not_rebuilding.py
new file mode 100644
index 0000000..1d9854f
--- /dev/null
+++ b/test/D/Issues/2944/D_changed_DFLAGS_not_rebuilding.py
@@ -0,0 +1,23 @@
+# Test to check for issue reported in tigris bug 2994
+# http://scons.tigris.org/issues/show_bug.cgi?id=2994
+#
+
+import TestSCons
+
+test = TestSCons.TestSCons()
+
+dmd_present = test.detect_tool('dmd', prog='dmd')
+ldc_present = test.detect_tool('ldc',prog='ldc2')
+gdc_present = test.detect_tool('gdc',prog='gdc')
+
+if not (dmd_present or ldc_present or gdc_present):
+ test.skip_test("Could not load dmd ldc or gdc Tool; skipping test(s).\n")
+
+
+test.dir_fixture('image')
+test.run()
+test.fail_test('main.o' not in test.stdout())
+test.run(arguments='change=1')
+test.fail_test('is up to date' in test.stdout())
+
+test.pass_test()