summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-09-04 19:20:14 +0200
committerLudovic Courtès <ludo@gnu.org>2022-09-04 23:10:10 +0200
commitf1bbb06dad36c6262afac908c45038e5a3da7b16 (patch)
tree359f979607c57aedf40124a475106d08936a7490
parent9e59dbcd6cc37ee65236edf23a9b32338536e036 (diff)
downloadguix-f1bbb06dad36c6262afac908c45038e5a3da7b16.tar.gz
guix system: Do not use 'vm-image.tmpl' in tests.
This is a followup to 95a03aa5c507d48e2cde19ea007b8f90a4e0108a.  Since
that commit, merely evaluating 'vm-image.tmpl' would trigger the build
of 'current-guix' so skip it.

* tests/guix-system.sh: Do not try to build 'vm-image.tmpl'.
-rw-r--r--tests/guix-system.sh29
1 files changed, 18 insertions, 11 deletions
diff --git a/tests/guix-system.sh b/tests/guix-system.sh
index 044fd131d6..f76a5ce119 100644
--- a/tests/guix-system.sh
+++ b/tests/guix-system.sh
@@ -335,22 +335,29 @@ rm "$tmpdir/search"
 
 # Verify that the examples can be built.
 for example in gnu/system/examples/*.tmpl; do
-    if echo "$example" | grep hurd; then
-        options="--target=i586-pc-gnu"
-    elif echo "$example" | grep asus; then
-	# 'asus-c201.tmpl' uses 'linux-libre-arm-generic', which is an
-	# ARM-only package.
-        options="--system=armhf-linux"
-    else
-	options=""
-    fi
+    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";;
+	*vm-image*)
+	    # The VM image tries to build 'current-guix' as per 'guix pull'.
+	    # Skip it.
+	    continue
+	    ;;
+	*)
+	    options=""
+	    ;;
+    esac
     guix system -n disk-image $options "$example"
 done
 
 # Verify that the images can be built.
-guix system -n vm gnu/system/examples/vm-image.tmpl
+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/vm-image.tmpl
+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