From 72e1a4624396a64d2b0f522d541a785c4354396d Mon Sep 17 00:00:00 2001 From: Alexander Stefanov Date: Tue, 14 Apr 2020 21:08:49 +0000 Subject: [PATCH] adjust tests --- git.spec | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/git.spec b/git.spec index 01f588c..ca7b26e 100644 --- a/git.spec +++ b/git.spec @@ -367,8 +367,25 @@ install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/profile.d/%{profile_bra %find_lang %{name} %check -# We do NO_SVN_TESTS because git's tests hardcode -# replies from svn versions older than the one -# we're shipping -- and they have changed since -rm -f t/t5700-protocol-v1.sh -LC_ALL=C %make %{git_make_params} test NO_SVN_TESTS=true +GIT_SKIP_TESTS="" +%ifarch aarch64 %{arm} %{power64} +# Skip tests which fail on aarch64, arm, and ppc +# +# The following 2 tests use run_with_limited_cmdline, which calls ulimit -s 128 +# to limit the maximum stack size. +# t5541.35 'push 2000 tags over http' +# t5551.25 'clone the 2,000 tag repo to check OS command line overflow' +GIT_SKIP_TESTS="$GIT_SKIP_TESTS t5541.35 t5551.25" +%endif + +export GIT_SKIP_TESTS +# Set LANG so various UTF-8 tests are run +export LANG=en_US.UTF-8 + +# Run the tests +%__make test +# Run contrib/credential/netrc tests +mkdir -p contrib/credential +mv netrc contrib/credential/ +%make_build -C contrib/credential/netrc/ test || \ +%make_build -C contrib/credential/netrc/ testverbose