summaryrefslogtreecommitdiff
path: root/testsuite/mk/boilerplate.mk
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2015-10-25 20:19:38 +0100
committerBen Gamari <ben@smart-cactus.org>2015-10-25 20:19:38 +0100
commit43751b2436f370d956d8021b3cdd3eb77801470b (patch)
treec3eb56f9cd6f34bcc3ede20bb9b196fc140aa10a /testsuite/mk/boilerplate.mk
parent898f34cdd0121d6bc145f75af2cf99f58542b558 (diff)
downloadhaskell-43751b2436f370d956d8021b3cdd3eb77801470b.tar.gz
Provide a utility to check API Annotations
It is difficult for GHC developers to know if they have broken the API Annotations. This patch provides a utility that can be used as a test to show up errors in the API Annotations. It is based on the current tests for ghc-api/annotations which can parse a file using the just-built GHC API, and check that no annotations are disconnected from the ParsedSource in the output. In addition, it should be able to dump the annotations to a file, so a new feature developer can check that all changes to the parser do provide annotations. Trac ticket: #10917 Test Plan: ./validate Reviewers: hvr, thomie, austin, bgamari Reviewed By: bgamari Differential Revision: https://phabricator.haskell.org/D1368 GHC Trac Issues: #10917
Diffstat (limited to 'testsuite/mk/boilerplate.mk')
-rw-r--r--testsuite/mk/boilerplate.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/mk/boilerplate.mk b/testsuite/mk/boilerplate.mk
index b5039d5583..8872e52fef 100644
--- a/testsuite/mk/boilerplate.mk
+++ b/testsuite/mk/boilerplate.mk
@@ -176,6 +176,8 @@ ifeq "$(shell $(SHELL) -c 'python2 -c 0' 2> /dev/null && echo exists)" "exists"
PYTHON = python2
endif
+CHECK_API_ANNOTATIONS := $(abspath $(TOP)/../inplace/bin/check-api-annotations)
+
# -----------------------------------------------------------------------------
# configuration of TEST_HC