Skip to content

Commit

Permalink
CR: move new tests to tests-jsoo/lib-effects
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed Dec 29, 2024
1 parent 227f261 commit 62d8cc8
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 21 deletions.
40 changes: 40 additions & 0 deletions compiler/tests-jsoo/lib-effects/double-translation/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
(env
(with-effects
(flags
(:standard -w -38))
(js_of_ocaml
(flags
(:standard --effects=double-translation))
;; separate compilation doesn't yet work when using
;; '--effect=double-translation' since Dune doesn't know it should compile a
;; different version of the dependencies.
;; TODO: remove once support in ocaml/dune#11222 is released.
(compilation_mode whole_program)))
(_
(flags
(:standard -w -38))
(js_of_ocaml
(flags
(:standard --effects=double-translation))
;; separate compilation doesn't yet work when using
;; '--effect=double-translation' since Dune doesn't know it should compile a
;; different version of the dependencies.
;; TODO: remove once support in ocaml/dune#11222 is released.
(compilation_mode whole_program))))

(copy_files# ../*.ml)

(tests
(build_if
(>= %{ocaml_version} 5))
(names
assume_no_perform
assume_no_perform_unhandled
assume_no_perform_nested_handler)
(libraries js_of_ocaml)
(action
(ignore-outputs
(with-accepted-exit-codes
0
(run node %{test}))))
(modes js))
25 changes: 25 additions & 0 deletions compiler/tests-jsoo/lib-effects/dune
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,30 @@
(>= %{ocaml_version} 5))
(inline_tests
(modes js wasm best))
(modules
(:standard
\
assume_no_perform
assume_no_perform_unhandled
assume_no_perform_nested_handler))
(preprocess
(pps ppx_expect)))

(tests
(build_if
(>= %{ocaml_version} 5))
(names
assume_no_perform
assume_no_perform_unhandled
assume_no_perform_nested_handler)
(modules
assume_no_perform
assume_no_perform_unhandled
assume_no_perform_nested_handler)
(libraries js_of_ocaml)
(action
(ignore-outputs
(with-accepted-exit-codes
0
(run node %{test}))))
(modes js wasm))
22 changes: 1 addition & 21 deletions compiler/tests-ocaml/lib-effects/dune
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@
test_lazy
used_cont)
(modules
(:standard
\
unhandled_unlinked
assume_no_perform
assume_no_perform_unhandled
assume_no_perform_nested_handler))
(:standard \ unhandled_unlinked))
(modes js wasm))

(tests
Expand All @@ -54,18 +49,3 @@
(run node %{test}))
(run cat)))
(modes js wasm))

(tests
(build_if
(>= %{ocaml_version} 5))
(names
assume_no_perform
assume_no_perform_unhandled
assume_no_perform_nested_handler)
(libraries js_of_ocaml)
(action
(ignore-outputs
(with-accepted-exit-codes
0
(run node %{test}))))
(modes js wasm))

0 comments on commit 62d8cc8

Please sign in to comment.