diff options
author | Alp Mestanogullari <alpmestan@gmail.com> | 2019-04-26 14:25:46 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-05-29 10:36:35 -0400 |
commit | 7a75a09403264c60a1f513b7466dc9503b966aab (patch) | |
tree | f447111fa2f5a7a7fe7ab5730be63529b15eea0c /testsuite/driver/testglobals.py | |
parent | c8380a4a738e5c2488337496b0d1b1faf6a7de9d (diff) | |
download | haskell-7a75a09403264c60a1f513b7466dc9503b966aab.tar.gz |
testsuite: introduce 'static_stats' tests
They are a particular type of perf tests. This patch introduces a
'stats_files_dir' configuration field in the testsuite driver where all
haddock timing files (and possibly others in the future) are assumed to live.
We also change both the Make and Hadrian build systems to pass respectively
$(TOP)/testsuite/tests/perf/haddock/ and
<build root>/stage1/haddock-timing-files/ as the value of that new
configuration field, and to generate the timing files in those directories
in the first place while generating documentation with haddock.
This new test type can be seen as one dedicated to examining stats files that
are generated while building a GHC distribution. This also lets us get rid of
the 'extra_files' directives in the all.T entries for haddock.base,
haddock.Cabal and haddock.compiler.
Diffstat (limited to 'testsuite/driver/testglobals.py')
-rw-r--r-- | testsuite/driver/testglobals.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/driver/testglobals.py b/testsuite/driver/testglobals.py index b28477c769..ababefba19 100644 --- a/testsuite/driver/testglobals.py +++ b/testsuite/driver/testglobals.py @@ -139,6 +139,11 @@ class TestConfig: # terminal supports colors self.supports_colors = False + # Where to look up runtime stats produced by haddock, needed for + # the haddock perf tests in testsuite/tests/perf/haddock/. + # See Note [Haddock runtime stats files] at the bottom of this file. + self.stats_files_dir = '/please_set_stats_files_dir' + global config config = TestConfig() |