summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-12-15 10:46:58 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-12-17 21:23:23 -0500
commite04878b01f0d3fe74b57ff89505daf2512b66941 (patch)
treec88c10f63c8a3d2bbb4bea28a11314d561dd3543 /testsuite
parent3f31bfe8c3c2250391ceb58ad267e0845b53bb29 (diff)
downloadhaskell-e04878b01f0d3fe74b57ff89505daf2512b66941.tar.gz
ci: Use correct metrics baseline
It turns out there was already a function in the CI script to correctly set the baseline for performance tests but it was just never called. I now call it during the initialisation to set the correct baseline. I also made the make testsuite driver take into account the PERF_BASELINE_COMMIT environment variable Fixes #20811
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/mk/test.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk
index 53f86cb9d4..483d17c051 100644
--- a/testsuite/mk/test.mk
+++ b/testsuite/mk/test.mk
@@ -17,6 +17,7 @@
# PLATFORM -- if accepting a result, accept it for the current platform.
# OS -- if accepting a result, accept it for all wordsizes of the
# current os.
+# PERF_BASELINE_COMMIT - the baseline commit to use for performance tests.
#
# -----------------------------------------------------------------------------
@@ -303,6 +304,11 @@ RUNTEST_OPTS += \
--no-print-summary
endif
+ifneq "$(PERF_BASELINE_COMMIT)" ""
+RUNTEST_OPTS += \
+ --perf-baseline "$(PERF_BASELINE_COMMIT)"
+endif
+
RUNTEST_OPTS += \
$(EXTRA_RUNTEST_OPTS)