]> git.pld-linux.org Git - packages/bind.git/commitdiff
- added system_tests bcond, run just unit tests by default
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 21 Aug 2018 14:52:37 +0000 (16:52 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 21 Aug 2018 14:52:37 +0000 (16:52 +0200)
bind.spec

index 84c6847fdd9933e5cf22044499158f0fbafc2fb4..bd1df264cea25080c8431d3c93f610ce872773d5 100644 (file)
--- 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
This page took 0.093424 seconds and 4 git commands to generate.