summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2019-02-08 16:45:15 (GMT)
committerMats Wichmann <mats@linux.com>2019-02-08 16:54:40 (GMT)
commitde01f7ea3cd258c893e1262800b96dd85ae89133 (patch)
tree2fccbc839f100a05c36c8c6660071d733b89c8cf /test
parent9f090132091e56c123262106f3563142787c2fcf (diff)
downloadSCons-de01f7ea3cd258c893e1262800b96dd85ae89133.zip
SCons-de01f7ea3cd258c893e1262800b96dd85ae89133.tar.gz
SCons-de01f7ea3cd258c893e1262800b96dd85ae89133.tar.bz2
Add textfile tool to defaults
PR #3242 added the Textfile and Substfile builders to the default builder list (for issue #3147), but didn't finish the job: the textfile tool needs to be added to the default list of tools as well. This time with a testcase that fails if the tool is not added. Minor doc tweak. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test')
-rw-r--r--test/textfile.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/textfile.py b/test/textfile.py
index 46eee34..1d5b3c7 100644
--- a/test/textfile.py
+++ b/test/textfile.py
@@ -115,6 +115,8 @@ test.write('foo2a.txt', foo2aText)
test.write('bar2a.txt', foo2aText)
check_times()
+# now that textfile is part of default tool list, run one testcase
+# without adding it explicitly as a tool to make sure.
test.write('SConstruct', """
textlist = ['This line has no substitutions',
'This line has @subst@ substitutions',
@@ -125,7 +127,7 @@ sub1 = { '@subst@' : 'most' }
sub2 = { '%subst%' : 'many' }
sub3 = { '@subst@' : 'most' , '%subst%' : 'many' }
-env = Environment(tools = ['textfile'])
+env = Environment()
t = env.Textfile('text', textlist)
# no substitutions