Commit 10421624 authored by Helen Koike's avatar Helen Koike

wip: expect failure from constrained targets

parent c898ef69
......@@ -608,23 +608,27 @@ launch_test \
raid_tests()
{
# raid is not supported, should fail
launch_test \
"raid4: with minor" \
"-hda ${DR41}" \
/dev/dm-4 \
"dm-raid,,4,ro,0 $DR41_sectors raid raid4 3 64 region_size 1024 4 - 8:1 - 8:2 - 8:3 - 8:4"
"dm-raid,,4,ro,0 $DR41_sectors raid raid4 3 64 region_size 1024 4 - 8:1 - 8:2 - 8:3 - 8:4" \
124
launch_test \
"raid5: no minor" \
"-hda ${DR51}" \
/dev/dm-0 \
"dm-raid,,,ro,0 $DR51_sectors raid raid5_ls 3 64 region_size 1024 4 - 8:1 - 8:2 - 8:3 - 8:4"
"dm-raid,,,ro,0 $DR51_sectors raid raid5_ls 3 64 region_size 1024 4 - 8:1 - 8:2 - 8:3 - 8:4" \
124
launch_test \
"raid6: no minor" \
"-hda ${DR61}" \
/dev/dm-0 \
"dm-raid,,,ro,0 $DR61_sectors raid raid6_zr 3 64 region_size 1024 4 - 8:1 - 8:2 - 8:3 - 8:4"
"dm-raid,,,ro,0 $DR61_sectors raid raid6_zr 3 64 region_size 1024 4 - 8:1 - 8:2 - 8:3 - 8:4" \
124
}
snap_tests()
......@@ -641,87 +645,82 @@ launch_test \
/dev/dm-4 \
"dm-snap-orig,,4,ro,0 ${D4P_sectors} snapshot-origin 8:2"
# launch_test \
# "snap: snapshot" \
# "-hda ${D4P}" \
# /dev/dm-0 \
# "dm-snap,,,ro,0 ${D4P_sectors} snapshot 8:2 8:1 P 8"
#
# launch_test \
# "snap: snapshot-merge" \
# "-hda ${D4P}" \
# /dev/dm-0 \
# "dm-snap,,,ro,0 ${D4P_sectors} snapshot-merge 8:1 8:2 P 8"
}
mirror_tests()
{
# snapshot and snapshot-merge is not supported, should fail
launch_test \
"mirror: core invert" \
"snap: snapshot" \
"-hda ${D4P}" \
/dev/dm-4 \
"dm-mirror-core,,4,ro,0 ${D4P_sectors} mirror core 1 1024 2 /dev/sda2 0 /dev/sda1 0 1 handle_errors"
/dev/dm-0 \
"dm-snap,,,ro,0 ${D4P_sectors} snapshot 8:2 8:1 P 8" \
124
launch_test \
"mirror: core" \
"snap: snapshot-merge" \
"-hda ${D4P}" \
/dev/dm-4 \
"dm-mirror-core,,4,ro,0 ${D4P_sectors} mirror core 1 1024 2 /dev/sda1 0 /dev/sda2 0 1 handle_errors"
/dev/dm-0 \
"dm-snap,,,ro,0 ${D4P_sectors} snapshot-merge 8:1 8:2 P 8" \
124
}
mirror_tests()
{
# mirror is not supported, should fail
launch_test \
"mirror: core" \
"-hda ${D4P}" \
/dev/dm-4 \
"dm-mirror-core,,4,ro,0 ${D4P_sectors} mirror core 1 1024 2 /dev/sda1 0 /dev/sda2 0 1 handle_errors"
launch_test \
"mirror: core sda3 invert" \
"-hda ${D4P}" \
/dev/dm-4 \
"dm-mirror-core,,4,ro,0 ${D4P_sectors} mirror core 1 1024 2 /dev/sda1 0 /dev/sda3 0 1 handle_errors"
"dm-mirror-core,,4,ro,0 ${D4P_sectors} mirror core 1 1024 2 /dev/sda1 0 /dev/sda2 0 1 handle_errors" \
124
launch_test \
"mirror: core sda3" \
"-hda ${D4P}" \
/dev/dm-4 \
"dm-mirror-core,,4,ro,0 ${D4P_sectors} mirror core 1 1024 2 /dev/sda1 0 /dev/sda3 0 1 handle_errors"
"dm-mirror-core,,4,ro,0 ${D4P_sectors} mirror core 1 1024 2 /dev/sda1 0 /dev/sda3 0 1 handle_errors" \
124
launch_test \
"mirror: disk" \
"-hda ${D4P}" \
/dev/dm-4 \
"dm-mirror-disk,,4,ro,0 ${D4P_sectors} mirror disk 2 /dev/sda3 1024 2 /dev/sda1 0 /dev/sda2 0 1 handle_errors"
"dm-mirror-disk,,4,ro,0 ${D4P_sectors} mirror disk 2 /dev/sda3 1024 2 /dev/sda1 0 /dev/sda2 0 1 handle_errors" \
124
}
cache_tests()
{
# cache is not supported, should fail
launch_test \
"cache: with minor" \
"-hda ${D4P}" \
/dev/dm-4 \
"dm-cache,,4,ro,0 ${D4P_sectors} cache /dev/sda3 /dev/sda2 /dev/sda1 128 0 default 0"
"dm-cache,,4,ro,0 ${D4P_sectors} cache /dev/sda3 /dev/sda2 /dev/sda1 128 0 default 0" \
124
}
era_tests()
{
# era is not supported, should fail
launch_test \
"era: with minor" \
"-hda ${D4P}" \
/dev/dm-4 \
"dm-era,,4,ro,0 ${D4P_sectors} era /dev/sda1 /dev/sda2 128"
"dm-era,,4,ro,0 ${D4P_sectors} era /dev/sda1 /dev/sda2 128" \
124
launch_test \
"era: with minor" \
"-hda ${D4P}" \
/dev/dm-4 \
"dm-era,,4,ro,0 ${D4P_sectors} era /dev/sda2 /dev/sda1 128"
"dm-era,,4,ro,0 ${D4P_sectors} era /dev/sda2 /dev/sda1 128" \
124
launch_test \
"era: with minor" \
"-hda ${D4P}" \
/dev/dm-4 \
"dm-era,,4,ro,0 ${D4P_sectors} era /dev/sda1 /dev/sda2 128"
"dm-era,,4,ro,0 ${D4P_sectors} era /dev/sda1 /dev/sda2 128" \
124
}
delay_tests()
......@@ -785,13 +784,13 @@ create_4part $D4P D4P_ 4part
# Load disk info
source ${D4P}.info
#verity_tests
#linear_parser_tests
#striped_tests
#crypt_tests
#raid_tests
#era_tests
verity_tests
linear_parser_tests
striped_tests
crypt_tests
raid_tests
era_tests
snap_tests
#mirror_tests
#cache_tests
mirror_tests
cache_tests
delay_tests
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