From 5b0ef635ace732c4cef2fce66a4d356e2b321692 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Wed, 13 Dec 2017 01:30:29 +0800 Subject: [PATCH] Update opam file for tests Add test commands and test dependencies --- jbuilder.opam | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jbuilder.opam b/jbuilder.opam index 375104f4..d57219e6 100644 --- a/jbuilder.opam +++ b/jbuilder.opam @@ -10,6 +10,9 @@ build: [ ["./boot.exe" "--subst"] {pinned} ["./boot.exe" "-j" jobs] ] +build-test: [ + ["./_build/default/bin/main.exe" "runtest" "-p" name "-j" jobs] +] depends: [ # ocamlfind is not mandatory to build packages using # jbuilder. However if it is present jbuilder will use it. Making @@ -18,5 +21,10 @@ depends: [ # it is only a runtime dependency so that reinstalling ocamlfind # doesn't resintall jbuilder "ocamlfind" {build} + "menhir" {test} + "reason" {test} + "ocaml-migrate-parsetree" {test} + "odoc" {test} + "js_of_ocaml-compiler" {test} ] available: [ ocaml-version >= "4.02.3" ]