Only run tests if they are enabled
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Sun, 10 Oct 2021 09:18:53 +0000 (11:18 +0200)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Sun, 10 Oct 2021 09:18:53 +0000 (11:18 +0200)
debian/rules

index b3fd6ac92b1d6c355a5df37efe5053bbf7820c9f..1bad45c183285adcd95742bd4d0c2aae8f37dd0d 100755 (executable)
@@ -18,6 +18,10 @@ ifneq (,$(filter $(DEB_BUILD_ARCH),s390x powerpc powerpc64 riscv64))
   RUN_TESTS=
 else
   RUN_TESTS=-DBUILD_global_tests=ON -DBUILD_TESTS=ON
+
+override_dh_auto_test:
+       make -C obj-${DEB_HOST_GNU_TYPE} tests
+
 endif
 
 override_dh_auto_configure:
@@ -31,8 +35,5 @@ override_dh_auto_configure:
        -DPCL_DISABLE_GPU_TESTS=ON \
        $(BUILD_DOC) $(RUN_TESTS)
 
-override_dh_auto_test:
-       make -C obj-${DEB_HOST_GNU_TYPE} tests
-
 %:
        dh  $@ $(PARALLEL)