mirror of
https://github.com/Relintai/scons_gd.git
synced 2025-03-12 18:38:59 +01:00
24 lines
499 B
Plaintext
24 lines
499 B
Plaintext
"""
|
|
Test for GH Issue 3540
|
|
|
|
textfile()'s action is not sensitive to changes in TEXTFILESUFFIX (rather was sensitive to SUBSTFILESUFFIX)
|
|
|
|
"""
|
|
|
|
DefaultEnvironment(tools=[])
|
|
|
|
text_file_suffix = ARGUMENTS.get('text_file_suffix', 'DEFAULTSUFFIX')
|
|
|
|
env = Environment(tools=['textfile'],
|
|
TEXTFILESUFFIX=text_file_suffix)
|
|
|
|
env['FOO_PATH'] = "test-value-1"
|
|
|
|
foo = env.Substfile(
|
|
target="substfile",
|
|
source="substfile.in",
|
|
SUBST_DICT={
|
|
"@foo_path@": "$FOO_PATH",
|
|
}
|
|
)
|