guix-patches
[Top][All Lists]
Advanced

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

[bug#48729] [PATCH v5 24/25] gnu: Add bitmask.


From: Maxime Devos
Subject: [bug#48729] [PATCH v5 24/25] gnu: Add bitmask.
Date: Fri, 18 Jun 2021 20:22:33 +0200
User-agent: Evolution 3.34.2

Raghav Gururajan via Guix-patches via schreef op vr 18-06-2021 om 02:54 [-0400]:
> +         (add-after 'check 'check-continued
> +           (lambda _
> +             ;; To run bitmask test.
> +             (with-directory-excursion "src/0xacab.org/leap/bitmask-vpn"
> +               (delete-file "Makefile")
> +               (invoke "qmake" "test.pro")
> +               ;; Tests require display-server.
> +               (setenv "QT_QPA_PLATFORM" "offscreen")
> +               ;; Tests look for $XDG_RUNTIME_DIR.
> +               (setenv "XDG_RUNTIME_DIR" (getenv "TEMP"))
> +               ;; Tests write to $HOME.
> +               (setenv "HOME" (getenv "TEMP"))
> +               (invoke "make" "check"))))

I'd make this

  (lambda* (#:key tests? #:allow-other-keys)
    (when tests?
      [do-stuff]))

That way, the package transformation --without-tests=bitmask
should work. (Try "guix build --without-tests=bitmask bitmask".)

Greetings,
Maxime.

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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