Subject: [bug#74670] [PATCH v3 2/2] tests: pack: Improve AppImage tests.

From: Ludovic Courtès <[email-masked]>
Date: Mon, 23 Dec 2024 19:37:34 +0100

Hi Noé,

Noé Lopez <[email-masked]> skribis:

> From: Noé Lopez <[email-masked]>
>
> * tests/pack.scm: Improve AppImage tests.
>
> Change-Id: I7890b902f65a2944ae8fa03db8a964deda3c725c

[...]

> +                       (system* #$image "--appimage-extract-and-run" "-c"
> +                                (object->string
> +                                 `(call-with-output-file #$output
> +                                    (lambda (port)
> +                                      (display "Hello from Guile!\n"
> +                                               port)))))
> +                       (execl #$image #$image "--appimage-extract"
> +                              (object->string
> +                               '(exit
> +                                 (pk 'db? (getcwd)
> +                                     (file-exists? "squashfs-root/var/guix/db/db.sqlite")))))))))

The second part here does nothing: you can place any other file name and
it still exits successfully.

Looking at an strace, I think ‘--appimage-extract’ does next to nothing:
essentially it reads /proc/self/exe, create an empty “squashfs-root”
directory, and exits.

Could you check exactly what’s happening?

We’re getting really close!

Thanks,
Ludo’.