From 8d718fa234892997e5aeb95564b9cbc38a8242ee Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Feb 20 2024 17:16:38 +0000 Subject: Add %ctest timeout on riscv64 Since our riscv64 builders are slow at the moment some tests fail with timeouts, eg: https://src.fedoraproject.org/rpms/kokkos/pull-request/11 Adding the --timeout flag on riscv64 only increases the timeout and makes the tests pass. Adding this centrally makes it easier to remove it later once faster hardware becomes widely available. Signed-off-by: Richard W.M. Jones --- diff --git a/macros.cmake.in b/macros.cmake.in index 5c9307a..675ca90 100644 --- a/macros.cmake.in +++ b/macros.cmake.in @@ -44,7 +44,13 @@ DESTDIR="%{buildroot}" %__cmake --install "%{__cmake_builddir}" %ctest(:-:h:j:u:v:A:C:D:E:F:H:I:L:M:N:O:Q:R:S:T:U:V:) \ - %__ctest --test-dir "%{__cmake_builddir}" --output-on-failure --force-new-ctest-process %{?_smp_mflags} %{**} + %__ctest --test-dir "%{__cmake_builddir}" \\\ + --output-on-failure \\\ + --force-new-ctest-process \\\ +%ifarch riscv64 \ + --timeout 6000 \\\ +%endif \ + %{?_smp_mflags} %{**} %cmake@@CMAKE_MAJOR_VERSION@@ %cmake