From d1c947a7196463467cd8674676fc3056ffac9307 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Jan 15 2013 00:04:14 +0000 Subject: Add %check to run testcases --- 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}