diff options
author | Chris Johns <chrisj@rtems.org> | 2013-04-16 14:42:05 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-04-16 14:42:05 +1000 |
commit | 82e9f91ccf936e06bc4e6bbf9012e24ad4b0d062 (patch) | |
tree | c1f0a065a935911cf78e27c6731d9cfb665fd5d9 /source-builder/sb/options.py | |
parent | Add download git support. (diff) | |
download | rtems-source-builder-82e9f91ccf936e06bc4e6bbf9012e24ad4b0d062.tar.bz2 |
Add the --regression option.
Diffstat (limited to 'source-builder/sb/options.py')
-rw-r--r-- | source-builder/sb/options.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py index 2eddd24..6671a57 100644 --- a/source-builder/sb/options.py +++ b/source-builder/sb/options.py @@ -65,6 +65,7 @@ class command_line: '--keep-going' : ('_keep_going', self._lo_bool, False, '0', True), '--always-clean' : ('_always_clean', self._lo_bool, False, '0', True), '--no-install' : ('_no_install', self._lo_bool, False, '0', True), + '--regression' : ('_regression', self._lo_bool, False, '0', True), '--host' : ('_host', self._lo_triplets, True, None, False), '--build' : ('_build', self._lo_triplets, True, None, False), '--target' : ('_target', self._lo_triplets, True, None, False), @@ -209,6 +210,7 @@ class command_line: print '--libstdcxxflags flags : List of C++ flags to build the target libstdc++ code' print '--with-<label> : Add the --with-<label> to the build' print '--without-<label> : Add the --without-<label> to the build' + print '--regression : Set --no-install, --keep-going and --always-clean' if self.optargs: for a in self.optargs: print '%-22s : %s' % (a, self.optargs[a]) @@ -244,6 +246,14 @@ class command_line: # Must have a host if self.defaults['_host'] == self.defaults['nil']: raise error.general('host not set') + # Manage the regression option + if self.opts['regression'] != '0': + self.opts['no-install'] = '1' + self.defaults['_no_install'] = '1' + self.opts['keep-going'] = '1' + self.defaults['_keep_going'] = '1' + self.opts['always-clean'] = '1' + self.defaults['_always_clean'] = '1' # Handle the jobs for make if '_ncpus' not in self.defaults: raise error.general('host number of CPUs not set') |