summaryrefslogtreecommitdiff
path: root/testsuite/driver/runtests.py
diff options
context:
space:
mode:
authorsimonmar <unknown>2002-09-11 10:47:58 +0000
committersimonmar <unknown>2002-09-11 10:47:58 +0000
commitf2600f8b9ec1313a95ac57cd1e8dfde517b2fdf4 (patch)
tree64b624509c76e1f0d962c2e316931888b643f3cb /testsuite/driver/runtests.py
parent45c9dccebda91a388cb56aeadd696859b226fccd (diff)
downloadhaskell-f2600f8b9ec1313a95ac57cd1e8dfde517b2fdf4.tar.gz
[project @ 2002-09-11 10:47:57 by simonmar]
- Move some of the way-selection logic into the configuration file; the build system now just passes in variables saying whether the compiler supports profiling and native code generation, and the configuration file adds the appropriate ways. - Add a new option to the test driver, --way=<way> to select just a single way.
Diffstat (limited to 'testsuite/driver/runtests.py')
-rw-r--r--testsuite/driver/runtests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/driver/runtests.py b/testsuite/driver/runtests.py
index 060249514e..27cb6fc5a6 100644
--- a/testsuite/driver/runtests.py
+++ b/testsuite/driver/runtests.py
@@ -30,6 +30,7 @@ long_options = [
"rootdir=", # root of tree containing tests (default: .)
"output-summary=", # file in which to save the (human-readable) summary
"only=", # just this test (can be give multiple --only= flags)
+ "way=", # just this way
]
opts, args = getopt.getopt(sys.argv[1:], "e:", long_options)
@@ -52,6 +53,14 @@ for opt,arg in opts:
if opt == '--only':
config.only.append(arg)
+ if opt == '--way':
+ if (arg not in config.run_ways and arg not in config.compile_ways):
+ sys.stderr.write("ERROR: requested way \'" +
+ arg + "\' does not exist\n")
+ sys.exit(1)
+ config.run_ways = filter(eq(arg), config.run_ways)
+ config.compile_ways = filter(eq(arg), config.compile_ways)
+
# -----------------------------------------------------------------------------
# The main dude