Add test case for ocamllex + jbuild bug report

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
Rudi Grinberg 2018-08-18 09:51:40 +03:00
parent 6045568e9a
commit bb2bf59ff1
4 changed files with 29 additions and 0 deletions

View File

@ -570,6 +570,14 @@
test-cases/ocamldep-multi-stanzas
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
(alias
(name ocamllex-jbuild)
(deps (package dune) (source_tree test-cases/ocamllex-jbuild))
(action
(chdir
test-cases/ocamllex-jbuild
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
(alias
(name odoc)
(deps (package dune) (source_tree test-cases/odoc))
@ -875,6 +883,7 @@
(alias ocaml-config-macro)
(alias ocaml-syntax)
(alias ocamldep-multi-stanzas)
(alias ocamllex-jbuild)
(alias odoc)
(alias odoc-unique-mlds)
(alias output-obj)
@ -970,6 +979,7 @@
(alias ocaml-config-macro)
(alias ocaml-syntax)
(alias ocamldep-multi-stanzas)
(alias ocamllex-jbuild)
(alias output-obj)
(alias package-dep)
(alias path-variables)

View File

@ -0,0 +1,8 @@
{}
rule f = parse
| _ { () }
{
print_endline "foo"
}

View File

@ -0,0 +1,5 @@
(ocamllex
((modules (foo))))
(executable
((name foo)))

View File

@ -0,0 +1,6 @@
$ dune exec ./foo.exe
File "jbuild", line 2, characters 3-10:
((modules (foo))))
^^^^^^^
Error: S-expression of the form (<name> <values>...) expected
[1]