summaryrefslogtreecommitdiff
path: root/testsuite/tests/printer/all.T
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2016-11-08 21:37:48 +0200
committerAlan Zimmerman <alan.zimm@gmail.com>2016-12-07 21:31:13 +0200
commit499e43824bda967546ebf95ee33ec1f84a114a7c (patch)
tree58b313d734cfba014395ea5876db48e8400296a8 /testsuite/tests/printer/all.T
parent83d69dca896c7df1f2a36268d5b45c9283985ebf (diff)
downloadhaskell-499e43824bda967546ebf95ee33ec1f84a114a7c.tar.gz
Add HsSyn prettyprinter tests
Summary: Add prettyprinter tests, which take a file, parse it, pretty print it, re-parse the pretty printed version and then compare the original and new ASTs (ignoring locations) Updates haddock submodule to match the AST changes. There are three issues outstanding 1. Extra parens around a context are not reproduced. This will require an AST change and will be done in a separate patch. 2. Currently if an `HsTickPragma` is found, this is not pretty-printed, to prevent noise in the output. I am not sure what the desired behaviour in this case is, so have left it as before. Test Ppr047 is marked as expected fail for this. 3. Apart from in a context, the ParsedSource AST keeps all the parens from the original source. Something is happening in the renamer to remove the parens around visible type application, causing T12530 to fail, as the dumped splice decl is after the renamer. This needs to be fixed by keeping the parens, but I do not know where they are being removed. I have amended the test to pass, by removing the parens in the expected output. Test Plan: ./validate Reviewers: goldfire, mpickering, simonpj, bgamari, austin Reviewed By: simonpj, bgamari Subscribers: simonpj, goldfire, thomie, mpickering Differential Revision: https://phabricator.haskell.org/D2752 GHC Trac Issues: #3384
Diffstat (limited to 'testsuite/tests/printer/all.T')
-rw-r--r--testsuite/tests/printer/all.T47
1 files changed, 47 insertions, 0 deletions
diff --git a/testsuite/tests/printer/all.T b/testsuite/tests/printer/all.T
new file mode 100644
index 0000000000..c39656e892
--- /dev/null
+++ b/testsuite/tests/printer/all.T
@@ -0,0 +1,47 @@
+test('Ppr001', normal, run_command, ['$MAKE -s --no-print-directory ppr001'])
+test('Ppr002', normal, run_command, ['$MAKE -s --no-print-directory ppr002'])
+test('Ppr003', normal, run_command, ['$MAKE -s --no-print-directory ppr003'])
+test('Ppr004', normal, run_command, ['$MAKE -s --no-print-directory ppr004'])
+test('Ppr005', normal, run_command, ['$MAKE -s --no-print-directory ppr005'])
+test('Ppr006', normal, run_command, ['$MAKE -s --no-print-directory ppr006'])
+test('Ppr007', normal, run_command, ['$MAKE -s --no-print-directory ppr007'])
+test('Ppr008', normal, run_command, ['$MAKE -s --no-print-directory ppr008'])
+test('Ppr009', normal, run_command, ['$MAKE -s --no-print-directory ppr009'])
+test('Ppr010', normal, run_command, ['$MAKE -s --no-print-directory ppr010'])
+test('Ppr011', normal, run_command, ['$MAKE -s --no-print-directory ppr011'])
+test('Ppr012', normal, run_command, ['$MAKE -s --no-print-directory ppr012'])
+test('Ppr013', normal, run_command, ['$MAKE -s --no-print-directory ppr013'])
+test('Ppr014', normal, run_command, ['$MAKE -s --no-print-directory ppr014'])
+test('Ppr015', normal, run_command, ['$MAKE -s --no-print-directory ppr015'])
+test('Ppr016', normal, run_command, ['$MAKE -s --no-print-directory ppr016'])
+test('Ppr017', normal, run_command, ['$MAKE -s --no-print-directory ppr017'])
+test('Ppr018', normal, run_command, ['$MAKE -s --no-print-directory ppr018'])
+test('Ppr019', normal, run_command, ['$MAKE -s --no-print-directory ppr019'])
+test('Ppr020', normal, run_command, ['$MAKE -s --no-print-directory ppr020'])
+test('Ppr021', normal, run_command, ['$MAKE -s --no-print-directory ppr021'])
+test('Ppr022', normal, run_command, ['$MAKE -s --no-print-directory ppr022'])
+test('Ppr023', normal, run_command, ['$MAKE -s --no-print-directory ppr023'])
+test('Ppr024', normal, run_command, ['$MAKE -s --no-print-directory ppr024'])
+test('Ppr025', normal, run_command, ['$MAKE -s --no-print-directory ppr025'])
+test('Ppr026', normal, run_command, ['$MAKE -s --no-print-directory ppr026'])
+test('Ppr027', normal, run_command, ['$MAKE -s --no-print-directory ppr027'])
+test('Ppr028', normal, run_command, ['$MAKE -s --no-print-directory ppr028'])
+test('Ppr029', normal, run_command, ['$MAKE -s --no-print-directory ppr029'])
+test('Ppr030', normal, run_command, ['$MAKE -s --no-print-directory ppr030'])
+test('Ppr031', normal, run_command, ['$MAKE -s --no-print-directory ppr031'])
+test('Ppr032', normal, run_command, ['$MAKE -s --no-print-directory ppr032'])
+test('Ppr033', normal, run_command, ['$MAKE -s --no-print-directory ppr033'])
+test('Ppr034', normal, run_command, ['$MAKE -s --no-print-directory ppr034'])
+test('Ppr035', normal, run_command, ['$MAKE -s --no-print-directory ppr035'])
+test('Ppr036', normal, run_command, ['$MAKE -s --no-print-directory ppr036'])
+test('Ppr037', normal, run_command, ['$MAKE -s --no-print-directory ppr037'])
+test('Ppr038', normal, run_command, ['$MAKE -s --no-print-directory ppr038'])
+test('Ppr039', normal, run_command, ['$MAKE -s --no-print-directory ppr039'])
+test('Ppr040', normal, run_command, ['$MAKE -s --no-print-directory ppr040'])
+test('Ppr041', normal, run_command, ['$MAKE -s --no-print-directory ppr041'])
+test('Ppr042', normal, run_command, ['$MAKE -s --no-print-directory ppr042'])
+test('Ppr043', normal, run_command, ['$MAKE -s --no-print-directory ppr043'])
+test('Ppr044', normal, run_command, ['$MAKE -s --no-print-directory ppr044'])
+test('Ppr045', normal, run_command, ['$MAKE -s --no-print-directory ppr045'])
+test('Ppr046', normal, run_command, ['$MAKE -s --no-print-directory ppr046'])
+test('Ppr047', expect_fail, run_command, ['$MAKE -s --no-print-directory ppr047'])