diff --git a/jss.spec b/jss.spec index 6bf6884..e65db2b 100644 --- a/jss.spec +++ b/jss.spec @@ -28,6 +28,15 @@ Source: https://github.com/dogtagpki/%{name}/archive/v%{version}%{?_phas # > jss-VERSION-RELEASE.patch # Patch: jss-VERSION-RELEASE.patch +################################################################################ +# Build Options +################################################################################ + +# By default the build will not execute unit tests unless --with test +# option is specified. + +%bcond_with test + ################################################################################ # Build Dependencies ################################################################################ @@ -117,7 +126,10 @@ modutil -dbdir /etc/pki/nssdb -chkfips true | grep -q enabled && export FIPS_ENA cd %{_vpath_builddir} %{__make} all %{__make} javadoc + +%if %{with test} ctest --output-on-failure +%endif ################################################################################ %install @@ -162,6 +174,7 @@ cp -p *.txt $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} %changelog * Wed May 26 2021 Dogtag PKI Team - 4.9.0-0.2 - Drop git dependency +- Disable unit tests by default * Tue May 18 2021 Dogtag PKI Team - 4.9.0-0.1 - Rebase to JSS 4.9.0-alpha1