path: root/tests/uuid.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/uuid.scm')
0 files changed, 0 insertions, 0 deletions
"does not pull (guix config)" ;; This module is meant both for the host side and "build side", so make ;; sure it doesn't pull in (guix config), which depends on the user's ;; config. (not (member '(guix config) (source-module-closure '((gnu system file-systems)))))) (test-equal "does not pull (gnu packages …)" ;; Same story: (gnu packages …) should not be pulled. #f (find (match-lambda (('gnu 'packages _ ..1) #t) (_ #f)) (source-module-closure '((gnu system file-systems))))) (test-equal "file-system-options->alist" '("autodefrag" ("subvol" . "home") ("compress" . "lzo")) (file-system-options->alist "autodefrag,subvol=home,compress=lzo")) (test-equal "file-system-options->alist (#f)" '() (file-system-options->alist #f)) (test-equal "alist->file-system-options" "autodefrag,subvol=root,compress=lzo" (alist->file-system-options '("autodefrag" ("subvol" . "root") ("compress" . "lzo")))) (test-equal "alist->file-system-options (null)" #f (alist->file-system-options '())) ;;; ;;; Btrfs related. ;;; (define %btrfs-root-subvolume (file-system (device (file-system-label "btrfs-pool")) (mount-point "/") (type "btrfs") (options "subvol=rootfs,compress=zstd"))) (define %btrfs-store-subvolid (file-system (device (file-system-label "btrfs-pool")) (mount-point "/gnu/store") (type "btrfs") (options "subvolid=10,compress=zstd") (dependencies (list %btrfs-root-subvolume)))) (define %btrfs-store-subvolume (file-system (device (file-system-label "btrfs-pool")) (mount-point "/gnu/store") (type "btrfs") (options "subvol=/some/nested/file/name") (dependencies (list %btrfs-root-subvolume)))) (test-assert "btrfs-subvolume? (subvol)" (btrfs-subvolume? %btrfs-root-subvolume)) (test-assert "btrfs-subvolume? (subvolid)" (btrfs-subvolume? %btrfs-store-subvolid)) (test-equal "btrfs-store-subvolume-file-name" "/some/nested/file/name" (parameterize ((%store-prefix "/gnu/store")) (btrfs-store-subvolume-file-name (list %btrfs-root-subvolume %btrfs-store-subvolume)))) (test-error "btrfs-store-subvolume-file-name (subvolid)" (parameterize ((%store-prefix "/gnu/store")) (btrfs-store-subvolume-file-name (list %btrfs-root-subvolume %btrfs-store-subvolid)))) (test-end)