aboutsummaryrefslogtreecommitdiff
path: root/gnu/system
ModeNameSize
-rw-r--r--accounts.scm4217logplainabout
d---------examples396logplain
-rw-r--r--file-systems.scm26615logplainabout
-rw-r--r--hurd.scm5132logplainabout
-rw-r--r--image.scm32711logplainabout
d---------images194logplain
-rw-r--r--install.scm26710logplainabout
-rw-r--r--keyboard.scm4229logplainabout
-rw-r--r--linux-container.scm13507logplainabout
-rw-r--r--linux-initrd.scm17539logplainabout
-rw-r--r--locale.scm9081logplainabout
-rw-r--r--mapped-devices.scm13228logplainabout
-rw-r--r--nss.scm8241logplainabout
-rw-r--r--pam.scm15606logplainabout
-rw-r--r--setuid.scm2128logplainabout
-rw-r--r--shadow.scm17027logplainabout
-rw-r--r--uuid.scm12508logplainabout
-rw-r--r--vm.scm16580logplainabout
l-file "my-torrc")))) %base-services))) EOF cat > "$tmpdir/my-torrc"<<EOF # This is an example file. EOF # In both cases 'my-torrc' should be properly resolved. guix system build "$tmpdir/config.scm" -n (cd "$tmpdir"; guix system build "config.scm" -n) # Check that we get a warning when passing 'local-file' a non-literal relative # file name. cat > "$tmpdir/config.scm" <<EOF (use-modules (guix)) (define (bad-local-file file) (local-file file)) (bad-local-file "whatever.scm") EOF guix system build "$tmpdir/config.scm" -n && false guix system build "$tmpdir/config.scm" -n 2>&1 | \ grep "config\.scm:4:2: warning:.*whatever.*relative to current directory" # Searching. guix system search tor | grep "^name: tor" guix system search tor | grep "^shepherdnames: tor" guix system search anonym network | grep "^name: tor" guix system search . > "$tmpdir/search" test $(wc -l < "$tmpdir/search") -gt 500 rm "$tmpdir/search" # Below, use -n (--dry-run) for the tests because if we actually tried to # build these images, the commands would take hours to run in the worst case. # Verify that the examples can be built. for example in gnu/system/examples/*.tmpl; do case "$example" in *hurd*) options="--target=i586-pc-gnu";; *asus*) # 'asus-c201.tmpl' uses 'linux-libre-arm-generic', which is an # ARM-only package. options="--system=armhf-linux";; *raspberry*) # The Raspberry Pi templates 'linux-libre-arm64-generic', which is # an ARM-only package. options="--system=aarch64-linux";; *plasma*) # Some architectures do not support all the packages Plasma # depends on so restrict to x86_64-linux. options="--system=x86_64-linux";; *vm-image*) # The VM image tries to build 'current-guix' as per 'guix pull'. # Skip it. continue ;; *desktop*) # This image uses 'grub-efi-bootloader' so it needs a GPT # partition. options="-t efi-raw --system=x86_64-linux";; *) options="" ;; esac guix system -n image $options "$example" done # Make sure the desktop image can be built on major architectures. for system in x86_64-linux aarch64-linux do guix system -n image -s "$system" -t efi-raw \ gnu/system/examples/desktop.tmpl done # Verify that the images can be built. guix system -n vm gnu/system/examples/bare-bones.tmpl guix system -n image gnu/system/images/pinebook-pro.scm guix system -n image -t qcow2 gnu/system/examples/bare-bones.tmpl guix system -n image -t iso9660 gnu/system/examples/bare-bones.tmpl guix system -n docker-image gnu/system/examples/docker-image.tmpl # Verify that at least the raw image type is available. guix system --list-image-types | grep "raw"