]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
distro/rpm: run make check during pkgbuild
authorTomas Krizek <tomas.krizek@nic.cz>
Wed, 27 Jun 2018 14:26:40 +0000 (16:26 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Thu, 28 Jun 2018 11:48:46 +0000 (13:48 +0200)
distro/rpm/knot-resolver.spec

index a447d6972da533dac21a953bb6448b38d7ff744d..7f8e388749e213d92d01553599d5c63ba2bb16fd 100644 (file)
@@ -119,6 +119,9 @@ rm -v scripts/bootstrap-depends.sh
 make doc
 %endif
 
+%check
+make %{?_smp_mflags} check
+
 %install
 %make_install %{build_flags}
 
@@ -163,10 +166,6 @@ install -m 0750 -d %{buildroot}%{_localstatedir}/cache/knot-resolver
 # remove module with unsatisfied dependencies
 rm -r %{buildroot}%{_libdir}/kdns_modules/{http,http.lua}
 
-%check
-# check-config requires installed version of kresd, do not attempt to run that
-LD_PRELOAD=lib/libkres.so make check-unit %{build_flags} LDFLAGS="%{__global_ldflags} -ldl"
-
 %pre
 getent group knot-resolver >/dev/null || groupadd -r knot-resolver
 getent passwd knot-resolver >/dev/null || useradd -r -g knot-resolver -d %{_sysconfdir}/knot-resolver -s /sbin/nologin -c "Knot DNS Resolver" knot-resolver