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/mk | |
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/mk')
-rw-r--r-- | testsuite/mk/test.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk index b1d716fd77..6860974c54 100644 --- a/testsuite/mk/test.mk +++ b/testsuite/mk/test.mk @@ -278,6 +278,8 @@ RUNTEST_OPTS += \ --config 'gs=$(call quote_path,$(GS))' \ --config 'timeout_prog=$(call quote_path,$(TIMEOUT_PROGRAM))' +RUNTEST_OPTS += --config 'stats_files_dir=$(TOP)/tests/perf/haddock' + RUNTEST_OPTS += -e "config.stage=$(GhcStage)" ifneq "$(METRICS_FILE)" "" |