summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Hinderer <Sebastien.Hinderer@inria.fr>2021-04-08 17:06:34 +0200
committerSébastien Hinderer <Sebastien.Hinderer@inria.fr>2021-04-21 15:57:01 +0200
commit8b565ab16b868957bf7c483ca8880aea9681c213 (patch)
tree52c28924eebd0a51d89dcd154c83aff0f99a1083
parentddd910d96a115531c664cfa7a34c83523f355bd5 (diff)
downloadocaml-8b565ab16b868957bf7c483ca8880aea9681c213.tar.gz
Rewrite the typing-missing-cmi test to use ocamltest's subdirectories variable
-rw-r--r--testsuite/tests/typing-missing-cmi/test.ml19
1 files changed, 8 insertions, 11 deletions
diff --git a/testsuite/tests/typing-missing-cmi/test.ml b/testsuite/tests/typing-missing-cmi/test.ml
index a8826f9d9d..b946a8c1cb 100644
--- a/testsuite/tests/typing-missing-cmi/test.ml
+++ b/testsuite/tests/typing-missing-cmi/test.ml
@@ -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
*)