Exclude Cabal PackageTests from gen_contents_index.
[ghc.git] / testsuite / tests / driver / sigof02 / Makefile
1 TOP=../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 S02_OPTS=$(TEST_HC_OPTS) -outputdir tmp_sigof02 -i -itmp_sigof02
6 sigof02:
7 rm -rf tmp_sigof02
8 mkdir tmp_sigof02
9 '$(GHC_PKG)' field containers key | sed 's/^.*: *//' > tmp_sigof02/containers
10 '$(TEST_HC)' $(S02_OPTS) -c Map.hsig -sig-of "Map is `cat tmp_sigof02/containers`:Data.Map.Strict"
11 '$(TEST_HC)' $(S02_OPTS) -c Main.hs
12 '$(TEST_HC)' $(S02_OPTS) -package containers tmp_sigof02/Main.o -o tmp_sigof02/StrictMain
13 ! ./tmp_sigof02/StrictMain
14 '$(TEST_HC)' $(S02_OPTS) -c Map.hsig -sig-of "Map is `cat tmp_sigof02/containers`:Data.Map.Lazy"
15 '$(TEST_HC)' $(S02_OPTS) -c Main.hs
16 '$(TEST_HC)' $(S02_OPTS) -package containers tmp_sigof02/Main.o -o tmp_sigof02/LazyMain
17 ./tmp_sigof02/LazyMain
18
19 S02T_OPTS=$(TEST_HC_OPTS) -fno-code -fwrite-interface -outputdir tmp_sigof02t -i -itmp_sigof02t
20 sigof02t:
21 rm -rf tmp_sigof02t
22 mkdir tmp_sigof02t
23 '$(TEST_HC)' $(S02T_OPTS) -c Map.hsig
24 '$(TEST_HC)' $(S02T_OPTS) -c Main.hs
25
26 S02M_OPTS=$(TEST_HC_OPTS) -outputdir tmp_sigof02m
27 sigof02m:
28 rm -rf tmp_sigof02m
29 mkdir tmp_sigof02m
30 '$(GHC_PKG)' field containers key | sed 's/^.*: *//' > tmp_sigof02m/containers
31 '$(TEST_HC)' $(S02M_OPTS) --make Main.hs -sig-of "Map is `cat tmp_sigof02m/containers`:Data.Map.Strict" -o tmp_sigof02m/StrictMain
32 ! ./tmp_sigof02m/StrictMain
33 '$(TEST_HC)' $(S02M_OPTS) --make Main.hs -sig-of "Map is `cat tmp_sigof02m/containers`:Data.Map.Lazy" -o tmp_sigof02m/LazyMain
34 ./tmp_sigof02m/LazyMain
35
36 sigof02mt:
37 rm -rf tmp_sigof02mt
38 mkdir tmp_sigof02mt
39 '$(TEST_HC)' $(TEST_HC_OPTS) -outputdir tmp_sigof02mt --make Main.hs -fno-code -fwrite-interface
40
41 S02D_OPTS=$(TEST_HC_OPTS) -outputdir tmp_sigof02d -i -itmp_sigof02d
42 sigof02d:
43 rm -rf tmp_sigof02d
44 mkdir tmp_sigof02d
45 '$(GHC_PKG)' field containers key | sed 's/^.*: *//' > tmp_sigof02d/containers
46 '$(TEST_HC)' $(S02D_OPTS) -c Map.hsig -sig-of "Map is `cat tmp_sigof02d/containers`:Data.Map.Lazy, MapAsSet is `cat tmp_sigof02d/containers`:Data.Map.Lazy"
47 '$(TEST_HC)' $(S02D_OPTS) -c MapAsSet.hsig -sig-of "Map is `cat tmp_sigof02d/containers`:Data.Map.Lazy, MapAsSet is `cat tmp_sigof02d/containers`:Data.Map.Lazy"
48 '$(TEST_HC)' $(S02D_OPTS) -c Double.hs
49 '$(TEST_HC)' $(S02D_OPTS) -package containers tmp_sigof02d/Main.o -o tmp_sigof02d/Double
50 ./tmp_sigof02d/Double
51
52 S02DT_OPTS=$(TEST_HC_OPTS) -outputdir tmp_sigof02dt -i -itmp_sigof02dt -fno-code -fwrite-interface
53 sigof02dt:
54 rm -rf tmp_sigof02dt
55 mkdir tmp_sigof02dt
56 '$(TEST_HC)' $(S02DT_OPTS) -c Map.hsig
57 '$(TEST_HC)' $(S02DT_OPTS) -c MapAsSet.hsig
58 ! '$(TEST_HC)' $(S02DT_OPTS) -c Double.hs
59
60 sigof02dm:
61 rm -rf tmp_sigof02dm
62 mkdir tmp_sigof02dm
63 '$(GHC_PKG)' field containers key | sed 's/^.*: *//' > tmp_sigof02dm/containers
64 '$(TEST_HC)' $(TEST_HC_OPTS) -outputdir tmp_sigof02dm --make Double.hs -sig-of "Map is `cat tmp_sigof02dm/containers`:Data.Map.Lazy, MapAsSet is `cat tmp_sigof02dm/containers`:Data.Map.Lazy" -o tmp_sigof02dm/Double
65 ./tmp_sigof02dm/Double
66
67 sigof02dmt:
68 rm -rf tmp_sigof02dmt
69 mkdir tmp_sigof02dmt
70 # doesn't typecheck due to lack of alias
71 ! '$(TEST_HC)' $(TEST_HC_OPTS) -outputdir tmp_sigof02dmt -fno-code -fwrite-interface --make Double.hs -o tmp_sigof02dmt/Double