From cdb715730061448f203ecc492a5c694bb1a6c7fc Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 28 Sep 2024 19:41:55 +0300 Subject: [PATCH] gnu: abseil-cpp: Skip 2 tests on riscv64-linux. * gnu/packages/cpp.scm (abseil-cpp)[arguments]: When building for riscv64-linux replace the 'check phase to skip 2 tests. Change-Id: I92a35795dad1a00606954aae7515701ad402f243 --- gnu/packages/cpp.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index c0f81b0e2f..b4a02a2060 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -1529,7 +1529,15 @@ (define-public abseil-cpp (lambda* (#:key inputs #:allow-other-keys) ;; absl_time_test requires this environment variable. (setenv "TZDIR" (string-append #$(package-source base) - "/absl/time/internal/cctz/testdata/zoneinfo"))))))))))) + "/absl/time/internal/cctz/testdata/zoneinfo")))) + #$@(if (target-riscv64?) + #~((replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "CTEST_OUTPUT_ON_FAILURE" "1") + (invoke "ctest" "-E" + "absl_symbolize_test|absl_log_format_test"))))) + #~())))))))) (define (abseil-cpp-for-c++-standard base version) (hidden-package