Commit a366c043 authored by Helen Koike's avatar Helen Koike

wip: add tests, minor number

parent 16596c48
......@@ -412,6 +412,31 @@ launch_test \
/dev/dm-4 \
"dm-linear,,4,rw,$DL1_P1_START $DL1_P1_SIZE linear 8:1 0,$DL1_P2_START $DL1_P2_SIZE linear 8:2 0,$DL1_P3_START $DL1_P3_SIZE linear 8:3 0,$DL1_P4_START $DL1_P4_SIZE linear 8:4 0"
launch_test \
"linear: big minor 255" \
"-hda ${DL1}" \
/dev/dm-255 \
"dm-linear,,255,rw,$DL1_P1_START $DL1_P1_SIZE linear 8:1 0,$DL1_P2_START $DL1_P2_SIZE linear 8:2 0,$DL1_P3_START $DL1_P3_SIZE linear 8:3 0,$DL1_P4_START $DL1_P4_SIZE linear 8:4 0"
launch_test \
"linear: big minor 256" \
"-hda ${DL1}" \
/dev/dm-0 \
"dm-linear,,256,rw,$DL1_P1_START $DL1_P1_SIZE linear 8:1 0,$DL1_P2_START $DL1_P2_SIZE linear 8:2 0,$DL1_P3_START $DL1_P3_SIZE linear 8:3 0,$DL1_P4_START $DL1_P4_SIZE linear 8:4 0"
launch_test \
"linear: big minor 257" \
"-hda ${DL1}" \
/dev/dm-1 \
"dm-linear,,257,rw,$DL1_P1_START $DL1_P1_SIZE linear 8:1 0,$DL1_P2_START $DL1_P2_SIZE linear 8:2 0,$DL1_P3_START $DL1_P3_SIZE linear 8:3 0,$DL1_P4_START $DL1_P4_SIZE linear 8:4 0"
launch_test \
"linear: huge minor" \
"-hda ${DL1}" \
/dev/dm-123123123123123123123 \
"dm-linear,,123123123123123123123,rw,$DL1_P1_START $DL1_P1_SIZE linear 8:1 0,$DL1_P2_START $DL1_P2_SIZE linear 8:2 0,$DL1_P3_START $DL1_P3_SIZE linear 8:3 0,$DL1_P4_START $DL1_P4_SIZE linear 8:4 0" \
124
UUID=123123123123
launch_test \
"linear: with uuid (but booting from /dev/dm-0)" \
......@@ -495,6 +520,13 @@ launch_test \
"dm-linear,,,rw" \
124
launch_test \
"linear: bad argument: missing field in table" \
"-hda ${DL1}" \
/dev/dm-4 \
"dm-linear,,BAD,rw,$DL1_P1_START $DL1_P1_SIZE linear 8:1 0,$DL1_P2_START $DL1_P2_SIZE linear 8:2 0,$DL1_P3_START $DL1_P3_SIZE linear 8:3 0, $DL1_P4_SIZE linear 8:4 0" \
124
launch_test \
"linear: bad argument: empty" \
"-hda ${DL1}" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment