summaryrefslogtreecommitdiffstats
path: root/test/textfile/issue-3540.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2020-02-16 00:50:34 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2020-02-16 00:50:34 (GMT)
commit1a7f7caa2ecc2fdeaeb69c27a41d9986718de7ae (patch)
tree93c0b03c08662232acd9512e8aa089d367e85a13 /test/textfile/issue-3540.py
parent83304e49c44ec770bb5770d6ef6a6ece4dec92f8 (diff)
downloadSCons-1a7f7caa2ecc2fdeaeb69c27a41d9986718de7ae.zip
SCons-1a7f7caa2ecc2fdeaeb69c27a41d9986718de7ae.tar.gz
SCons-1a7f7caa2ecc2fdeaeb69c27a41d9986718de7ae.tar.bz2
Add testcase for GitHub Issue #3540. Update tests for 3550 to allow 3540 to use some of it's test files
Diffstat (limited to 'test/textfile/issue-3540.py')
-rw-r--r--test/textfile/issue-3540.py48
1 files changed, 48 insertions, 0 deletions
diff --git a/test/textfile/issue-3540.py b/test/textfile/issue-3540.py
new file mode 100644
index 0000000..b53f06a
--- /dev/null
+++ b/test/textfile/issue-3540.py
@@ -0,0 +1,48 @@
+#!/usr/bin/env python
+#
+# __COPYRIGHT__
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
+# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+"""
+Test for GH Issue 3540
+
+textfile()'s action is not sensitive to changes in TEXTFILEPREFIX (rather was sensitive to SUBSTFILEPREFIX)
+
+"""
+
+import TestSCons
+
+test = TestSCons.TestSCons()
+
+# test.verbose_set(1)
+
+test.file_fixture('fixture/substfile.in', 'substfile.in')
+test.file_fixture('fixture/SConstruct.issue-3540', 'SConstruct')
+
+test.run()
+test.must_exist('substfile')
+
+test.up_to_date(options='text_file_suffix=BLAH')
+
+
+test.pass_test()