Skip to content

Commit

Permalink
quotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Heuzard committed May 27, 2024
1 parent 1a37d76 commit 0f2342a
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 117 deletions.
19 changes: 13 additions & 6 deletions testsuite/external.ml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ let () = test "SyntaxFlag"
~options:[`use_ocamlfind; `package "camlp4.macro"; `syntax "camlp4o"]
~requirements:(package_exists "camlp4.macro")
~description:"-syntax for ocamlbuild"
~tree:[T.f "dummy.ml" ~content:"IFDEF TEST THEN\nprint_endline \"Hello\";;\nENDIF;;"]
~tree:[T.f "dummy.ml" ~content:
{|
IFDEF TEST THEN
print_endline "Hello";;
ENDIF;;
|}]
~matching:[M.f "dummy.native"]
~targets:("dummy.native",[]) ();;

Expand Down Expand Up @@ -34,11 +39,13 @@ let () = test "SubtoolOptions"
~requirements:(req_and (package_exists "menhirLib") (package_exists "camlp4"))
~options:[`use_ocamlfind; `use_menhir; `tags ["package(camlp4.fulllib)"]]
~tree:[T.f "parser.mly"
~content:"%{ %}\n\
%token DUMMY\n\
%start<Camlp4.PreCast.Syntax.Ast.expr option> test\n\
%%\n\
test: DUMMY {None}"]
~content:{|
%{ %}
%token DUMMY
%start<Camlp4.PreCast.Syntax.Ast.expr option> test
%%
test: DUMMY {None}
|}]
~matching:[M.f "parser.native"; M.f "parser.byte"]
~targets:("parser.native",["parser.byte"])
();;
Expand Down
Loading

0 comments on commit 0f2342a

Please sign in to comment.