summaryrefslogtreecommitdiff
path: root/yarns/200-fast-tests.yarn
blob: 7e91ab3abb5c41e3d5b4d71b76d586896238ed4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Fast option check tests

This chapter contains fast scenarios that test vmdebootstrap option
handling. These scenarios do not actually build images, they only
verify that vmdebootstrap parses the command line correctly.

    SCENARIO --squash and --image used together
    ASSUMING fast tests are requested
    WHEN user attempts to run vmdebootstrap
    ... --squash=FOO --image=BAR --dry-run
    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