[Libguestfs] [libnbd PATCH] ocaml: Fix tests when ocamlopt is not available

Pino Toscano ptoscano at redhat.com
Mon Sep 23 15:35:09 UTC 2019


Fixes commit 42cb77be8c29de57f2f523688ea375762715d23f.
---
 ocaml/tests/Makefile.am | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ocaml/tests/Makefile.am b/ocaml/tests/Makefile.am
index dfb23ff..56519c0 100644
--- a/ocaml/tests/Makefile.am
+++ b/ocaml/tests/Makefile.am
@@ -100,7 +100,10 @@ endif
 
 TESTS_ENVIRONMENT = LIBNBD_DEBUG=1 OCAMLRUNPARAM=b
 LOG_COMPILER = $(top_builddir)/run
-TESTS = $(tests_bc) $(tests_opt)
+TESTS = $(tests_bc)
+if HAVE_OCAMLOPT
+TESTS += $(tests_opt)
+endif
 
 endif HAVE_NBDKIT
 endif HAVE_OCAML
-- 
2.21.0




More information about the Libguestfs mailing list