Skip native tests on bytecode-only systems
authorXimin Luo <infinity0@debian.org>
Fri, 28 Oct 2016 00:11:59 +0000 (02:11 +0200)
committerXimin Luo <infinity0@debian.org>
Fri, 28 Oct 2016 00:11:59 +0000 (02:11 +0200)
debian/changelog
debian/patches/0009-Skip-native-tests.patch [new file with mode: 0644]
debian/patches/series

index 2dd76d0945ad8d978895944fa2f5b4928bad909d..55608ba02c78a01e209578625934dad169c75c8f 100644 (file)
@@ -1,6 +1,7 @@
 ocaml (4.03.0-2) UNRELEASED; urgency=medium
 
   * Add native compilers for ppc64, ppc64el, s390x.
+  * Skip native tests on bytecode-only systems.
 
  -- Ximin Luo <infinity0@debian.org>  Fri, 28 Oct 2016 00:08:02 +0200
 
diff --git a/debian/patches/0009-Skip-native-tests.patch b/debian/patches/0009-Skip-native-tests.patch
new file mode 100644 (file)
index 0000000..a265799
--- /dev/null
@@ -0,0 +1,29 @@
+--- a/testsuite/tests/lib-dynlink-csharp/Makefile
++++ b/testsuite/tests/lib-dynlink-csharp/Makefile
+@@ -30,7 +30,9 @@
+ prepare:
+       @if $(SUPPORTS_SHARED_LIBRARIES); then \
+          $(OCAMLC) -c plugin.ml && \
+-         $(OCAMLOPT) -o plugin.cmxs -shared plugin.ml; \
++         if $(BYTECODE_ONLY) ; then : ; else \
++           $(OCAMLOPT) -o plugin.cmxs -shared plugin.ml; \
++         fi; \
+        fi
+ .PHONY: bytecode
+--- a/testsuite/tests/link-test/Makefile
++++ b/testsuite/tests/link-test/Makefile
+@@ -15,6 +15,13 @@
+ #**************************************************************************
+ default:
++      @if $(BYTECODE_ONLY) ; then \
++        echo " ... testing 'test.reference': => skipped"; \
++      else \
++        $(MAKE) native; \
++      fi
++
++native:
+       printf " ... testing 'test.reference':"
+       @$(OCAMLOPT) -c submodule.ml
+       @$(OCAMLOPT) -c aliases.ml
index a7ef777adf9d95d968d11064f9b9a086be10b5c6..2f5b2f10d3007318edd88523b795ce55e50cca17 100644 (file)
@@ -5,3 +5,4 @@
 0005-Avoid-multiple-declarations-in-generated-.c-files-in.patch
 0006-Embed-bytecode-in-C-object-when-using-custom.patch
 0008-Native-backtraces-don-t-work-on-powerpc-and-sparc.patch
+0009-Skip-native-tests.patch