Merge pull request #4655 from bdbaddog/fix_new_ninja_package
[scons.git] / test / textfile / fixture / SConstruct.issue-3540
blob04ccccaef636d3daa8b3e54e08a8881253d7c384
1 # SPDX-License-Identifier: MIT
3 # Copyright The SCons Foundation
5 """
6 Test for GH Issue 3540
8 textfile()'s action is not sensitive to changes in TEXTFILESUFFIX (rather was sensitive to SUBSTFILESUFFIX)
9 """
11 text_file_suffix = ARGUMENTS.get('text_file_suffix', 'DEFAULTSUFFIX')
12 DefaultEnvironment(tools=[])
13 env = Environment(tools=['textfile'], TEXTFILESUFFIX=text_file_suffix)
14 env['FOO_PATH'] = "test-value-1"
16 foo = env.Substfile(
17     target="substfile",
18     source="substfile.in",
19     SUBST_DICT={
20         "@foo_path@": "$FOO_PATH",
21     },