From cadcf070c070cbe0d36d91ed1766f12bca9a11da Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Mon, 20 Jan 2020 19:37:28 +0100 Subject: [PATCH] buildsys: call 'make test' in build target 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 --- 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