Exclude Cabal PackageTests from gen_contents_index.
[ghc.git] / testsuite / tests / driver / sigof03 / Makefile
1 TOP=../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 S03_OPTS=$(TEST_HC_OPTS) -outputdir tmp_sigof03 -i -itmp_sigof03
6 sigof03:
7 rm -rf tmp_sigof03
8 mkdir tmp_sigof03
9 '$(TEST_HC)' $(S03_OPTS) -c A.hs
10 '$(TEST_HC)' $(S03_OPTS) -c ASig1.hsig -sig-of "ASig1 is main:A, ASig2 is main:A"
11 '$(TEST_HC)' $(S03_OPTS) -c ASig2.hsig -sig-of "ASig1 is main:A, ASig2 is main:A"
12 '$(TEST_HC)' $(S03_OPTS) -c Main.hs
13 '$(TEST_HC)' $(S03_OPTS) tmp_sigof03/A.o tmp_sigof03/Main.o -o tmp_sigof03/Main
14 ./tmp_sigof03/Main
15
16 S03M_OPTS=$(TEST_HC_OPTS) -outputdir tmp_sigof03m
17 sigof03m:
18 rm -rf tmp_sigof03m
19 mkdir tmp_sigof03m
20 '$(TEST_HC)' $(S03M_OPTS) --make Main.hs -sig-of "ASig1 is main:A, ASig2 is main:A"
21 ./tmp_sigof03m/Main
22
23 # Currently, the type-check tests are omitted, because we don't have a
24 # way of telling GHC that ASig1 and ASig2 have the same identities
25 # (sig-of is not right because it requires the target to have an hi
26 # file, but in general we won't have it.)