summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2018-09-26 17:01:47 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2018-09-26 17:01:47 (GMT)
commita5a1c40c8aaa71574cf4a439e1f5d742aef9103a (patch)
tree1a45358733f70b7c27fa04507560d27eb8db84ab /test
parentc9a9dd8ad57e6257728630866a6d42b67e3a3bb8 (diff)
downloadSCons-a5a1c40c8aaa71574cf4a439e1f5d742aef9103a.zip
SCons-a5a1c40c8aaa71574cf4a439e1f5d742aef9103a.tar.gz
SCons-a5a1c40c8aaa71574cf4a439e1f5d742aef9103a.tar.bz2
Speed up implicit-cache tests for windows
Diffstat (limited to 'test')
-rw-r--r--test/implicit-cache/DualTargets.py3
-rw-r--r--test/implicit-cache/GetOption.py2
-rw-r--r--test/implicit-cache/RemoveImplicitDep.py3
-rw-r--r--test/implicit-cache/SetOption.py1
-rw-r--r--test/implicit-cache/basic.py1
5 files changed, 8 insertions, 2 deletions
diff --git a/test/implicit-cache/DualTargets.py b/test/implicit-cache/DualTargets.py
index 45174ea..8612d1a 100644
--- a/test/implicit-cache/DualTargets.py
+++ b/test/implicit-cache/DualTargets.py
@@ -34,6 +34,7 @@ import TestSCons
test = TestSCons.TestSCons()
test.write('SConstruct', """\
+DefaultEnvironment(tools=[])
import os.path
def emitter(target, source, env):
@@ -49,7 +50,7 @@ def source_scan(node, env, path):
return [base + '.lib']
-env = Environment()
+env = Environment(tools=[])
env['BUILDERS']['DualTarget'] = Builder(
action = Action(
[
diff --git a/test/implicit-cache/GetOption.py b/test/implicit-cache/GetOption.py
index 818784a..561c21b 100644
--- a/test/implicit-cache/GetOption.py
+++ b/test/implicit-cache/GetOption.py
@@ -34,6 +34,7 @@ import TestSCons
test = TestSCons.TestSCons()
test.write('SConstruct', """
+DefaultEnvironment(tools=[])
assert not GetOption('implicit_cache')
SetOption('implicit_cache', 1)
assert GetOption('implicit_cache')
@@ -42,6 +43,7 @@ assert GetOption('implicit_cache')
test.run()
test.write('SConstruct', """
+DefaultEnvironment(tools=[])
assert GetOption('implicit_cache')
SetOption('implicit_cache', 0)
assert GetOption('implicit_cache')
diff --git a/test/implicit-cache/RemoveImplicitDep.py b/test/implicit-cache/RemoveImplicitDep.py
index 6a9b873..c65dfec 100644
--- a/test/implicit-cache/RemoveImplicitDep.py
+++ b/test/implicit-cache/RemoveImplicitDep.py
@@ -37,11 +37,12 @@ test = TestSCons.TestSCons()
test.subdir(['src'])
SConstruct_contents = """\
+DefaultEnvironment(tools=[])
import SCons.Script
SetOption( 'implicit_cache', 1 )
-env = Environment()
+env = Environment(tools=[])
act = Action([Touch('${TARGETS[0]}'),Touch('${TARGETS[1]}')])
env.Append(BUILDERS = {'BuildMe':Builder(action=act,source_scanner=SCons.Script.SourceFileScanner)} )
diff --git a/test/implicit-cache/SetOption.py b/test/implicit-cache/SetOption.py
index 41a7fb6..f86ad47 100644
--- a/test/implicit-cache/SetOption.py
+++ b/test/implicit-cache/SetOption.py
@@ -36,6 +36,7 @@ import TestSCons
test = TestSCons.TestSCons()
test.write('SConstruct', """
+DefaultEnvironment(tools=[])
SetOption('implicit_cache', 1)
env=Environment(CPPPATH=['i1', 'i2'])
env.Object('foo.c')
diff --git a/test/implicit-cache/basic.py b/test/implicit-cache/basic.py
index a3a6546..b7cd984 100644
--- a/test/implicit-cache/basic.py
+++ b/test/implicit-cache/basic.py
@@ -53,6 +53,7 @@ test = TestSCons.TestSCons()
test.subdir('include', 'subdir', ['subdir', 'include'], 'inc2')
test.write('SConstruct', """
+DefaultEnvironment(tools=[])
env = Environment(CPPPATH = Split('inc2 include'))
obj = env.Object(target='prog', source='subdir/prog.c')
env.Program(target='prog', source=obj)