diff --git a/tests/pack.scm b/tests/pack.scm index 1c1e312557..c395f3935f 100644 --- a/tests/pack.scm +++ b/tests/pack.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2017-2021, 2023 Ludovic Courtès +;;; Copyright © 2017-2021, 2023, 2024 Ludovic Courtès ;;; Copyright © 2018 Ricardo Wurmus ;;; Copyright © 2021, 2023 Maxim Cournoyer ;;; Copyright © 2023 Oleg Pykhalov @@ -356,8 +356,18 @@ (define rpm-for-tests (list #:relocatable? #t))) (check (gexp->derivation "check-appimage" - #~(invoke #$image)))) - (built-derivations (list check)))) + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (ice-9 popen) + (guix build utils)) + + (let ((pipe (open-pipe* OPEN_READ + #$image "--appimage-extract-and-run"))) + (call-with-output-file #$output + (lambda (port) + (dump-port pipe port))) + (exit (status:exit-val (close-pipe pipe))))))))) + (built-derivations (list (pk 'APPIMAGE-drv check))))) (unless store (test-skip 1)) (test-assertm "appimage + localstatedir" @@ -374,6 +384,7 @@ (define rpm-for-tests (list #:relocatable? #t))) (check (gexp->derivation "check-appimage" + ;; FIXME: Do something as above. #~(begin (invoke #$image))))) (built-derivations (list check))))