Hoist and add an option for disabling %check
This commit is contained in:
parent
0dd40e4ff0
commit
105082cb42
44
krb5.spec
44
krb5.spec
@ -1,3 +1,27 @@
|
|||||||
|
%bcond_without check
|
||||||
|
%if %{without check}
|
||||||
|
%global skipcheck 1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# COPR doesn't work right with the tests. I suspect keyring issues,
|
||||||
|
# but can't actually debug, so...
|
||||||
|
%if 0%{?copr_username:1}
|
||||||
|
%global skipcheck 1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# There are 0 test machines for this architecture, very few builders, and
|
||||||
|
# they're not very well provisioned / maintained. I can't support it.
|
||||||
|
# Patches welcome, but there's nothing I can do - it fails more than half the
|
||||||
|
# for "infrastructure issues" that I can't hope to debug.
|
||||||
|
%ifarch s390x
|
||||||
|
%global skipcheck 1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# RHEL runs upstream's test suite in a separate pass after build.
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%global skipcheck 1
|
||||||
|
%endif
|
||||||
|
|
||||||
# Set this so that find-lang.sh will recognize the .po files.
|
# Set this so that find-lang.sh will recognize the .po files.
|
||||||
%global gettext_domain mit-krb5
|
%global gettext_domain mit-krb5
|
||||||
# Guess where the -libs subpackage's docs are going to go.
|
# Guess where the -libs subpackage's docs are going to go.
|
||||||
@ -278,26 +302,14 @@ sphinx-build -a -b man -t pathsubs doc build-man
|
|||||||
sphinx-build -a -b html -t pathsubs doc build-html
|
sphinx-build -a -b html -t pathsubs doc build-html
|
||||||
rm -fr build-html/_sources
|
rm -fr build-html/_sources
|
||||||
|
|
||||||
%check
|
%if 0%{?skipcheck}
|
||||||
|
|
||||||
# There are 0 test machines for this architecture, very few builders, and
|
|
||||||
# they're not very well provisioned / maintained. I can't support it.
|
|
||||||
# Patches welcome, but there's nothing I can do - it fails more than half the
|
|
||||||
# time for no discernable reason.
|
|
||||||
%ifnarch s390x
|
|
||||||
pushd src
|
|
||||||
|
|
||||||
# ugh. COPR doesn't work right with the tests. I suspect keyring issues, but
|
|
||||||
# can't actually debug, so...
|
|
||||||
%if 0%{?copr_username:1}
|
|
||||||
%global keyctl :
|
|
||||||
%else
|
%else
|
||||||
%global keyctl keyctl
|
%check
|
||||||
%endif
|
pushd src
|
||||||
|
|
||||||
# The build system may give us a revoked session keyring, so run affected
|
# The build system may give us a revoked session keyring, so run affected
|
||||||
# tests with a new one.
|
# tests with a new one.
|
||||||
%{keyctl} session - make check OFFLINE=yes TMPDIR=%{_tmppath}
|
keyctl session - make check OFFLINE=yes TMPDIR=%{_tmppath}
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user