[fail2ban] Add %check to run testcases
Orion Poplawski
orion at fedoraproject.org
Tue Jan 15 00:04:27 UTC 2013
commit d1c947a7196463467cd8674676fc3056ffac9307
Author: Orion Poplawski <orion at nwra.com>
Date: Mon Jan 14 17:04:14 2013 -0700
Add %check to run testcases
fail2ban.spec | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/fail2ban.spec b/fail2ban.spec
index 1e51370..92ec5f4 100644
--- a/fail2ban.spec
+++ b/fail2ban.spec
@@ -15,6 +15,8 @@ Patch7: asyncserver.start_selinux.patch
Patch8: fail2ban-0.8.7.1-notmp.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: python-devel >= 2.3
+# For testcases
+BuildRequires: python-inotify
BuildArch: noarch
Requires: iptables, tcp_wrappers, shorewall, gamin-python
Requires: python-inotify
@@ -53,6 +55,9 @@ install -d -m 0755 %{buildroot}%{_localstatedir}/lib/fail2ban/
mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/tmpfiles.d/fail2ban.conf
+%check
+./fail2ban-testcases
+
%clean
rm -rf %{buildroot}
More information about the scm-commits
mailing list