dev-lang/ocaml: add tests support
authorAlexis Ballier <aballier@gentoo.org>
Thu, 3 Mar 2016 10:58:01 +0000 (11:58 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Thu, 3 Mar 2016 10:58:10 +0000 (11:58 +0100)
Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
dev-lang/ocaml/ocaml-4.03.0_beta1.ebuild

index 80342654783102211ba4f4a45b120e2d6d44f616..0aea93c39f97b7d0d806b1a3fa62c4d895bae177 100644 (file)
@@ -91,6 +91,14 @@ src_compile() {
        fi
 }
 
+src_test() {
+       if use ocamlopt ; then
+               emake -j1 tests
+       else
+               ewarn "${PN} testsuite requires ocamlopt useflag"
+       fi
+}
+
 src_install() {
        emake BINDIR="${ED}"/usr/bin \
                LIBDIR="${ED}"/usr/$(get_libdir)/ocaml \