[pmg-devel] [PATCH spamassassin 2/9] buildsys: call 'make test' in build target

Stoiko Ivanov s.ivanov at proxmox.com
Mon Jan 20 19:37:28 CET 2020


the build target gets invoked as regular user without 'fakeroot'. Running
SpamAssassin's tests as root (or via fakeroot) leads to a
non-deterministically failing testcase ('t/spamc_optC.t') - I couldn't find
the root-cause, but running the tests as regular user did work consistently.

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 debian/rules | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 24da61b..9e4a719 100755
--- a/debian/rules
+++ b/debian/rules
@@ -39,6 +39,8 @@ build-stamp: $(QUILT_STAMPFN)
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
 
+	$(MAKE) test
+
 	touch build-stamp
 
 clean: unpatch
@@ -57,7 +59,6 @@ install-stamp:
 	dh_clean -k
 
 	# Add commands to install the package into debian/PACKAGE_NAME here
-	$(MAKE) test
 	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
 
 	# rm example local.cf
-- 
2.20.1




More information about the pmg-devel mailing list