[go: up one dir, main page]

File: dune

package info (click to toggle)
cppo 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 588 kB
  • sloc: ml: 2,133; makefile: 54; sh: 11
file content (292 lines) | stat: -rw-r--r-- 7,531 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
;; ---------------------------------------------------------------------------
;; Positive tests.

(rule
 (targets ext.out)
 (deps
  (:< ext.cppo)
  source.sh)
 (action
  (with-stdout-to
   %{targets}
   (run %{bin:cppo} -x "rot13:tr '[a-z]' '[n-za-m]'" -x
     "source:sh source.sh '%F' %B %E" %{<}))))

(rule
 (targets comments.out)
 (deps
  (:< comments.cppo))
 (action
  (with-stdout-to
   %{targets}
   (run %{bin:cppo} %{<}))))

(rule
 (targets cond.out)
 (deps
  (:< cond.cppo))
 (action
  (with-stdout-to
   %{targets}
   (run %{bin:cppo} %{<}))))

(rule
 (targets tuple.out)
 (deps
  (:< tuple.cppo))
 (action
  (with-stdout-to
   %{targets}
   (run %{bin:cppo} %{<}))))

(rule
 (targets loc.out)
 (deps
  (:< loc.cppo))
 (action
  (with-stdout-to
   %{targets}
   (run %{bin:cppo} %{<}))))

(rule
 (targets paren_arg.out)
 (deps
  (:< paren_arg.cppo))
 (action
  (with-stdout-to
   %{targets}
   (run %{bin:cppo} %{<}))))

(rule
 (targets unmatched.out)
 (deps
  (:< unmatched.cppo))
 (action
  (with-stdout-to
   %{targets}
   (run %{bin:cppo} %{<}))))

(rule
 (targets version.out)
 (deps
  (:< version.cppo))
 (action
  (with-stdout-to
   %{targets}
   (run %{bin:cppo} -V X:123.05.2-alpha.1+foo-2.1 -V COQ:8.13+beta1 -V OCAML:4.12.0~alpha1 %{<}))))

(rule
 (targets test.out)
 (deps
  (:< test.cppo)
  incl.cppo
  incl2.cppo)
 (action
  (with-stdout-to
   %{targets}
   (run %{bin:cppo} %{<}))))

(rule
 (targets lexical.out)
 (deps (:< lexical.cppo))
 (action (with-stdout-to %{targets} (run %{bin:cppo} %{<}))))

(rule
 (targets scope.out)
 (deps (:< scope.cppo))
 (action (with-stdout-to %{targets} (run %{bin:cppo} %{<}))))

(rule
 (targets higher_order_macros.out)
 (deps (:< higher_order_macros.cppo))
 (action (with-stdout-to %{targets} (run %{bin:cppo} %{<}))))

(rule
 (targets include_define_on_last_line.out)
 (deps (:< include_define_on_last_line.cppo) define_on_last_line.cppo)
 (action (with-stdout-to %{targets} (run %{bin:cppo} %{<}))))

(rule
 (targets def.out)
 (deps (:< def.cppo))
 (action (with-stdout-to %{targets} (run %{bin:cppo} %{<}))))

(rule (alias runtest) (package cppo)
      (action (diff ext.ref ext.out)))

(rule (alias runtest) (package cppo)
      (action (diff comments.ref comments.out)))

(rule (alias runtest) (package cppo)
      (action (diff cond.ref cond.out)))

(rule (alias runtest) (package cppo)
      (action (diff tuple.ref tuple.out)))

(rule (alias runtest) (package cppo)
      (action (diff loc.ref loc.out)))

(rule (alias runtest) (package cppo)
      (action (diff paren_arg.ref paren_arg.out)))

(rule (alias runtest) (package cppo)
      (action (diff version.ref version.out)))

(rule (alias runtest) (package cppo)
      (action (diff unmatched.ref unmatched.out)))

(rule (alias runtest) (package cppo)
      (action (diff test.ref test.out)))

(rule (alias runtest) (package cppo)
      (action (diff lexical.ref lexical.out)))

(rule (alias runtest) (package cppo)
      (action (diff scope.ref scope.out)))

(rule (alias runtest) (package cppo)
      (action (diff higher_order_macros.ref higher_order_macros.out)))

(rule (alias runtest) (package cppo)
      (action (diff include_define_on_last_line.ref include_define_on_last_line.out)))

(rule (alias runtest) (package cppo)
      (action (diff def.ref def.out)))

;; ---------------------------------------------------------------------------
;; Negative tests.

(rule
 (targets arity_mismatch.err)
 (deps (:< arity_mismatch.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff arity_mismatch.ref arity_mismatch.err)))

(rule
 (targets applied_to_none.err)
 (deps (:< applied_to_none.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff applied_to_none.ref applied_to_none.err)))

(rule
 (targets expects_no_args.err)
 (deps (:< expects_no_args.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff expects_no_args.ref expects_no_args.err)))

(rule
 (targets already_defined.err)
 (deps (:< already_defined.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff already_defined.ref already_defined.err)))

(rule
 (targets at_least_one_arg.err)
 (deps (:< at_least_one_arg.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff at_least_one_arg.ref at_least_one_arg.err)))

(rule
 (targets comment_in_formals.err)
 (deps (:< comment_in_formals.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff comment_in_formals.ref comment_in_formals.err)))

(rule
 (targets arity_mismatch_indirect.err)
 (deps (:< arity_mismatch_indirect.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff arity_mismatch_indirect.ref arity_mismatch_indirect.err)))

(rule
 (targets expect_ident.err)
 (deps (:< expect_ident.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff expect_ident.ref expect_ident.err)))

(rule
 (targets expect_ident_empty.err)
 (deps (:< expect_ident_empty.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff expect_ident_empty.ref expect_ident_empty.err)))

(rule
 (targets undefined.err)
 (deps (:< undefined.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff undefined.ref undefined.err)))

(rule
 (targets shape_mismatch.err)
 (deps (:< shape_mismatch.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff shape_mismatch.ref shape_mismatch.err)))

(rule
 (targets int_expansion_error.err)
 (deps (:< int_expansion_error.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff int_expansion_error.ref int_expansion_error.err)))

(rule
 (targets extraneous_enddef.err)
 (deps (:< extraneous_enddef.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff extraneous_enddef.ref extraneous_enddef.err)))

(rule
 (targets missing_enddef.err)
 (deps (:< missing_enddef.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff missing_enddef.ref missing_enddef.err)))

(rule
 (targets missing_endscope.err)
 (deps (:< missing_endscope.cppo))
 (action (with-stderr-to %{targets}
   (with-accepted-exit-codes (not 0) (run %{bin:cppo} %{<})))))

(rule (alias runtest) (package cppo)
      (action (diff missing_endscope.ref missing_endscope.err)))