[commit: ghc] wip/perf-testsuite: Change stuff in testlib.py (308bd11)

git at git.haskell.org git at git.haskell.org
Sat Sep 2 21:47:01 UTC 2017


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

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

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

commit 308bd11e97398e50aa8cca2d286002b7fb5f6686
Author: Jared Weakly <jweakly at pdx.edu>
Date:   Mon Aug 28 17:26:30 2017 -0700

    Change stuff in testlib.py


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

308bd11e97398e50aa8cca2d286002b7fb5f6686
 testsuite/driver/testlib.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index d57dbf9..042e330 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -1040,6 +1040,11 @@ def multimod_compile_and_run( name, way, top_mod, extra_hc_opts ):
 def multi_compile_and_run( name, way, top_mod, extra_mods, extra_hc_opts ):
     return compile_and_run__( name, way, top_mod, extra_mods, extra_hc_opts)
 
+def stats( name, way, stats_file ):
+    """This function is used by some performance tests"""
+    opts = getTestOpts()
+    return checkStats(name, way, stats_file, opts.stats_range_fields)
+
 # -----------------------------------------------------------------------------
 # Check -t stats info
 



More information about the ghc-commits mailing list