summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2018-09-26 17:42:18 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2018-09-26 17:42:18 (GMT)
commit8fca42cbacd48d6f832721363813d9b3d1e3163d (patch)
treea49198f8300747de5b02971538ffc1465bc51667 /test
parent981388a605495675d79b18c1eb63d885fae2470d (diff)
downloadSCons-8fca42cbacd48d6f832721363813d9b3d1e3163d.zip
SCons-8fca42cbacd48d6f832721363813d9b3d1e3163d.tar.gz
SCons-8fca42cbacd48d6f832721363813d9b3d1e3163d.tar.bz2
Speed up M4 tests for windows
Diffstat (limited to 'test')
-rw-r--r--test/M4/M4.py8
-rw-r--r--test/M4/M4COM.py3
-rw-r--r--test/M4/M4COMSTR.py3
3 files changed, 9 insertions, 5 deletions
diff --git a/test/M4/M4.py b/test/M4/M4.py
index 76010e6..82c084c 100644
--- a/test/M4/M4.py
+++ b/test/M4/M4.py
@@ -46,7 +46,8 @@ sys.exit(0)
""")
test.write('SConstruct', """
-env = Environment(tools=['default', 'm4'],
+DefaultEnvironment(tools=[])
+env = Environment(tools=['m4'],
M4 = r'%(_python_)s mym4.py')
env.M4(target = 'aaa.x', source = 'aaa.x.m4')
""" % locals())
@@ -76,10 +77,11 @@ if m4:
test.file_fixture('wrapper.py')
test.write('SConstruct', """
-foo = Environment(tools=['default', 'm4'],
+DefaultEnvironment(tools=[])
+foo = Environment(tools=['m4'],
M4=r'%(m4)s', M4FLAGS='-DFFF=fff')
m4 = foo.Dictionary('M4')
-bar = Environment(tools=['default', 'm4'],
+bar = Environment(tools=['m4'],
M4 = r'%(_python_)s wrapper.py ' + m4, M4FLAGS='-DBBB=bbb')
foo.M4(target = 'foo.x', source = 'foo.x.m4')
bar.M4(target = 'bar', source = 'bar.m4')
diff --git a/test/M4/M4COM.py b/test/M4/M4COM.py
index 5a2f076..4e95419 100644
--- a/test/M4/M4COM.py
+++ b/test/M4/M4COM.py
@@ -47,7 +47,8 @@ sys.exit(0)
""")
test.write('SConstruct', """
-env = Environment(tools=['default', 'm4'],
+DefaultEnvironment(tools=[])
+env = Environment(tools=['m4'],
M4COM = r'%(_python_)s mym4.py $TARGET $SOURCES')
env.M4(target = 'aaa.out', source = 'aaa.in')
""" % locals())
diff --git a/test/M4/M4COMSTR.py b/test/M4/M4COMSTR.py
index da01e6c..0e6725b 100644
--- a/test/M4/M4COMSTR.py
+++ b/test/M4/M4COMSTR.py
@@ -48,7 +48,8 @@ sys.exit(0)
""")
test.write('SConstruct', """
-env = Environment(tools=['default', 'm4'],
+DefaultEnvironment(tools=[])
+env = Environment(tools=['m4'],
M4COM = r'%(_python_)s mym4.py $TARGET $SOURCES',
M4COMSTR = 'M4ing $TARGET from $SOURCE')
env.M4(target = 'aaa.out', source = 'aaa.in')