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 /rules | |
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 'rules')
-rw-r--r-- | rules/haddock.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/haddock.mk b/rules/haddock.mk index f0d686194f..a0e4f1724a 100644 --- a/rules/haddock.mk +++ b/rules/haddock.mk @@ -76,7 +76,7 @@ endif $$($1_$2_HS_SRCS) \ $$($1_$2_EXTRA_HADDOCK_SRCS) \ $$(EXTRA_HADDOCK_OPTS) \ - +RTS -t"$1/$2/haddock.t" --machine-readable + +RTS -t"$$(TOP)/testsuite/tests/perf/haddock/$$($1_PACKAGE).t" --machine-readable # --no-tmp-comp-dir above is important: it saves a few minutes in a # validate. This flag lets Haddock use the pre-compiled object files |