[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#74670] [PATCH v3 2/2] tests: pack: Improve AppImage tests.
From: |
Ludovic Courtès |
Subject: |
[bug#74670] [PATCH v3 2/2] tests: pack: Improve AppImage tests. |
Date: |
Mon, 23 Dec 2024 19:37:34 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi Noé,
Noé Lopez <noe@noé.eu> skribis:
> From: Noé Lopez <noelopez@free.fr>
>
> * 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’.