File: dune

package info (click to toggle)
ocamlgraph 2.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,624 kB
  • sloc: ml: 19,995; xml: 151; makefile: 14; sh: 1
file content (310 lines) | stat: -rw-r--r-- 5,072 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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
(test
 (name check)
 (libraries graph)
 (modules check))

(test
 (name test_bfs)
 (libraries graph)
 (modules test_bfs))

(test
 (name test_classic)
 (libraries graph)
 (modules test_classic))

(test
 (name test_dfs)
 (libraries graph)
 (modules test_dfs))

(test
 (name test_topsort)
 (libraries graph)
 (modules test_topsort))

(test
 (name test_bfs01)
 (libraries graph)
 (modules test_bfs01))

(test
 (name test_check_path)
 (libraries graph)
 (modules test_check_path))

(test
 (name test_map_vertex)
 (libraries graph)
 (modules test_map_vertex))

(test
 (name test_eulerian)
 (libraries graph)
 (modules test_eulerian))

(test
 (name test_149)
 (libraries graph)
 (modules test_149))

;; Rules for the Bellman-Ford tests

(rule
 (with-stdout-to
  test_bf.output
  (run ./test_bf.exe)))

(rule
 (alias runtest)
 (action
  (progn
   (diff test_bf.expected test_bf.output)
   (echo "test_bf: all tests succeeded.\n"))))

(executable
 (name test_bf)
 (modules test_bf)
 (libraries graph))

;; Rules for the chaotic tests

(rule
 (with-stdout-to
  test_chaotic.output
  (run ./test_chaotic.exe)))

(rule
 (alias runtest)
 (action
  (progn
   (diff test_chaotic.expected test_chaotic.output)
   (echo "test_chaotic: all tests succeeded.\n"))))

(executable
 (name test_chaotic)
 (modules test_chaotic)
 (libraries graph))

;; Rules for the strat test

(rule
 (with-stdout-to
  strat.output
  (run ./strat.exe)))

(rule
 (alias runtest)
 (action
  (progn
   (diff strat.expected strat.output)
   (echo "strat: all tests succeeded.\n"))))

(executable
 (name strat)
 (modules strat)
 (libraries graph))

;; Rules for the fixpoint test

(rule
 (with-stdout-to
  test_fixpoint.output
  (run ./test_fixpoint.exe)))

(rule
 (alias runtest)
 (action
  (progn
   (diff test_fixpoint.expected test_fixpoint.output)
   (echo "test_fixpoint: all tests succeeded.\n"))))

(executable
 (name test_fixpoint)
 (modules test_fixpoint)
 (libraries graph))

;; Rules for the Johnson test

(rule
 (with-stdout-to
  test_johnson.output
  (run ./test_johnson.exe)))

(rule
 (alias runtest)
 (action
  (progn
   (diff test_johnson.expected test_johnson.output)
   (echo "test_johnson: all tests succeeded.\n"))))

(executable
 (name test_johnson)
 (modules test_johnson)
 (libraries graph))

;; Rules for the Contraction test

(rule
 (with-stdout-to
  test_contraction.output
  (run ./test_contraction.exe)))

(rule
 (alias runtest)
 (action
  (progn
   (diff test_contraction.expected test_contraction.output)
   (echo "test_contraction: all tests succeeded.\n"))))

(executable
 (name test_contraction)
 (modules test_contraction)
 (libraries graph))

;; Rules for the test_nontrivial_dom test

(rule
 (with-stdout-to
  test_nontrivial_dom.output
  (run ./test_nontrivial_dom.exe)))

(rule
 (alias runtest)
 (action
  (progn
   (diff test_nontrivial_dom.expected test_nontrivial_dom.output)
   (echo "test_nontrivial_dom: all tests succeeded.\n"))))

(executable
 (name test_nontrivial_dom)
 (modules test_nontrivial_dom)
 (libraries graph))

;; Rules for the test_saps test

(rule
 (with-stdout-to
  test_saps.output
  (run ./test_saps.exe)))

(rule
 (alias runtest)
 (action
  (progn
   (diff test_saps.expected test_saps.output)
   (echo "test_saps: all tests succeeded.\n"))))

(executable
 (name test_saps)
 (modules test_saps)
 (libraries graph))

;; Rules for the test_cycles test

(rule
 (with-stdout-to
  test_cycles.output
  (run ./test_cycles.exe)))

(rule
 (alias runtest)
 (action
  (progn
   (diff test_cycles.expected test_cycles.output)
   (echo "test_cycles: all tests succeeded.\n"))))

(executable
 (name test_cycles)
 (modules test_cycles)
 (libraries graph))

;; Rules for the weak topological test

(rule
 (with-stdout-to
  test_wto.output
  (run ./test_wto.exe)))

(rule
 (alias runtest)
 (action
  (progn
   (diff test_wto.expected test_wto.output)
   (echo "test_wto: all tests succeeded.\n"))))

(executable
 (name test_wto)
 (modules test_wto)
 (libraries graph))

;; Rules for the basic test

(rule
 (with-stdout-to
  basic.output
  (run ./basic.exe)))

(rule
 (alias runtest)
 (action
  (progn
   (diff basic.expected basic.output)
   (echo "basic: all tests succeeded.\n"))))

(executable
 (name basic)
 (modules basic)
 (libraries graph))

;; Rules for the test_components test

(rule
 (with-stdout-to
  test_components.output
  (run ./test_components.exe)))

(rule
 (alias runtest)
 (action
  (progn
   (diff test_components.expected test_components.output)
   (echo "test_components: all tests succeeded.\n"))))

(executable
 (name test_components)
 (modules test_components)
 (libraries graph))

;; rules for the dot test

(rule
 (deps dot.dot)
 (action
  (with-stdout-to
   dot.output
   (run ./dot.exe %{deps}))))

(rule
 (alias runtest)
 (action
  (progn
   (diff dot.expected dot.output)
   (echo "dot: all tests succeeded.\n"))))

(executable
 (name dot)
 (modules dot)
 (libraries graph))

;; rules for the running the benchmark

(rule
 (alias bench)
 (action
  (run ./bench.exe)))

(executable
 (name bench)
 (modules bench)
 (libraries graph unix))