Merge pull request #347 from rgrinberg/ocaml-syntax-tests

Simple test for the ocaml syntax for jbuild files
This commit is contained in:
François Bobot 2017-12-04 10:12:16 +01:00 committed by GitHub
commit b957e7d2dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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