Simple test for the ocaml syntax for jbuild files

This commit is contained in:
Rudi Grinberg 2017-12-03 20:29:44 +08:00
parent 9983b3e7bd
commit c815ea6f20
3 changed files with 19 additions and 1 deletions

View File

@ -91,4 +91,11 @@
(deps ((files_recursively_in test-cases/meta-gen)))
(action
(chdir test-cases/meta-gen
(setenv JBUILDER ${bin:jbuilder} (run ${exe:cram.exe} run.t))))))
(setenv JBUILDER ${bin:jbuilder} (run ${exe:cram.exe} run.t))))))
(alias
((name runtest)
(deps ((files_recursively_in test-cases/ocaml-syntax)))
(action
(chdir test-cases/ocaml-syntax
(setenv JBUILDER ${bin:jbuilder} (run ${exe:cram.exe} run.t))))))

View File

@ -0,0 +1,9 @@
(* -*- tuareg -*- *)
let () = Jbuild_plugin.V1.send {|
(jbuild_version 1)
(alias
((name runtest)
(action (echo "ocaml syntax"))))
|}

View File

@ -0,0 +1,2 @@
$ $JBUILDER runtest --force -j1 --root .
ocaml syntax