From 7a75a09403264c60a1f513b7466dc9503b966aab Mon Sep 17 00:00:00 2001 From: Alp Mestanogullari Date: Fri, 26 Apr 2019 14:25:46 +0200 Subject: 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 /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. --- testsuite/mk/test.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'testsuite/mk') 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)" "" -- cgit v1.2.1