summaryrefslogtreecommitdiffstats
path: root/timings/CPPPATH
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2009-12-10 03:42:30 (GMT)
committerSteven Knight <knight@baldmt.com>2009-12-10 03:42:30 (GMT)
commite8551494b473640e3310c8acf87bddaaf9804613 (patch)
tree752358a6720d64a6737668780d3d531a86d5ee1c /timings/CPPPATH
parentadce42a8c1bd40f25af344cfce98ed26656cbea4 (diff)
downloadSCons-e8551494b473640e3310c8acf87bddaaf9804613.zip
SCons-e8551494b473640e3310c8acf87bddaaf9804613.tar.gz
SCons-e8551494b473640e3310c8acf87bddaaf9804613.tar.bz2
Infrastructure to support calibration runs of TimeSCons tests, which
only run a full build and report back the values of any variables affecting the configuration, and the elapsed time of the full build.
Diffstat (limited to 'timings/CPPPATH')
-rw-r--r--timings/CPPPATH/TimeSCons-run.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/timings/CPPPATH/TimeSCons-run.py b/timings/CPPPATH/TimeSCons-run.py
index d88042e..dcee7c5 100644
--- a/timings/CPPPATH/TimeSCons-run.py
+++ b/timings/CPPPATH/TimeSCons-run.py
@@ -32,13 +32,11 @@ file #includes the .h file to be found in the last directory in the list.
import TestSCons
-test = TestSCons.TimeSCons()
+test = TestSCons.TimeSCons(variables={'DIR_COUNT':5000})
-dir_count = 5000
-
-for d in xrange(dir_count):
+for d in xrange(test.variables['DIR_COUNT']):
test.subdir('inc_%04d' % d)
-test.main(options='DIR_COUNT=%s' % dir_count)
+test.main()
test.pass_test()