Remove testsuite special casing for now
authorStephane Glondu <steph@glondu.net>
Mon, 21 Oct 2013 14:57:01 +0000 (16:57 +0200)
committerStephane Glondu <steph@glondu.net>
Mon, 21 Oct 2013 14:57:01 +0000 (16:57 +0200)
debian/rules

index 4da66787eb6858e0c7763c710b20f2b15cfa4dba..3940b254659cbe208a5d7886f593cb27a57a37fd 100755 (executable)
@@ -286,37 +286,7 @@ SLOW_ARCHITECTURES := hurd-i386 mips mipsel powerpc sparc armel
 .PHONY: override_dh_auto_test
 override_dh_auto_test:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
-# The test suite needs the just-compiled ocaml to be installed, so we
-# rebuild a version with a local prefix and install it to run the
-# tests; see:
-#   http://caml.inria.fr/mantis/view.php?id=5483
 ifeq (,$(DEB_TEST_BUILD_PREFIX))
-       rm -rf $(TESTDIR)
-       mkdir $(TESTDIR)
-       tar -C $(TESTDIR) -xf $(UPSTREAM_TARBALL)
-       tar -c --files-from=debian/MANIFEST | tar -C $(TESTDIR)/ocaml-* -x
-       cp -a debian/patches $(TESTDIR)/ocaml-*/debian
-       cd $(TESTDIR)/ocaml-* \
-         && QUILT_PATCHES=debian/patches quilt push -a \
-         && $(TESTRULES) build \
-         && dh_installdirs \
-         && $(TESTRULES) install-stamp \
-         && cp -a debian/tmp/* ..
-# Broken test (see http://caml.inria.fr/mantis/view.php?id=5648)
-       rm -f $(TESTDIR)/ocaml-*/testsuite/tests/lib-threads/test4.ml
-# Thread tests seem to hang on buildds, but cannot reproduce elsewhere
-ifneq (,$(findstring kfreebsd,$(DEB_BUILD_ARCH)))
-       rm -rf $(TESTDIR)/ocaml-*/testsuite/tests/lib-threads
-endif
-# Tests that take too much time
-ifneq (,$(filter $(DEB_BUILD_ARCH),$(SLOW_ARCHITECTURES)))
-       for t in \
-         misc/nucleic.ml \
-         misc-unsafe/almabench.ml \
-         misc-unsafe/fft.ml \
-       ; do rm -rf $(TESTDIR)/ocaml-*/testsuite/tests/$$t; done
-endif
-       cd $(TESTDIR)/ocaml-*/testsuite \
-         && make all
+       cd testsuite && make all
 endif
 endif