summaryrefslogtreecommitdiff
path: root/testsuite/mk
diff options
context:
space:
mode:
authorTamar Christina <tamar@zhox.com>2018-03-31 11:14:17 +0100
committerTamar Christina <tamar@zhox.com>2018-03-31 11:54:36 +0100
commitca535f95a742d885c4082c9dc296c151fb3c1e12 (patch)
tree9fb7620e46bf83337822037b3de786a5fe43567c /testsuite/mk
parent4de585a5c1ac3edc2914cebcac1753b514051a89 (diff)
downloadhaskell-ca535f95a742d885c4082c9dc296c151fb3c1e12.tar.gz
testsuite: allow accepting of fine grained results [skip ci]
Summary: Sometimes we need to be able to mass accept changes that are platform specific and that can't be normalized away using our string formatters. e.g. differences in I/O manager errors or behaviors. This allows one to do so easier than before and less error prone. I have updated the docs and made it clear this should only be used when a normalizer won't work: https://ghc.haskell.org/trac/ghc/wiki/Building/RunningTests/Updating Test Plan: Manually tested while working on new I/O manager Reviewers: bgamari Subscribers: thomie, carter Differential Revision: https://phabricator.haskell.org/D4549
Diffstat (limited to 'testsuite/mk')
-rw-r--r--testsuite/mk/test.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk
index a21c4bb16b..1eb8d49c4b 100644
--- a/testsuite/mk/test.mk
+++ b/testsuite/mk/test.mk
@@ -14,6 +14,9 @@
# CONFIG -- use a different configuration file
# COMPILER -- select a configuration file from config/
# THREADS -- run n tests at once
+# 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.
#
# -----------------------------------------------------------------------------
@@ -280,6 +283,15 @@ endif
ifeq "$(accept)" "YES"
setaccept = -e config.accept=1
+
+ifeq "$(PLATFORM)" "YES"
+setaccept += -e config.accept_platform=1
+endif
+
+ifeq "$(OS)" "YES"
+setaccept += -e config.accept_os=1
+endif
+
else
setaccept =
endif