summaryrefslogtreecommitdiff
path: root/testsuite/tests/tool-command-line/test-unknown-file.ml
blob: 148220e5cee858b89fd95b40ec61350d5646e2db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
(* TEST

readonly_files = "unknown-file"

* setup-ocamlc.byte-build-env
compiler_output = "compiler-output.raw"
** ocamlc.byte
all_modules = ""
flags = "unknown-file"
ocamlc_byte_exit_status = "2"
*** script
script = "grep 'know what to do with unknown-file' compiler-output.raw"
output = "compiler-output"
**** check-ocamlc.byte-output
compiler_output = "compiler-output"

* setup-ocamlopt.byte-build-env
compiler_output = "compiler-output.raw"
** ocamlopt.byte
all_modules = ""
flags = "unknown-file"
ocamlopt_byte_exit_status = "2"
*** script
script = "grep 'know what to do with unknown-file' compiler-output.raw"
output = "compiler-output"
**** check-ocamlopt.byte-output
compiler_output = "compiler-output"

*)

(*
  This file is just a test driver, the test does not contain any
  real OCaml code
*)