this repo has no description
1(executable
2 (name node_test)
3 (modes byte)
4 (modules node_test)
5 (link_flags (-linkall))
6 (libraries
7 fpath
8 js_of_ocaml
9 js_top_worker-web
10 js_of_ocaml-toplevel
11 js_top_worker
12 logs
13 logs.fmt
14 findlib.top
15 js_of_ocaml-lwt
16 zarith_stubs_js))
17
18(rule
19 (targets node_test.js)
20 (action
21 (run
22 %{bin:js_of_ocaml}
23 --toplevel
24 --pretty
25 --no-cmis
26 --effects=cps
27 --debuginfo
28 --target-env=nodejs
29 +toplevel.js
30 +dynlink.js
31 +bigstringaf/runtime.js
32 +zarith_stubs_js/runtime.js
33 %{lib:js_top_worker:stubs.js}
34 %{dep:node_test.bc}
35 -o
36 %{targets})))
37
38(rule
39 (targets
40 (dir _opam))
41 (action
42 (run jtw opam base ppx_deriving.show ppx_deriving.eq ppx_deriving.runtime --no-worker -o _opam)))
43
44(rule
45 (deps _opam)
46 (action
47 (with-outputs-to
48 node_test.out
49 (run
50 node
51 --stack-size=2000
52 -r
53 ./%{dep:import_scripts.js}
54 %{dep:node_test.js}))))
55
56(rule
57 (alias runtest)
58 (deps _opam)
59 (action
60 (diff node_test.expected node_test.out)))
61
62; Directive test executable
63(executable
64 (name node_directive_test)
65 (modes byte)
66 (modules node_directive_test)
67 (link_flags (-linkall))
68 (libraries
69 str
70 fpath
71 js_of_ocaml
72 js_top_worker-web
73 js_of_ocaml-toplevel
74 js_top_worker
75 logs
76 logs.fmt
77 findlib.top
78 js_of_ocaml-lwt
79 zarith_stubs_js))
80
81(rule
82 (targets node_directive_test.js)
83 (action
84 (run
85 %{bin:js_of_ocaml}
86 --toplevel
87 --pretty
88 --no-cmis
89 --effects=cps
90 --debuginfo
91 --target-env=nodejs
92 +toplevel.js
93 +dynlink.js
94 +bigstringaf/runtime.js
95 +zarith_stubs_js/runtime.js
96 %{lib:js_top_worker:stubs.js}
97 %{dep:node_directive_test.bc}
98 -o
99 %{targets})))
100
101(rule
102 (deps _opam)
103 (action
104 (with-outputs-to
105 node_directive_test.out
106 (run
107 node
108 --stack-size=2000
109 -r
110 ./%{dep:import_scripts.js}
111 %{dep:node_directive_test.js}))))
112
113(rule
114 (alias runtest)
115 (deps _opam)
116 (action
117 (diff node_directive_test.expected node_directive_test.out)))
118
119; PPX test executable
120; Note: ppx_deriving is NOT statically linked - it's dynamically loaded via #require
121(executable
122 (name node_ppx_test)
123 (modes byte)
124 (modules node_ppx_test)
125 (link_flags (-linkall))
126 (libraries
127 str
128 fpath
129 js_of_ocaml
130 js_top_worker-web
131 js_of_ocaml-toplevel
132 js_top_worker
133 logs
134 logs.fmt
135 findlib.top
136 js_of_ocaml-lwt
137 zarith_stubs_js))
138
139(rule
140 (targets node_ppx_test.js)
141 (action
142 (run
143 %{bin:js_of_ocaml}
144 --toplevel
145 --pretty
146 --no-cmis
147 --effects=cps
148 --debuginfo
149 --target-env=nodejs
150 +toplevel.js
151 +dynlink.js
152 +bigstringaf/runtime.js
153 +zarith_stubs_js/runtime.js
154 %{lib:js_top_worker:stubs.js}
155 %{dep:node_ppx_test.bc}
156 -o
157 %{targets})))
158
159(rule
160 (deps _opam)
161 (action
162 (with-outputs-to
163 node_ppx_test.out
164 (run
165 node
166 --stack-size=2000
167 -r
168 ./%{dep:import_scripts.js}
169 %{dep:node_ppx_test.js}))))
170
171(rule
172 (alias runtest)
173 (deps _opam)
174 (action
175 (diff node_ppx_test.expected node_ppx_test.out)))
176
177; Environment test executable
178(executable
179 (name node_env_test)
180 (modes byte)
181 (modules node_env_test)
182 (link_flags (-linkall))
183 (libraries
184 str
185 fpath
186 js_of_ocaml
187 js_top_worker-web
188 js_of_ocaml-toplevel
189 js_top_worker
190 logs
191 logs.fmt
192 findlib.top
193 js_of_ocaml-lwt
194 zarith_stubs_js))
195
196(rule
197 (targets node_env_test.js)
198 (action
199 (run
200 %{bin:js_of_ocaml}
201 --toplevel
202 --pretty
203 --no-cmis
204 --effects=cps
205 --debuginfo
206 --target-env=nodejs
207 +toplevel.js
208 +dynlink.js
209 +bigstringaf/runtime.js
210 +zarith_stubs_js/runtime.js
211 %{lib:js_top_worker:stubs.js}
212 %{dep:node_env_test.bc}
213 -o
214 %{targets})))
215
216(rule
217 (deps _opam)
218 (action
219 (with-outputs-to
220 node_env_test.out
221 (run
222 node
223 --stack-size=2000
224 -r
225 ./%{dep:import_scripts.js}
226 %{dep:node_env_test.js}))))
227
228(rule
229 (alias runtest)
230 (deps _opam)
231 (action
232 (diff node_env_test.expected node_env_test.out)))
233
234; MIME output test executable
235(executable
236 (name node_mime_test)
237 (modes byte)
238 (modules node_mime_test)
239 (link_flags (-linkall))
240 (libraries
241 str
242 fpath
243 js_of_ocaml
244 js_top_worker-web
245 js_of_ocaml-toplevel
246 js_top_worker
247 logs
248 logs.fmt
249 findlib.top
250 js_of_ocaml-lwt
251 zarith_stubs_js))
252
253(rule
254 (targets node_mime_test.js)
255 (action
256 (run
257 %{bin:js_of_ocaml}
258 --toplevel
259 --pretty
260 --no-cmis
261 --effects=cps
262 --debuginfo
263 --target-env=nodejs
264 +toplevel.js
265 +dynlink.js
266 +bigstringaf/runtime.js
267 +zarith_stubs_js/runtime.js
268 %{lib:js_top_worker:stubs.js}
269 %{dep:node_mime_test.bc}
270 -o
271 %{targets})))
272
273(rule
274 (deps _opam)
275 (action
276 (with-outputs-to
277 node_mime_test.out
278 (run
279 node
280 --stack-size=2000
281 -r
282 ./%{dep:import_scripts.js}
283 %{dep:node_mime_test.js}))))
284
285(rule
286 (alias runtest)
287 (deps _opam)
288 (action
289 (diff node_mime_test.expected node_mime_test.out)))
290
291; Cell dependency test executable
292(executable
293 (name node_dependency_test)
294 (modes byte)
295 (modules node_dependency_test)
296 (link_flags (-linkall))
297 (libraries
298 str
299 fpath
300 js_of_ocaml
301 js_top_worker-web
302 js_of_ocaml-toplevel
303 js_top_worker
304 logs
305 logs.fmt
306 findlib.top
307 js_of_ocaml-lwt
308 zarith_stubs_js))
309
310(rule
311 (targets node_dependency_test.js)
312 (action
313 (run
314 %{bin:js_of_ocaml}
315 --toplevel
316 --pretty
317 --no-cmis
318 --effects=cps
319 --debuginfo
320 --target-env=nodejs
321 +toplevel.js
322 +dynlink.js
323 +bigstringaf/runtime.js
324 +zarith_stubs_js/runtime.js
325 %{lib:js_top_worker:stubs.js}
326 %{dep:node_dependency_test.bc}
327 -o
328 %{targets})))
329
330(rule
331 (deps _opam)
332 (action
333 (with-outputs-to
334 node_dependency_test.out
335 (run
336 node
337 --stack-size=2000
338 -r
339 ./%{dep:import_scripts.js}
340 %{dep:node_dependency_test.js}))))
341
342(rule
343 (alias runtest)
344 (deps _opam)
345 (action
346 (diff node_dependency_test.expected node_dependency_test.out)))
347
348; Incremental output test executable
349(executable
350 (name node_incremental_test)
351 (modes byte)
352 (modules node_incremental_test)
353 (link_flags (-linkall))
354 (libraries
355 str
356 fpath
357 js_of_ocaml
358 js_top_worker-web
359 js_of_ocaml-toplevel
360 js_top_worker
361 logs
362 logs.fmt
363 findlib.top
364 js_of_ocaml-lwt
365 zarith_stubs_js))
366
367(rule
368 (targets node_incremental_test.js)
369 (action
370 (run
371 %{bin:js_of_ocaml}
372 --toplevel
373 --pretty
374 --no-cmis
375 --effects=cps
376 --debuginfo
377 --target-env=nodejs
378 +toplevel.js
379 +dynlink.js
380 +bigstringaf/runtime.js
381 +zarith_stubs_js/runtime.js
382 %{lib:js_top_worker:stubs.js}
383 %{dep:node_incremental_test.bc}
384 -o
385 %{targets})))
386
387(rule
388 (deps _opam)
389 (action
390 (with-outputs-to
391 node_incremental_test.out
392 (run
393 node
394 --stack-size=2000
395 -r
396 ./%{dep:import_scripts.js}
397 %{dep:node_incremental_test.js}))))
398
399(rule
400 (alias runtest)
401 (deps _opam)
402 (action
403 (diff node_incremental_test.expected node_incremental_test.out)))