summaryrefslogtreecommitdiffstats
path: root/test/Variables/Variables.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2023-01-29 00:52:07 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2023-01-29 00:52:07 (GMT)
commita220b3f5989db0696d9d03a0988cbcff60e90e59 (patch)
treef8cce0c05888743c2337bbc1a7a066c056165e4b /test/Variables/Variables.py
parente980c5bc26892ce4db1e45516e9983bbc6a2bd33 (diff)
parent04bc3eaab31c5437764b10ee942b19740b5139c9 (diff)
downloadSCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.zip
SCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.tar.gz
SCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.tar.bz2
Merge remote-tracking branch 'upstream/master' into fix_configure_marking_up_to_date
Diffstat (limited to 'test/Variables/Variables.py')
-rw-r--r--test/Variables/Variables.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Variables/Variables.py b/test/Variables/Variables.py
index bb7b237..f6832c0 100644
--- a/test/Variables/Variables.py
+++ b/test/Variables/Variables.py
@@ -28,6 +28,7 @@ import TestSCons
test = TestSCons.TestSCons()
test.write('SConstruct', """
+DefaultEnvironment(tools=[]) # test speedup
env = Environment()
print(env['CC'])
print(" ".join(env['CCFLAGS']))
@@ -94,6 +95,7 @@ def test_tool(env):
env.Append(CCFLAGS = '-g')
+DefaultEnvironment(tools=[]) # test speedup
env = Environment(variables=opts, tools=['default', test_tool])
Help('Variables settable in custom.py or on the command line:\\n' + opts.GenerateHelpText(env))
@@ -217,6 +219,7 @@ opts.Add('DEBUG_BUILD',
opts.Add('UNSPECIFIED',
'An option with no value')
+DefaultEnvironment(tools=[]) # test speedup
env = Environment(variables = opts)
print(env['RELEASE_BUILD'])
@@ -275,6 +278,7 @@ opts.Add('LISTOPTION_TEST',
'none',
names = ['a','b','c',])
+DefaultEnvironment(tools=[]) # test speedup
env = Environment(variables = opts)
print(env['RELEASE_BUILD'])
@@ -319,6 +323,7 @@ opts.Add('CC',
opts.Add('UNSPECIFIED',
'An option with no value')
+DefaultEnvironment(tools=[]) # test speedup
env = Environment(variables=opts)
def compare(a, b):
@@ -355,6 +360,7 @@ Use scons -H for help about command-line options.
test.write('SConstruct', """
import SCons.Variables
+DefaultEnvironment(tools=[]) # test speedup
env1 = Environment(variables = Variables())
env2 = Environment(variables = SCons.Variables.Variables())
""")