]> git.proxmox.com Git - proxmox-spamassassin.git/commitdiff
buildsys: call 'make test' in build target
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 20 Jan 2020 18:37:28 +0000 (19:37 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 Jan 2020 08:25:22 +0000 (09:25 +0100)
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@proxmox.com>
debian/rules

index 24da61b1642d0347b839b873d0bd14dcee92a6c1..9e4a7199373e151a2df7733bef648bc57f7f6ae3 100755 (executable)
@@ -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