From 2e3eb926a58506798faee43190895213e8cff8a3 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 13 May 2013 11:33:36 -0400 Subject: [PATCH] ENH: run unittests at build time --- debian/changelog | 6 +++++- debian/control | 2 +- debian/rules | 7 +++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 62cdc075..6d070d65 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,8 +12,12 @@ fail2ban (0.8.9-1) unstable; urgency=low roundcube-auth, sogo-auth, mysqld-auth * debian/control: - suggest system-log-daemon (Closes: #691001) + * debian/rules: + - be positive: run fail2ban's unittests at build time. Only pyinotify + was added to build-depends since gamin might still be buggy on older + Ubuntus, which would complicate backporting - -- Yaroslav Halchenko Mon, 13 May 2013 11:18:20 -0400 + -- Yaroslav Halchenko Mon, 13 May 2013 11:33:12 -0400 fail2ban (0.8.8-1+lucid0) UNRELEASED; urgency=low diff --git a/debian/control b/debian/control index 5df704a1..c0dff2fe 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: fail2ban Section: net Priority: optional Maintainer: Yaroslav Halchenko -Build-Depends: debhelper (>= 5.0.37.2), python (>= 2.5.4-1~) +Build-Depends: debhelper (>= 5.0.37.2), python (>= 2.5.4-1~), python-pyinotify Homepage: http://www.fail2ban.org Vcs-Git: git://github.com/fail2ban/fail2ban.git Vcs-Browser: http://github.com/fail2ban/fail2ban diff --git a/debian/rules b/debian/rules index f69e8930..2ece117c 100755 --- a/debian/rules +++ b/debian/rules @@ -53,6 +53,13 @@ install: build install -d $(DESTDIR)/etc/bash_completion.d install -m 644 files/bash-completion $(DESTDIR)/etc/bash_completion.d/fail2ban + # Run tests +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + ./fail2ban-testcases-all +else + : # Skip unittests due to nocheck +endif + # # Just to comply with policy 4.8 binary-arch: