summaryrefslogtreecommitdiff
path: root/testsuite/tests/showIface/Makefile
blob: c45f38684e35d9dc151b055f1f23f8b3493d948c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
TOP=../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

Orphans:
	'$(TEST_HC)' $(TEST_HC_OPTS) -c Orphans.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) --show-iface Orphans.hi | grep -E '^(instance |family instance |"myrule)' | grep -v 'family instance modules:'

DocsInHiFile0:
	'$(TEST_HC)' $(TEST_HC_OPTS) -c DocsInHiFile.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) --show-iface DocsInHiFile.hi | grep -A 4 'module header:'

DocsInHiFile1:
	'$(TEST_HC)' $(TEST_HC_OPTS) -c -haddock DocsInHiFile.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) --show-iface DocsInHiFile.hi | grep -A 100 'module header:'

DocsInHiFileTH:
	'$(TEST_HC)' $(TEST_HC_OPTS) -c -haddock DocsInHiFileTHExternal.hs DocsInHiFileTH.hs
	'$(TEST_HC)' $(TEST_HC_OPTS) --show-iface DocsInHiFileTH.hi | grep -A 200 'module header:'