[commit: ghc] wip/perf-testsuite: ONLY_PERF_TESTS=YES now fully implemented (49403a8)

git at git.haskell.org git at git.haskell.org
Sat Sep 2 21:45:05 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/perf-testsuite
Link       : http://ghc.haskell.org/trac/ghc/changeset/49403a81e4511a3e0eaa5e4e5ab903dac73cebd8/ghc

>---------------------------------------------------------------

commit 49403a81e4511a3e0eaa5e4e5ab903dac73cebd8
Author: Jared Weakly <jweakly at pdx.edu>
Date:   Wed Jul 12 17:30:31 2017 -0700

    ONLY_PERF_TESTS=YES now fully implemented


>---------------------------------------------------------------

49403a81e4511a3e0eaa5e4e5ab903dac73cebd8
 testsuite/driver/runtests.py | 2 ++
 testsuite/driver/testlib.py  | 1 +
 2 files changed, 3 insertions(+)

diff --git a/testsuite/driver/runtests.py b/testsuite/driver/runtests.py
index 3e03ed3..30f320a 100644
--- a/testsuite/driver/runtests.py
+++ b/testsuite/driver/runtests.py
@@ -306,6 +306,8 @@ else:
     sys.stdout.flush()
 
     summary(t, sys.stdout, config.no_print_summary)
+    print("Only perf tests: " + str(config.only_perf_tests) + "\n")
+    print("Skip perf tests: " + str(config.skip_perf_tests) + "\n")
 
     if config.summary_file:
         with open(config.summary_file, 'w') as file:
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 0da86f2..45b44a5 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -714,6 +714,7 @@ def test_common_work(watcher, name, opts, func, args):
             and (getTestOpts().only_ways == None or way in getTestOpts().only_ways) \
             and (config.cmdline_ways == [] or way in config.cmdline_ways) \
             and (not (config.skip_perf_tests and isStatsTest())) \
+            and (not (config.only_perf_tests and (not isStatsTest()))) \
             and way not in getTestOpts().omit_ways
 
         # Which ways we are asked to skip



More information about the ghc-commits mailing list