guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#73692] [PATCH v4 2/2] gnu: timescaledb: Ignore failing tests.


From: Nicolas Graves
Subject: [bug#73692] [PATCH v4 2/2] gnu: timescaledb: Ignore failing tests.
Date: Thu, 17 Oct 2024 06:37:51 +0200

* gnu/packages/databases.scm (timescaledb):
[arguments]<#:phases>: Add phase 'patch-failing-tests.
---
 gnu/packages/databases.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 43ec0641a0..3331d9849a 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1502,6 +1502,25 @@ (define-public timescaledb
                              "-o" (string-append "-k " pg-data)
                              "-l" (string-append pg-data "/db.log")
                              "start"))))
+               #$@(if (target-x86-64?)
+                      #~()
+                      #~((add-after 'unpack 'skip-failing-tests
+                           (lambda _
+                             #$@(if (target-aarch64?)
+                                    #~((substitute* "test/sql/CMakeLists.txt"
+                                         (((string-append
+                                            "("
+                                            (string-join
+                                             '("append\\.sql\\.in"
+                                               "chunk_adaptative\\.sql"
+                                               "histogram_test\\.sql\\.in")
+                                             "|")
+                                            ")")
+                                           all)
+                                          (string-append "#" all))))
+                                    #~((substitute* "test/sql/CMakeLists.txt"
+                                         (("histogram_test\\.sql\\.in" all)
+                                          (string-append "#" all)))))))))
                (add-after 'prepare-tests 'check
                  (assoc-ref %standard-phases 'check)))))
     (inputs (list openssl postgresql))
-- 
2.46.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]