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

git at git.haskell.org git at git.haskell.org
Fri Jul 28 20:33:14 UTC 2017


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

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

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

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

    ONLY_PERF_TESTS=YES now fully implemented


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

b4a9820184bf579f28aa9864e5a6b29c81d40cdd
 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 ae82d1f..a54fe38 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