debuild: Do not parallelize tests
authorFlorian Schmidt <github@flosch.eu>
Mon, 6 Mar 2017 16:30:55 +0000 (17:30 +0100)
committerFlorian Schmidt <florian.schmidt@neclab.eu>
Mon, 6 Mar 2017 16:45:28 +0000 (17:45 +0100)
The tests in the test suite are not parallelizable and will fail if run
in parallel. Make the test step non-parallel to fix this issue.

debian/rules

index 215bf45..80f4642 100755 (executable)
@@ -11,6 +11,10 @@ UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -rne "s,^Version: ([0-9.]+
 %:
        dh $@ --buildsystem=cmake --parallel
 
+# tests cannot be run in parallel
+override_dh_auto_test:
+       dh_auto_test -O--buildsystem=cmake -O--no-parallel
+
 # FIXME: LLVM_DEFINITIONS is broken somehow in LLVM cmake upstream
 override_dh_auto_configure:
        dh_auto_configure -- -DREVISION_LAST=$(UPSTREAM_VERSION) -DREVISION=$(UPSTREAM_VERSION) -DLLVM_DEFINITIONS="-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS"