ApiAnnotations : strings in warnings do not return SourceText
[ghc.git] / testsuite / tests / ghc-api / annotations / Makefile
1 TOP=../../..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 clean:
6 rm -f *.o *.hi
7 rm -f annotations comments parseTree exampleTest
8 rm -f listcomps
9 rm -f boolFormula
10 rm -f t10255
11 rm -f t10268
12 rm -f t10269
13 rm -f t10278
14 rm -f t10280
15 rm -f t10307
16 rm -f t10309
17 rm -f t10312
18 rm -f t10354
19 rm -f t10357
20 rm -f t10358
21 rm -f t10396
22 rm -f t10399
23
24 .PHONY: annotations
25 annotations:
26 rm -f annotations.o annotations.hi
27 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc annotations
28 ./annotations "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
29
30 .PHONY: parseTree
31 parseTree:
32 rm -f parseTree.o parseTree.hi
33 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc parseTree
34 ./parseTree "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
35
36 .PHONY: comments
37 comments:
38 rm -f comments.o comments.hi
39 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc comments
40 ./comments "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
41
42 .PHONY: exampleTest
43 exampleTest:
44 rm -f exampleTest.o exampleTest.hi
45 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
46 -outputdir tmp_exampleTest \
47 exampleTest
48 ./exampleTest "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" AnnotationTuple
49
50 .PHONY: listcomps
51 listcomps:
52 rm -f listcomps.o listcomps.hi
53 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc listcomps
54 ./listcomps "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`"
55
56 .PHONY: T10358
57 T10358:
58 rm -f t10358.o t10358.hi
59 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
60 -outputdir tmp_T10358 \
61 t10358
62 ./t10358 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10358
63
64 .PHONY: T10396
65 T10396:
66 rm -f t10396.o t10396.hi
67 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
68 -outputdir tmp_T10396 \
69 t10396
70 ./t10396 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10396
71
72 .PHONY: T10255
73 T10255:
74 rm -f t10255.o t10255.hi
75 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
76 -outputdir tmp_T10255 \
77 t10255
78 ./t10255 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10255
79
80 .PHONY: T10357
81 T10357:
82 rm -f t10357.o t10357.hi
83 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
84 -outputdir tmp_T10357 \
85 t10357
86 ./t10357 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10357
87
88 .PHONY: T10268
89 T10268:
90 rm -f t10268.o t10268.hi
91 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
92 -outputdir tmp_T10268 \
93 t10268
94 ./t10268 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10268
95
96 .PHONY: T10280
97 T10280:
98 rm -f t10280.o t10280.hi
99 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
100 -outputdir tmp_T10280 \
101 t10280
102 ./t10280 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10280
103
104 .PHONY: T10269
105 T10269:
106 rm -f t10269.o t10269.hi
107 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
108 -outputdir tmp_T10269 \
109 t10269
110 ./t10269 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10269
111
112 .PHONY: T10312
113 T10312:
114 rm -f t10312.o t10312.hi
115 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
116 -outputdir tmp_T10312 \
117 t10312
118 ./t10312 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10312
119
120 .PHONY: T10307
121 T10307:
122 rm -f t10307.o t10307.hi
123 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
124 -outputdir tmp_T10307 \
125 t10307
126 ./t10307 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10307
127
128 .PHONY: T10309
129 T10309:
130 rm -f t10309.o t10309.hi
131 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
132 -outputdir tmp_T10309 \
133 t10309
134 ./t10309 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10309
135
136 .PHONY: boolFormula
137 boolFormula:
138 rm -f boolFormula.o boolFormula.hi
139 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
140 -outputdir tmp_boolFormula \
141 boolFormula
142 ./boolFormula "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" TestBoolFormula
143
144 .PHONY: T10278
145 T10278:
146 rm -f t10278.o t10278.hi
147 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
148 -outputdir tmp_T10278 \
149 t10278
150 ./t10278 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10278
151
152 .PHONY: T10354
153 T10354:
154 rm -f t10354.o t10354.hi
155 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
156 -outputdir tmp_T10354 \
157 t10354
158 ./t10354 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10354
159
160 .PHONY: T10399
161 T10399:
162 rm -f t10399.o t10399.hi
163 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc \
164 -outputdir tmp_T10399 \
165 t10399
166 ./t10399 "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10399
167
168 .PHONY: T10313
169 T10313:
170 rm -f stringSource.o stringSource.hi
171 '$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 -package ghc stringSource
172 ./stringSource "`'$(TEST_HC)' $(TEST_HC_OPTS) --print-libdir | tr -d '\r'`" Test10313