Disable unit tests by default

This commit is contained in:
Endi S. Dewata 2021-05-26 18:20:35 -05:00
parent d17adf6943
commit d09d72c0f6

View File

@ -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 <pki-devel@redhat.com> - 4.9.0-0.2
- Drop git dependency
- Disable unit tests by default
* Tue May 18 2021 Dogtag PKI Team <pki-devel@redhat.com> - 4.9.0-0.1
- Rebase to JSS 4.9.0-alpha1