GNU bug report logs -
#74670
[PATCH] tests: pack: Fix AppImage tests.
Previous Next
Reported by: Noé Lopez <noe <at> xn--no-cja.eu>
Date: Tue, 3 Dec 2024 15:13:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
From: Noé Lopez <noelopez <at> free.fr>
Hi,
Thanks you very much for working on the tests, I should have spent more time
on them myself.
> I noticed that the tests were not going very far, so I tried the patch
> below to: (1) check the output of ‘hello’ in the first test, (2) change
> the second test to check for the existence of /var/guix/db/db.sqlite.
>
> The second test doesn’t work though, because where’s that file supposed
> to live? The image is apparently extracted in an unguessable directory,
> so cannot tell where it is. Am I right?
Yes, --appimage-extract-and-run uses a temporary directory but you can use
--appimage-extract which always places the contents in ./squashfs-root.
The other reason the test did not work is because the localstatedir option
wasn’t supported to begin with, this is an oversight that I could have avoided.
I’m sending a second version with the localstatedir support and your updated
tests.
Thanks,
Noé
Noé Lopez (2):
pack: Support localstatedir in AppImage format.
build: pack: Fix unexpected type in assert-utf8-local.
guix/build/pack.scm | 2 +-
guix/scripts/pack.scm | 13 ++++++++++-
tests/pack.scm | 51 ++++++++++++++++++++++++++++---------------
3 files changed, 46 insertions(+), 20 deletions(-)
base-commit: bb8a6f0ac47296d3a18e1e0a26ea3a833eb77c4a
prerequisite-patch-id: f3798629973582541e158d322c1a461038c657b8
--
2.46.0
This bug report was last modified 114 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.