summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2015-02-22 14:45:20 -0800
committerWilliam Deegan <bill@baddogconsulting.com>2015-02-22 14:45:20 -0800
commit6650a8f398255fe88552dad10543158677b3e1f3 (patch)
tree2ab04ddf0795a374a7ac002db71dc94237996a63
parentfe6d3a510f49a4db42b45b411297723eaafd3a10 (diff)
downloadscons-6650a8f398255fe88552dad10543158677b3e1f3.tar.gz
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 00000000..1d9854fa
--- /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()