Increase timeout for tests to 3000 seconds on riscv64

[..]
99% tests passed, 4 tests failed out of 617
Label Time Summary:
CUDA      = 2407.66 sec*proc (4 tests)
Label1    =   2.40 sec*proc (1 test)
Label2    =   2.40 sec*proc (1 test)
Total Test time (real) = 17821.12 sec
The following tests FAILED:
	549 - Qt5Autogen.Complex (Timeout)
	552 - Qt5Autogen.ManySources (Timeout)
	581 - Qt5Autogen.MocInclude (Timeout)
	582 - Qt5Autogen.MocIncludeSymlink (Timeout)
RPM build errors:
Errors while running CTest
[..]

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
This commit is contained in:
David Abdurachmanov 2020-11-28 15:53:21 +02:00
parent 1ab5d69fab
commit 398c8736f9
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 14 additions and 3 deletions

View File

@ -70,7 +70,7 @@
Name: %{orig_name}%{?name_suffix}
Version: %{major_version}.%{minor_version}.4
Release: %{baserelease}%{?relsuf}%{?dist}
Release: %{baserelease}%{?relsuf}.0.riscv64%{?dist}
Summary: Cross-platform make system
# most sources are BSD
@ -427,6 +427,14 @@ find %{buildroot}%{_bindir} -type f -or -type l -or -xtype l | \
mv -f Modules/FindLibArchive.cmake Modules/FindLibArchive.disabled
%endif
pushd %{_vpath_builddir}
# QEMU is slow thus a test timesout:
# 549 - Qt5Autogen.Complex (Timeout)
# 552 - Qt5Autogen.ManySources (Timeout)
# 581 - Qt5Autogen.MocInclude (Timeout)
# 582 - Qt5Autogen.MocIncludeSymlink (Timeout)
%ifarch riscv64
TEST_TIMEOUT="--timeout 3000"
%endif
# CTestTestUpload require internet access
# CPackComponentsForAll-RPM-IgnoreGroup failing wih rpm 4.15 - https://gitlab.kitware.com/cmake/cmake/issues/19983
NO_TEST="CTestTestUpload|CPackComponentsForAll-RPM-IgnoreGroup"
@ -438,9 +446,9 @@ NO_TEST="$NO_TEST|kwsys.testProcess-4|kwsys.testProcess-5"
%if %{with bootstrap}
NO_TEST="$NO_TEST|curl"
%endif
bin/ctest%{?name_suffix} %{?_smp_mflags} -V -E "$NO_TEST" --output-on-failure
bin/ctest%{?name_suffix} %{?_smp_mflags} -V -E "$NO_TEST" $TEST_TIMEOUT --output-on-failure
# Keep an eye on failing tests
bin/ctest%{?name_suffix} %{?_smp_mflags} -V -R "$NO_TEST" --output-on-failure || :
bin/ctest%{?name_suffix} %{?_smp_mflags} -V -R "$NO_TEST" $TEST_TIMEOUT --output-on-failure || :
popd
%if 0%{?rhel} && 0%{?rhel} <= 6
mv -f Modules/FindLibArchive.disabled Modules/FindLibArchive.cmake
@ -512,6 +520,9 @@ mv -f Modules/FindLibArchive.disabled Modules/FindLibArchive.cmake
%changelog
* Sat Nov 28 2020 David Abdurachmanov <david.abdurachmanov@sifive.com> - 3.18.4-2.0.riscv64
- Increase timeout for tests to 3000 seconds on riscv64 (2x increase)
* Mon Nov 09 2020 Miro Hrončok <mhroncok@redhat.com> - 3.18.4-2
- Add support for Python 3.10