guix-patches
[Top][All Lists]
Advanced

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

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


From: Zheng Junjie
Subject: [bug#73692] [PATCH v7 2/2] gnu: timescaledb: Ignore failing tests.
Date: Sun, 20 Oct 2024 22:33:43 +0800

Nicolas Graves via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/databases.scm (timescaledb):
> [arguments]<#:phases>: Add phase 'patch-failing-tests.
> ---
>  gnu/packages/databases.scm | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
>
> diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
> index df346893b8..6f30e22624 100644
> --- a/gnu/packages/databases.scm
> +++ b/gnu/packages/databases.scm
> @@ -1487,6 +1487,29 @@ (define-public timescaledb
>                               "-o" (string-append "-k " pg-data)
>                               "-l" (string-append pg-data "/db.log")
>                               "start"))))
> +               #$@(cond
> +                   ((string=? "x86-64-linux" (%current-system))
> +                    #~())
> +                   ((string=? "i686-linux" (%current-system))
> +                    #~((add-after 'unpack 'skip-failing-tests
> +                         (lambda _
> +                           (substitute* "test/sql/CMakeLists.txt"
> +                             (((string-append
> +                                "("
> +                                (string-join
> +                                 '(" append\\.sql\\.in"
> +                                   " chunk_adaptive\\.sql"
> +                                   " histogram_test\\.sql\\.in")
> +                                 "|")
> +                                ")")
> +                               all)
> +                              (string-append "#" all)))))))
> +                   (else
> +                    #~((add-after 'unpack 'skip-failing-tests
> +                         (lambda _
> +                           (substitute* "test/sql/CMakeLists.txt"
> +                             ((" histogram_test\\.sql\\.in")
> +                              "# histogram_test.sql.in")))))))
>                 (add-after 'prepare-tests 'check
>                   (assoc-ref %standard-phases 'check)))))
>      (inputs (list openssl postgresql))
push, close.

Attachment: signature.asc
Description: PGP signature


reply via email to

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