ENH: run unittests at build time

pull/808/head
Yaroslav Halchenko 2013-05-13 11:33:36 -04:00
parent e3d068fcf8
commit 2e3eb926a5
3 changed files with 13 additions and 2 deletions

6
debian/changelog vendored
View File

@ -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 <debian@onerussian.com> Mon, 13 May 2013 11:18:20 -0400
-- Yaroslav Halchenko <debian@onerussian.com> Mon, 13 May 2013 11:33:12 -0400
fail2ban (0.8.8-1+lucid0) UNRELEASED; urgency=low

2
debian/control vendored
View File

@ -2,7 +2,7 @@ Source: fail2ban
Section: net
Priority: optional
Maintainer: Yaroslav Halchenko <debian@onerussian.com>
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

7
debian/rules vendored
View File

@ -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: