diff options
author | Steven Knight <knight@baldmt.com> | 2009-12-10 06:19:43 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2009-12-10 06:19:43 (GMT) |
commit | 17879c1de6f589009c781e7f36e8a6a95b45c33f (patch) | |
tree | ab1e71c63d6a89ea409408287609180f6cf1acfe /QMTest | |
parent | e8551494b473640e3310c8acf87bddaaf9804613 (diff) | |
download | SCons-17879c1de6f589009c781e7f36e8a6a95b45c33f.zip SCons-17879c1de6f589009c781e7f36e8a6a95b45c33f.tar.gz SCons-17879c1de6f589009c781e7f36e8a6a95b45c33f.tar.bz2 |
Add a script for calibrating settings for timing configurations.
Update the timings scripts with calibrated settings that run
a full build between 9.5 and 10.0 seconds on the buildbot slave.
Diffstat (limited to 'QMTest')
-rw-r--r-- | QMTest/TestSCons.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py index 002baaa..c172632 100644 --- a/QMTest/TestSCons.py +++ b/QMTest/TestSCons.py @@ -1011,7 +1011,9 @@ class TimeSCons(TestSCons): self.variables[variable] = value del kw['variables'] - if not kw.has_key('verbose'): + self.calibrate = os.environ.get('TIMESCONS_CALIBRATE', '0') != '0' + + if not kw.has_key('verbose') and not self.calibrate: kw['verbose'] = True # TODO(1.5) @@ -1048,8 +1050,11 @@ class TimeSCons(TestSCons): for variable, value in self.variables.items(): options.append('%s=%s' % (variable, value)) kw['options'] = ' '.join(options) - calibrate = os.environ.get('TIMESCONS_CALIBRATE') - if calibrate in (None, '0'): + if self.calibrate: + # TODO(1.5) + #self.calibration(*args, **kw) + apply(self.calibration, args, kw) + else: # TODO(1.5) #self.help(*args, **kw) #self.full(*args, **kw) @@ -1057,10 +1062,6 @@ class TimeSCons(TestSCons): apply(self.help, args, kw) apply(self.full, args, kw) apply(self.null, args, kw) - else: - # TODO(1.5) - #self.calibration(*args, **kw) - apply(self.calibration, args, kw) def trace(self, graph, name, value, units, sort=None): fmt = "TRACE: graph=%s name=%s value=%s units=%s" |