diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2023-02-27 15:35:54 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2023-02-27 15:54:09 +0100 |
| commit | fee1d08f0dd183ef78bcb9f1534d7b9e7f1df7ac (patch) | |
| tree | 34eabec6a7535b0c93767e981c5fc5477595020f /tests | |
| parent | 2cf07434d8ae1751c1dc940ebeb33a586604566e (diff) | |
pack: Make sure tests can run without a world rebuild.
Commit 68380db4c40a2ee1156349a87254fd7b1f1a52d5 moved from
'gexp->derivation', which as a side effect, would lead tests to require
a "world rebuild"--specifically, they'd have to build (default-guile).
This was mitigated by 68775338a510f84e63657ab09242d79e726fa457, but that
change introduced another regression.
* guix/scripts/pack.scm (populate-profile-root): Define 'bootstrap?'.
Pass #:guile to 'computed-file', with a value depending on 'bootstrap?'.
* tests/pack.scm ("self-contained-tarball + localstatedir")
("docker-image + localstatedir", "squashfs-image + localstatedir")
("deb archive with symlinks and control files")
("rpm archive can be installed/uninstalled"): Use a <profile> record
instead of a derivation.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/pack.scm | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/tests/pack.scm b/tests/pack.scm index 734ae1c69b6..87187bb62c7 100644 --- a/tests/pack.scm +++ b/tests/pack.scm | |||
| @@ -138,10 +138,10 @@ | |||
| 138 | (test-assertm "self-contained-tarball + localstatedir" store | 138 | (test-assertm "self-contained-tarball + localstatedir" store |
| 139 | (mlet* %store-monad | 139 | (mlet* %store-monad |
| 140 | ((guile (set-guile-for-build (default-guile))) | 140 | ((guile (set-guile-for-build (default-guile))) |
| 141 | (profile (profile-derivation (packages->manifest | 141 | (profile -> (profile |
| 142 | (list %bootstrap-guile)) | 142 | (content (packages->manifest (list %bootstrap-guile))) |
| 143 | #:hooks '() | 143 | (hooks '()) |
| 144 | #:locales? #f)) | 144 | (locales? #f))) |
| 145 | (tarball (self-contained-tarball "tar-pack" profile | 145 | (tarball (self-contained-tarball "tar-pack" profile |
| 146 | #:localstatedir? #t)) | 146 | #:localstatedir? #t)) |
| 147 | (check (gexp->derivation "check-tarball" | 147 | (check (gexp->derivation "check-tarball" |
| @@ -210,10 +210,10 @@ | |||
| 210 | (test-assertm "docker-image + localstatedir" store | 210 | (test-assertm "docker-image + localstatedir" store |
| 211 | (mlet* %store-monad | 211 | (mlet* %store-monad |
| 212 | ((guile (set-guile-for-build (default-guile))) | 212 | ((guile (set-guile-for-build (default-guile))) |
| 213 | (profile (profile-derivation (packages->manifest | 213 | (profile -> (profile |
| 214 | (list %bootstrap-guile)) | 214 | (content (packages->manifest (list %bootstrap-guile))) |
| 215 | #:hooks '() | 215 | (hooks '()) |
| 216 | #:locales? #f)) | 216 | (locales? #f))) |
| 217 | (tarball (docker-image "docker-pack" profile | 217 | (tarball (docker-image "docker-pack" profile |
| 218 | #:symlinks '(("/bin/Guile" -> "bin/guile")) | 218 | #:symlinks '(("/bin/Guile" -> "bin/guile")) |
| 219 | #:localstatedir? #t)) | 219 | #:localstatedir? #t)) |
| @@ -250,10 +250,10 @@ | |||
| 250 | (test-assertm "squashfs-image + localstatedir" store | 250 | (test-assertm "squashfs-image + localstatedir" store |
| 251 | (mlet* %store-monad | 251 | (mlet* %store-monad |
| 252 | ((guile (set-guile-for-build (default-guile))) | 252 | ((guile (set-guile-for-build (default-guile))) |
| 253 | (profile (profile-derivation (packages->manifest | 253 | (profile -> (profile |
| 254 | (list %bootstrap-guile)) | 254 | (content (packages->manifest (list %bootstrap-guile))) |
| 255 | #:hooks '() | 255 | (hooks '()) |
| 256 | #:locales? #f)) | 256 | (locales? #f))) |
| 257 | (image (squashfs-image "squashfs-pack" profile | 257 | (image (squashfs-image "squashfs-pack" profile |
| 258 | #:symlinks '(("/bin" -> "bin")) | 258 | #:symlinks '(("/bin" -> "bin")) |
| 259 | #:localstatedir? #t)) | 259 | #:localstatedir? #t)) |
| @@ -288,10 +288,10 @@ | |||
| 288 | (test-assertm "deb archive with symlinks and control files" store | 288 | (test-assertm "deb archive with symlinks and control files" store |
| 289 | (mlet* %store-monad | 289 | (mlet* %store-monad |
| 290 | ((guile (set-guile-for-build (default-guile))) | 290 | ((guile (set-guile-for-build (default-guile))) |
| 291 | (profile (profile-derivation (packages->manifest | 291 | (profile -> (profile |
| 292 | (list %bootstrap-guile)) | 292 | (content (packages->manifest (list %bootstrap-guile))) |
| 293 | #:hooks '() | 293 | (hooks '()) |
| 294 | #:locales? #f)) | 294 | (locales? #f))) |
| 295 | (deb (debian-archive | 295 | (deb (debian-archive |
| 296 | "deb-pack" profile | 296 | "deb-pack" profile |
| 297 | #:compressor %gzip-compressor | 297 | #:compressor %gzip-compressor |
| @@ -376,10 +376,10 @@ | |||
| 376 | (test-assertm "rpm archive can be installed/uninstalled" store | 376 | (test-assertm "rpm archive can be installed/uninstalled" store |
| 377 | (mlet* %store-monad | 377 | (mlet* %store-monad |
| 378 | ((guile (set-guile-for-build (default-guile))) | 378 | ((guile (set-guile-for-build (default-guile))) |
| 379 | (profile (profile-derivation (packages->manifest | 379 | (profile -> (profile |
| 380 | (list %bootstrap-guile)) | 380 | (content (packages->manifest (list %bootstrap-guile))) |
| 381 | #:hooks '() | 381 | (hooks '()) |
| 382 | #:locales? #f)) | 382 | (locales? #f))) |
| 383 | (rpm-pack (rpm-archive "rpm-pack" profile | 383 | (rpm-pack (rpm-archive "rpm-pack" profile |
| 384 | #:compressor %gzip-compressor | 384 | #:compressor %gzip-compressor |
| 385 | #:symlinks '(("/bin/guile" -> "bin/guile")) | 385 | #:symlinks '(("/bin/guile" -> "bin/guile")) |
