summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-02-02 04:51:13 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2012-02-02 04:51:13 -0500
commit096a5507571bc2202c3d1569ed4258113d10ad56 (patch)
treea50fb8dcf5b8d69116a478af688128790b0bdef9 /util
parent0a26883296597a8737a0fbf2ce4cc625d85f842c (diff)
downloadgem5-096a5507571bc2202c3d1569ed4258113d10ad56.tar.xz
Regression: Update the regress script after SE/FS merge
This patch updates the regress script to reflect the merge of the SE/FS builds and the new structure of the test directories. It adds a "mode" flag to the script, that defaults to both se and fs.
Diffstat (limited to 'util')
-rwxr-xr-xutil/regress53
1 files changed, 26 insertions, 27 deletions
diff --git a/util/regress b/util/regress
index ff98a708b..69b11c045 100755
--- a/util/regress
+++ b/util/regress
@@ -40,17 +40,19 @@ add_option = optparser.add_option
add_option('-v', '--verbose', action='store_true', default=False,
help='echo commands before executing')
add_option('--builds',
- default='ALPHA_SE,ALPHA_SE_MOESI_hammer,' \
- 'ALPHA_SE_MESI_CMP_directory,' \
- 'ALPHA_SE_MOESI_CMP_directory,' \
- 'ALPHA_SE_MOESI_CMP_token,' \
- 'ALPHA_FS,' \
- 'MIPS_SE,' \
- 'POWER_SE,' \
- 'SPARC_SE,SPARC_FS,' \
- 'X86_SE,X86_FS,' \
- 'ARM_SE,ARM_FS',
+ default='ALPHA,ALPHA_MOESI_hammer,' \
+ 'ALPHA_MESI_CMP_directory,' \
+ 'ALPHA_MOESI_CMP_directory,' \
+ 'ALPHA_MOESI_CMP_token,' \
+ 'MIPS,' \
+ 'POWER,' \
+ 'SPARC,' \
+ 'X86,' \
+ 'ARM',
help="comma-separated build targets to test (default: '%default')")
+add_option('--modes',
+ default='se,fs',
+ help="comma-separated modes to test (default: '%default')")
add_option('--test-variants', default='opt',
help="comma-separated build variants to test (default: '%default')"\
", set to '' for none")
@@ -82,6 +84,7 @@ def split_if_nonempty(s):
# split list options on ',' to get Python lists
builds = split_if_nonempty(options.builds)
+modes = split_if_nonempty(options.modes)
test_variants = split_if_nonempty(options.test_variants)
compile_variants = split_if_nonempty(options.compile_variants)
@@ -112,25 +115,21 @@ if compile_variants:
for variant in compile_variants
for build in builds]
-# By default run the 'quick' tests
+# By default run the 'quick' tests, all expands to quick and long
if not tests:
tests = ['quick']
-
-# set up test targets for scons
-if 'all' in tests:
- targets += ['%s/%s/tests/%s' % (options.build_dir, build, variant)
- for build in builds
- for variant in test_variants]
-else:
- # Ugly! Since we don't have any quick SPARC_FS tests remove the
- # SPARC_FS target If we ever get a quick SPARC_FS test, this code
- # should be removed
- if 'quick' in tests and 'SPARC_FS' in builds:
- builds.remove('SPARC_FS')
- targets += ['%s/%s/tests/%s/%s' % (options.build_dir, build, variant, test)
- for build in builds
- for variant in test_variants
- for test in tests]
+elif 'all' in tests:
+ tests = ['quick,long']
+
+# set up test targets for scons, since we don't have any quick SPARC
+# full-system tests exclude it
+targets += ['%s/%s/tests/%s/%s/%s' % (options.build_dir, build, variant, test,
+ mode)
+ for build in builds
+ for variant in test_variants
+ for test in tests
+ for mode in modes
+ if not (build == 'SPARC' and test == 'quick' and mode == 'fs')]
def cpu_count():
if 'bsd' in sys.platform or sys.platform == 'darwin':