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.