-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CR: move new tests to tests-jsoo/lib-effects
- Loading branch information
1 parent
227f261
commit 62d8cc8
Showing
6 changed files
with
66 additions
and
21 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters