diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2006-12-10 01:42:31 -0500 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2006-12-10 01:42:31 -0500 |
commit | 7b25e4091cdb7275fb23f204c3dc7020fd7029bf (patch) | |
tree | e5656f2a4ffb21be96e10c96ec26db6bbbcbe811 /util | |
parent | cfc6710f633be54b104c2332c4c571d1321d9bbd (diff) | |
parent | 96d1efe0a9bacebe54cbf883357ce4d6c6e1f25d (diff) | |
download | gem5-7b25e4091cdb7275fb23f204c3dc7020fd7029bf.tar.xz |
Merge zizzer.eecs.umich.edu:/z/stever/bk/newmem-cache2
into zizzer.eecs.umich.edu:/z/stever/bk/newmem-cache3
--HG--
extra : convert_revision : 7c78ae3298645aed2179ed4f2aa361619406f9de
Diffstat (limited to 'util')
-rwxr-xr-x | util/regress | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/regress b/util/regress index 83d8b4ddc..4492162eb 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) |