Skip to content

Commit

Permalink
Rewrite the typing-missing-cmi test to use ocamltest's subdirectories…
Browse files Browse the repository at this point in the history
… variable
  • Loading branch information
shindere committed Apr 8, 2021
1 parent a7cfd58 commit 92327bd
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions testsuite/tests/typing-missing-cmi/test.ml
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
(* TEST
readonly_files = "a.ml b.ml c.ml main.ml main_ok.ml"
subdirectories = "subdir"
* setup-ocamlc.byte-build-env
** script
script = "mkdir -p subdir"
*** script
script = "cp ${test_source_directory}/subdir/m.ml subdir"
**** ocamlc.byte
** ocamlc.byte
module = "subdir/m.ml"
***** ocamlc.byte
*** ocamlc.byte
flags = "-I subdir"
module = "a.ml"
****** ocamlc.byte
**** ocamlc.byte
module = "b.ml"
******* ocamlc.byte
***** ocamlc.byte
module = "c.ml"
******** ocamlc.byte
****** ocamlc.byte
flags = ""
module = "main_ok.ml"
********* ocamlc.byte
******* ocamlc.byte
module = "main.ml"
ocamlc_byte_exit_status = "2"
********** check-ocamlc.byte-output
******** check-ocamlc.byte-output
*)

0 comments on commit 92327bd

Please sign in to comment.