From 7ce7cece5663c32ed4ee8d3564c48f0e6c228869 Mon Sep 17 00:00:00 2001 From: Wojciech Meyer Date: Mon, 14 Jan 2013 00:08:13 +0000 Subject: [PATCH] added ocamlbuild test (fix for PR#5763) . git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13232 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- ocamlbuild/testsuite/level0.ml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ocamlbuild/testsuite/level0.ml b/ocamlbuild/testsuite/level0.ml index 96b2fbd19..d488c41f4 100644 --- a/ocamlbuild/testsuite/level0.ml +++ b/ocamlbuild/testsuite/level0.ml @@ -76,4 +76,12 @@ List.iteri (fun i (content,failing_msg) -> ~tree:[T.f "_tags" ~content; T.f "dummy.ml"] ~targets:("dummy.native",[]) ()) tag_pat_msgs;; +test "SubtoolOptions" + ~description:"Options that come from tags that needs to be spliced to the subtool invocation (PR#5763)" + ~options:[`use_menhir; `use_ocamlfind;`tags["package\\(camlp4.fulllib\\)"]] + ~tree:[T.f "parser.mly" ~content:"%{\n%}\n%token DUMMY\n%start test%%test: {None}\n\n"] + ~matching:[M.f "parser.native"; M.f "parser.byte"] + ~targets:("parser.native",["parser.byte"]) + ();; + run ~root:"_test";;