summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2006-12-10 01:42:16 -0500
committerSteve Reinhardt <stever@eecs.umich.edu>2006-12-10 01:42:16 -0500
commit96d1efe0a9bacebe54cbf883357ce4d6c6e1f25d (patch)
tree2a5521daae54726f5bd23bfdba3081ff8d4fb2dc /util
parent2e1200e57f1011d5af999dc60b0f9aa4bff5fb09 (diff)
downloadgem5-96d1efe0a9bacebe54cbf883357ce4d6c6e1f25d.tar.xz
Add '-j' option directly to regress script (passed to scons).
--HG-- extra : convert_revision : 9776806b24da70b815280e47d2d5ec8674c82669
Diffstat (limited to 'util')
-rwxr-xr-xutil/regress8
1 files changed, 7 insertions, 1 deletions
diff --git a/util/regress b/util/regress
index 8e60b6fee..930a8be48 100755
--- a/util/regress
+++ b/util/regress
@@ -48,6 +48,8 @@ optparser.add_option('--variants', dest='variants',
" (default: '%default')" )
optparser.add_option('--scons-opts', dest='scons_opts', default='',
help='scons options', metavar='OPTS')
+optparser.add_option('-j', '--jobs', type='int', default=1,
+ help='number of parallel jobs to use')
(options, tests) = optparser.parse_args()
@@ -88,7 +90,11 @@ try:
for variant in variants
for test in tests]
- system('scons %s %s' % (options.scons_opts, ' '.join(targets)))
+ scons_opts = options.scons_opts
+ if options.jobs != 1:
+ scons_opts += ' -j %d' % options.jobs
+
+ system('scons %s %s' % (scons_opts, ' '.join(targets)))
sys.exit(0)