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

git at git.haskell.org git at git.haskell.org
Thu Jul 13 00:28:36 UTC 2017


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

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

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

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

    ONLY_PERF_TESTS=YES now fully implemented


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

b33645ee01d1e277fa848819261ba8a04ca3db57
 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 c09b063..996dae1 100644
--- a/testsuite/driver/runtests.py
+++ b/testsuite/driver/runtests.py
@@ -337,6 +337,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 887cfe5..8657a12 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