summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/annotations/all.T
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2015-01-19 08:15:18 -0600
committerAustin Seipp <austin@well-typed.com>2015-01-19 08:15:18 -0600
commit851ed7211fb18fea938be84c99b6389f6762b30d (patch)
tree0f24080f6c04578860b00e1b6e9c55a8f4f4cbaa /testsuite/tests/ghc-api/annotations/all.T
parent960e3c92eace7f9b584cfc6f6eb69a37cd3d88f8 (diff)
downloadhaskell-851ed7211fb18fea938be84c99b6389f6762b30d.tar.gz
API Annotations documentation update, parsing issue, add example test
Summary: Add a reference note to each AnnKeywordId haddock comment so GHC developers will have an idea why they are there. Add a new test to ghc-api/annotations to serve as a template for other GHC developers when they need to update the parser. It provides output which checks that each SrcSpan that an annotation is attached to actually appears in the `ParsedSource`, and lists the individual annotations. The idea is that a developer writes a version of this which parses a sample file using whatever syntax is changed in Parser.y, and can then check that all the annotations come through. Depends on D538 Test Plan: ./validate Reviewers: simonpj, hvr, austin Reviewed By: austin Subscribers: thomie, jstolarek Differential Revision: https://phabricator.haskell.org/D620
Diffstat (limited to 'testsuite/tests/ghc-api/annotations/all.T')
-rw-r--r--testsuite/tests/ghc-api/annotations/all.T1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-api/annotations/all.T b/testsuite/tests/ghc-api/annotations/all.T
index 54da2efda4..cb075cb185 100644
--- a/testsuite/tests/ghc-api/annotations/all.T
+++ b/testsuite/tests/ghc-api/annotations/all.T
@@ -1,4 +1,5 @@
test('annotations', normal, run_command, ['$MAKE -s --no-print-directory annotations'])
test('parseTree', normal, run_command, ['$MAKE -s --no-print-directory parseTree'])
test('comments', normal, run_command, ['$MAKE -s --no-print-directory comments'])
+test('exampleTest', normal, run_command, ['$MAKE -s --no-print-directory exampleTest'])