ocamltest: add variables to pass flags to ocamllex and ocamlyacc

master
Sébastien Hinderer 2018-03-01 16:44:54 +01:00
parent 9bd3ab2323
commit 966f7edb63
2 changed files with 12 additions and 0 deletions

View File

@ -92,12 +92,18 @@ let module_ = make ("module",
let modules = make ("modules",
"Other modules of the test")
let ocamllex_flags = make ("ocamllex_flags",
"Flags passed to ocamllex")
let ocamlopt_flags = make ("ocamlopt_flags",
"Flags passed to ocamlopt.byte and ocamlopt.opt")
let ocamlopt_default_flags = make ("ocamlopt_default_flags",
"Flags passed by default to ocamlopt.byte and ocamlopt.opt")
let ocamlyacc_flags = make ("ocamlyacc_flags",
"Flags passed to ocamlyacc")
let ocaml_exit_status = make ("ocaml_exit_status",
"Expected exit status of ocaml")
@ -159,4 +165,6 @@ let _ = List.iter register_variable
ocamlopt_opt_exit_status;
ocamlrunparam;
os_type;
ocamllex_flags;
ocamlyacc_flags;
]

View File

@ -50,9 +50,13 @@ val modules : Variables.t
val ocamlc_flags : Variables.t
val ocamlc_default_flags : Variables.t
val ocamllex_flags : Variables.t
val ocamlopt_flags : Variables.t
val ocamlopt_default_flags : Variables.t
val ocamlyacc_flags : Variables.t
val ocaml_exit_status : Variables.t
val ocamlc_byte_exit_status : Variables.t