mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Add the --regression option.
This commit is contained in:
parent
649a64c0af
commit
82e9f91ccf
@ -1547,6 +1547,7 @@ Options and arguments:
|
||||
--libstdcxxflags flags : List of C++ flags to build the target libstdc++ code
|
||||
--with-<label> : Add the --with-<label> to the build
|
||||
--without-<label> : Add the --without-<label> to the build
|
||||
--regression : Set --no-install, --keep-going and --always-clean
|
||||
$ ../source-builder/sb-check
|
||||
RTEMS Source Builder - Check, v0.2.0
|
||||
Environment is ok
|
||||
@ -1589,6 +1590,7 @@ Options and arguments:
|
||||
--libstdcxxflags flags : List of C++ flags to build the target libstdc++ code
|
||||
--with-<label> : Add the --with-<label> to the build
|
||||
--without-<label> : Add the --without-<label> to the build
|
||||
--regression : Set --no-install, --keep-going and --always-clean
|
||||
-------------------------------------------------------------
|
||||
|
||||
Set Builder (sb-set-builder)
|
||||
@ -1634,6 +1636,7 @@ Options and arguments:
|
||||
--no-install : Do not install the packages to the prefix.
|
||||
--list-deps : List the dependent files.
|
||||
--pkg-tar-files : Create package tar files
|
||||
--regression : Set --no-install, --keep-going and --always-clean
|
||||
-------------------------------------------------------------
|
||||
|
||||
.Arguments
|
||||
@ -1732,6 +1735,9 @@ Print a list of dependent files used by a build set. Dependent files have a
|
||||
'dep[?]' prefix where '?' is a number. The files are listed alphabetically.
|
||||
+--report-format format+;;
|
||||
The report format can be 'text' or 'html'. The default is 'html'.
|
||||
+--regression+;;
|
||||
A convenience option which is the same as +--no-install+, +--keep-going+ and
|
||||
+--always-clean+.
|
||||
|
||||
Set Builder (sb-builder)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user