[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#33259] [PATCH 6/8] pack: Add test for 'self-contained-tarball' with
From: |
Ludovic Courtès |
Subject: |
[bug#33259] [PATCH 6/8] pack: Add test for 'self-contained-tarball' with localstatedir. |
Date: |
Sun, 4 Nov 2018 23:10:34 +0100 |
* 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 63fef70c64..22321a3e46 100644
--- a/tests/pack.scm
+++ b/tests/pack.scm
@@ -89,6 +89,29 @@
;; quite inexpensively; see <https://bugs.gnu.org/32184>.
(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
--
2.19.1
- [bug#33259] [PATCH 2/8] pack: Import (guix store database) only when '--localstatedir' is passed., (continued)
[bug#33259] [PATCH 7/8] store-copy: Canonicalize the mtime and permissions of the store copy., Ludovic Courtès, 2018/11/04
[bug#33259] [PATCH 6/8] pack: Add test for 'self-contained-tarball' with localstatedir.,
Ludovic Courtès <=
[bug#33259] [PATCH 5/8] pack: Squashfs backend now honors '--localstatedir'., Ludovic Courtès, 2018/11/04
[bug#33259] [PATCH 3/8] install: Add 'install-database-and-gc-roots'., Ludovic Courtès, 2018/11/04
[bug#33259] [PATCH 1/8] pack: Move store database creation to a separate derivation., Danny Milosavljevic, 2018/11/06