Run the unit tests during check

This commit is contained in:
Morten Stevens 2014-10-10 17:54:41 +02:00
parent 8f5361bd22
commit b8d5d6429a

View File

@ -3,7 +3,7 @@
Name: pdns Name: pdns
Version: 3.4.0 Version: 3.4.0
Release: 4%{?dist} Release: 5%{?dist}
Summary: A modern, advanced and high performance authoritative-only nameserver Summary: A modern, advanced and high performance authoritative-only nameserver
Group: System Environment/Daemons Group: System Environment/Daemons
License: GPLv2 License: GPLv2
@ -169,7 +169,6 @@ BuildRequires: lmdb-devel
%description backend-lmdb %description backend-lmdb
This package contains the LMDB backend for %{name} This package contains the LMDB backend for %{name}
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .default-config-patch %patch0 -p1 -b .default-config-patch
@ -181,13 +180,16 @@ export CPPFLAGS="-DLDAP_DEPRECATED"
%configure \ %configure \
--sysconfdir=%{_sysconfdir}/%{name} \ --sysconfdir=%{_sysconfdir}/%{name} \
--disable-static \ --disable-static \
--disable-dependency-tracking \
--disable-silent-rules \
--with-modules='' \ --with-modules='' \
--with-system-polarssl \ --with-system-polarssl \
--with-lua \ --with-lua \
--with-dynmodules='%{backends}' \ --with-dynmodules='%{backends}' \
--enable-cryptopp \ --enable-cryptopp \
--enable-tools \ --enable-tools \
--enable-remotebackend-zeromq --enable-remotebackend-zeromq \
--enable-unit-tests
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
@ -205,6 +207,9 @@ chmod 600 %{buildroot}%{_sysconfdir}/%{name}/pdns.conf
# install systemd unit file # install systemd unit file
%{__install} -D -p -m 644 contrib/systemd-pdns.service %{buildroot}%{_unitdir}/%{name}.service %{__install} -D -p -m 644 contrib/systemd-pdns.service %{buildroot}%{_unitdir}/%{name}.service
%check
make -C pdns check
%pre %pre
getent group pdns >/dev/null || groupadd -r pdns getent group pdns >/dev/null || groupadd -r pdns
getent passwd pdns >/dev/null || \ getent passwd pdns >/dev/null || \
@ -318,6 +323,9 @@ exit 0
%{_libdir}/%{name}/liblmdbbackend.so %{_libdir}/%{name}/liblmdbbackend.so
%changelog %changelog
* Fri Oct 10 2014 Ruben Kerkhof <ruben@rubenkerkhof.com> - 3.4.0-5
- Run the unit tests during check
* Mon Oct 06 2014 Morten Stevens <mstevens@imt-systems.com> - 3.4.0-4 * Mon Oct 06 2014 Morten Stevens <mstevens@imt-systems.com> - 3.4.0-4
- Enable backend LMDB - Enable backend LMDB