From: Jakub Bogusz Date: Tue, 21 Aug 2018 14:52:37 +0000 (+0200) Subject: - added system_tests bcond, run just unit tests by default X-Git-Tag: auto/th/bind-9.12.2.P1-2~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?p=packages%2Fbind.git;a=commitdiff_plain;h=365593af25a851ccdaf3d43110d05646d1fd1eb7 - added system_tests bcond, run just unit tests by default --- diff --git a/bind.spec b/bind.spec index 84c6847..bd1df26 100644 --- a/bind.spec +++ b/bind.spec @@ -11,7 +11,8 @@ %bcond_without sql # SQL (MySQL+PostgreSQL) DLZ support %bcond_without lmdb # LMDB storage support for addzone zones %bcond_without static_libs # static libraries -%bcond_without tests # perform tests +%bcond_with system_tests # system tests (require root to configure localhost IPs) +%bcond_without tests # unit tests %bcond_with edns_cli # ability to use edns-client-subnet in dig %bcond_with hip # HIP RR support %bcond_with seccomp # libseccomp system call filtering @@ -434,7 +435,13 @@ cp -f /usr/share/automake/config.* . %{?with_hip:%{__make} -C bind-hip} -%{?with_tests:%{__make} test-force} +%if %{with tests} +%if %{with system_tests} +%{__make} test-force +%else +sh unit/unittest.sh +%endif +%endif %install rm -rf $RPM_BUILD_ROOT