Add --without tests option to skip tests
While rpmbuild and mock have --nocheck to disable the %check section, 'fedpkg mockbuild' lacks this convenient option. Add %bcond_without tests to allow 'fedpkg mockbuild --without tests' to not run the test suite. Disabling the test suite cuts the build time by approximately 60%, which is very useful while working on changes to the packaging.
This commit is contained in:
parent
2ed8c8c53d
commit
6bd166894f
9
git.spec
9
git.spec
@ -1,6 +1,9 @@
|
|||||||
# Pass --without docs to rpmbuild if you don't want the documentation
|
# Pass --without docs to rpmbuild if you don't want the documentation
|
||||||
%bcond_without docs
|
%bcond_without docs
|
||||||
|
|
||||||
|
# Pass --without tests to rpmbuild if you don't want to run the tests
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
%global gitexecdir %{_libexecdir}/git-core
|
%global gitexecdir %{_libexecdir}/git-core
|
||||||
|
|
||||||
# Settings for Fedora > 29 and EL > 7
|
# Settings for Fedora > 29 and EL > 7
|
||||||
@ -712,6 +715,11 @@ find %{buildroot}%{_pkgdocdir}/{howto,technical} -type f \
|
|||||||
##### #DOC
|
##### #DOC
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{without tests}
|
||||||
|
echo "*** Skipping tests"
|
||||||
|
exit 0
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with docs} && %{with linkcheck}
|
%if %{with docs} && %{with linkcheck}
|
||||||
# Test links in HTML documentation
|
# Test links in HTML documentation
|
||||||
find %{buildroot}%{_pkgdocdir} -name "*.html" -print0 | xargs -r0 linkchecker
|
find %{buildroot}%{_pkgdocdir} -name "*.html" -print0 | xargs -r0 linkchecker
|
||||||
@ -907,6 +915,7 @@ make -C contrib/credential/netrc/ testverbose
|
|||||||
%changelog
|
%changelog
|
||||||
* Fri Sep 07 2018 Todd Zullinger <tmz@pobox.com> - 2.19.0-0.5.rc2
|
* Fri Sep 07 2018 Todd Zullinger <tmz@pobox.com> - 2.19.0-0.5.rc2
|
||||||
- Fix smart-http test due to changes in cookie sort order in curl-7.61.1
|
- Fix smart-http test due to changes in cookie sort order in curl-7.61.1
|
||||||
|
- Add --without tests option to skip tests
|
||||||
|
|
||||||
* Thu Sep 06 2018 Sebastian Kisela <skisela@redhat.com> - 2.19.0-0.4.rc2
|
* Thu Sep 06 2018 Sebastian Kisela <skisela@redhat.com> - 2.19.0-0.4.rc2
|
||||||
- Move instaweb to a separate subpackage
|
- Move instaweb to a separate subpackage
|
||||||
|
Loading…
Reference in New Issue
Block a user