[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/08: pack: Add test for 'self-contained-tarball' with localstatedir.
From: |
Ludovic Courtès |
Subject: |
06/08: pack: Add test for 'self-contained-tarball' with localstatedir. |
Date: |
Tue, 6 Nov 2018 17:21:32 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 1ff53787dbd4b1846ae523aef86ada3996de5e6d
Author: Ludovic Courtès <address@hidden>
Date: Sun Nov 4 17:34:16 2018 +0100
pack: Add test for 'self-contained-tarball' with localstatedir.
* tests/pack.scm ("self-contained-tarball + localstatedir"): New test.
---
tests/pack.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/tests/pack.scm b/tests/pack.scm
index 0c9e4ff..a9bc894 100644
--- a/tests/pack.scm
+++ b/tests/pack.scm
@@ -90,6 +90,29 @@
(with-external-store store
(unless store (test-skip 1))
+ (test-assertm "self-contained-tarball + localstatedir" store
+ (mlet* %store-monad
+ ((guile (set-guile-for-build (default-guile)))
+ (profile (profile-derivation (packages->manifest
+ (list %bootstrap-guile))
+ #:hooks '()
+ #:locales? #f))
+ (tarball (self-contained-tarball "tar-pack" profile
+ #:localstatedir? #t))
+ (check (gexp->derivation
+ "check-tarball"
+ #~(let ((bin (string-append "." #$profile "/bin")))
+ (setenv "PATH"
+ (string-append #$%tar-bootstrap "/bin"))
+ (system* "tar" "xvf" #$tarball)
+ (mkdir #$output)
+ (exit
+ (and (file-exists? "var/guix/db/db.sqlite")
+ (string=? (string-append #$%bootstrap-guile
"/bin")
+ (readlink bin))))))))
+ (built-derivations (list check))))
+
+ (unless store (test-skip 1))
(test-assertm "docker-image + localstatedir" store
(mlet* %store-monad
((guile (set-guile-for-build (default-guile)))
- branch master updated (c6b05ba -> b07014f), Ludovic Courtès, 2018/11/06
- 03/08: install: Add 'install-database-and-gc-roots'., Ludovic Courtès, 2018/11/06
- 06/08: pack: Add test for 'self-contained-tarball' with localstatedir.,
Ludovic Courtès <=
- 04/08: pack: Docker backend now honors '--localstatedir'., Ludovic Courtès, 2018/11/06
- 05/08: pack: Squashfs backend now honors '--localstatedir'., Ludovic Courtès, 2018/11/06
- 01/08: pack: Move store database creation to a separate derivation., Ludovic Courtès, 2018/11/06
- 08/08: pack: Add test for '--relocatable'., Ludovic Courtès, 2018/11/06
- 07/08: store-copy: Canonicalize the mtime and permissions of the store copy., Ludovic Courtès, 2018/11/06
- 02/08: pack: Import (guix store database) only when '--localstatedir' is passed., Ludovic Courtès, 2018/11/06