summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-11-06 15:11:39 +0000
committerNeil Williams <codehelp@debian.org>2015-11-06 15:11:39 +0000
commita33bdf051903cbb8d08cc7021c932e55642f9fb1 (patch)
tree426aa4e91b333742fc6ca6666ae3cd97fbdae0a9 /yarns
parent82b17d5c1de05ec7f06c0ed0ff065282f2348034 (diff)
downloadvmdebootstrap-a33bdf051903cbb8d08cc7021c932e55642f9fb1.tar.gz
Allow arm64 without UEFI only if squash is set
UEFI files do not go inside the squashfs, configured separately later.
Diffstat (limited to 'yarns')
-rw-r--r--yarns/200-fast-tests.yarn28
-rw-r--r--yarns/900-implements.yarn3
2 files changed, 31 insertions, 0 deletions
diff --git a/yarns/200-fast-tests.yarn b/yarns/200-fast-tests.yarn
index 1b0ef97..7e91ab3 100644
--- a/yarns/200-fast-tests.yarn
+++ b/yarns/200-fast-tests.yarn
@@ -11,3 +11,31 @@ verify that vmdebootstrap parses the command line correctly.
THEN vmdebootstrap exited with a non-zero exit code
AND vmdebootstrap wrote an error message matching --squash
AND vmdebootstrap wrote an error message matching --image
+
+ SCENARIO --squash and --arch arm64 used together
+ ASSUMING fast tests are requested
+ WHEN user attempts to run vmdebootstrap
+ ... --squash=FOO --arch=arm64 --dry-run
+ THEN vmdebootstrap exited with a zero exit code
+
+ SCENARIO --use-uefi and --arch arm64 used together
+ ASSUMING fast tests are requested
+ WHEN user attempts to run vmdebootstrap
+ ... --image=FOO --grub --use-uefi --arch=arm64 --dry-run
+ THEN vmdebootstrap exited with a zero exit code
+
+ SCENARIO --use-uefi and --arch arm64 used without grub
+ ASSUMING fast tests are requested
+ WHEN user attempts to run vmdebootstrap
+ ... --image=FOO --use-uefi --arch=arm64 --dry-run
+ THEN vmdebootstrap exited with a non-zero exit code
+ AND vmdebootstrap wrote an error message matching UEFI
+ AND vmdebootstrap wrote an error message matching Grub
+
+ SCENARIO --use-uefi and --arch arm64 used without image
+ ASSUMING fast tests are requested
+ WHEN user attempts to run vmdebootstrap
+ ... --grub --use-uefi --arch=arm64 --dry-run
+ THEN vmdebootstrap exited with a non-zero exit code
+ AND vmdebootstrap wrote an error message matching disk image filename
+ AND vmdebootstrap wrote an error message matching squash
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn
index 72c8f2c..d4c6a7a 100644
--- a/yarns/900-implements.yarn
+++ b/yarns/900-implements.yarn
@@ -58,6 +58,9 @@ code.
IMPLEMENTS THEN vmdebootstrap exited with a non-zero exit code
grep -vFx 0 vmdebootstrap.exit
+ IMPLEMENTS THEN vmdebootstrap exited with a zero exit code
+ grep -Fx 0 vmdebootstrap.exit
+
Check the stderr of the attempted vmdebootstrap run.
IMPLEMENTS THEN vmdebootstrap wrote an error message matching (.+)