summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-11-06 15:35:49 +0000
committerNeil Williams <codehelp@debian.org>2015-11-06 15:35:49 +0000
commit47e9fad49eafd289da61c331550b78a23d013c90 (patch)
tree9e61388ff0ee45d664cbf2782e08ebae13c95f09 /yarns
parenta33bdf051903cbb8d08cc7021c932e55642f9fb1 (diff)
downloadvmdebootstrap-47e9fad49eafd289da61c331550b78a23d013c90.tar.gz
add the rest of the option parsing fast tests
Diffstat (limited to 'yarns')
-rw-r--r--yarns/200-fast-tests.yarn61
1 files changed, 61 insertions, 0 deletions
diff --git a/yarns/200-fast-tests.yarn b/yarns/200-fast-tests.yarn
index 7e91ab3..fcfba2a 100644
--- a/yarns/200-fast-tests.yarn
+++ b/yarns/200-fast-tests.yarn
@@ -24,6 +24,14 @@ verify that vmdebootstrap parses the command line correctly.
... --image=FOO --grub --use-uefi --arch=arm64 --dry-run
THEN vmdebootstrap exited with a zero exit code
+ SCENARIO --arch arm64 used with --image but without --use-uefi
+ ASSUMING fast tests are requested
+ WHEN user attempts to run vmdebootstrap
+ ... --image=FOO --foreign=PATH --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 arm64
+
SCENARIO --use-uefi and --arch arm64 used without grub
ASSUMING fast tests are requested
WHEN user attempts to run vmdebootstrap
@@ -39,3 +47,56 @@ verify that vmdebootstrap parses the command line correctly.
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
+
+ SCENARIO --image used with a zero size
+ ASSUMING fast tests are requested
+ WHEN user attempts to run vmdebootstrap
+ ... --image=FOO --size=0 --dry-run
+ THEN vmdebootstrap exited with a non-zero exit code
+ AND vmdebootstrap wrote an error message matching disk image
+ AND vmdebootstrap wrote an error message matching must
+
+ SCENARIO Debian distribution stable name check
+ ASSUMING fast tests are requested
+ WHEN user attempts to run vmdebootstrap
+ ... --image=FOO --distribution=stable --dry-run
+ THEN vmdebootstrap exited with a zero exit code
+
+ SCENARIO Debian distribution jessie name check
+ ASSUMING fast tests are requested
+ WHEN user attempts to run vmdebootstrap
+ ... --image=FOO --distribution=jessie --dry-run
+ THEN vmdebootstrap exited with a zero exit code
+
+ SCENARIO allow use of arch and foreign options
+ ASSUMING fast tests are requested
+ WHEN user attempts to run vmdebootstrap
+ ... --image=FOO --arch=armhf --foreign=PATH --dry-run
+ THEN vmdebootstrap exited with a zero exit code
+
+ SCENARIO disallow use of uefi on unsupported architectures
+ ASSUMING fast tests are requested
+ WHEN user attempts to run vmdebootstrap
+ ... --image=FOO --grub --use-uefi --arch=armel --dry-run
+ THEN vmdebootstrap exited with a non-zero exit code
+ AND vmdebootstrap wrote an error message matching armel
+ AND vmdebootstrap wrote an error message matching not a supported
+ AND vmdebootstrap wrote an error message matching UEFI
+
+ SCENARIO disallow use of bootpartition if ESP already set
+ ASSUMING fast tests are requested
+ WHEN user attempts to run vmdebootstrap
+ ... --image=FOO --bootoffset=1024 --grub --use-uefi --dry-run
+ THEN vmdebootstrap exited with a non-zero exit code
+ AND vmdebootstrap wrote an error message matching separate boot
+ AND vmdebootstrap wrote an error message matching not supported
+ AND vmdebootstrap wrote an error message matching UEFI
+
+ SCENARIO disallow UEFI support on wheezy except on amd64
+ ASSUMING fast tests are requested
+ WHEN user attempts to run vmdebootstrap
+ ... --image=FOO --grub --use-uefi --distribution=wheezy --arch=arm64 --dry-run
+ THEN vmdebootstrap exited with a non-zero exit code
+ AND vmdebootstrap wrote an error message matching Only amd64
+ AND vmdebootstrap wrote an error message matching supports UEFI
+ AND vmdebootstrap wrote an error message matching Wheezy