Commit 16596c48 authored by Helen Koike's avatar Helen Koike

wip: add misc logs

parent 10421624
......@@ -355,18 +355,18 @@ create_linear()
launch_test()
{
DESC=$1
KVM_PARAM=$2
ROOT_DEV=$3
DM_BOOT_PARAM=$4
EXPECT_RESULT=${5-0}
LOG_N=${LOG_N-0}
N_SUCCESS=${N_SUCCESS-0}
N_FAIL=${N_FAIL-0}
local DESC="$1"
local KVM_PARAM="$2"
local ROOT_DEV="$3"
local DM_BOOT_PARAM="$4"
local EXPECT_RESULT="${5-0}"
LOG_N="${LOG_N-0}"
N_SUCCESS="${N_SUCCESS-0}"
N_FAIL="${N_FAIL-0}"
LOG_N=$((LOG_N+1))
args="loglevel=15 nokaslr printk.synchronous=1 console=ttyS0 dm=\"${DM_BOOT_PARAM}\" root=${ROOT_DEV} ro init=/bin/init.sh"
local args="loglevel=15 nokaslr printk.synchronous=1 console=ttyS0 dm=\"${DM_BOOT_PARAM}\" root=${ROOT_DEV} ro init=/bin/init.sh"
mkdir -p logs/${LOG_N}
......@@ -738,6 +738,54 @@ launch_test \
"dm-delay,,4,ro,0 ${D4P_sectors} delay /dev/sda1 0 0 /dev/sda1 0 500"
}
misc_tests()
{
args="dm-linear1,,1,rw,$DL1_P1_START $DL1_P1_SIZE linear /dev/sda1 0,$DL1_P2_START $DL1_P2_SIZE linear /dev/sda2 0,$DL1_P3_START $DL1_P3_SIZE linear /dev/sda3 0,$DL1_P4_START $DL1_P4_SIZE linear /dev/sda4 0"
args+=";dm-linear2,,2,rw,$DL2_P1_START $DL2_P1_SIZE linear /dev/sdb1 0,$DL2_P2_START $DL2_P2_SIZE linear /dev/sdb2 0,$DL2_P3_START $DL2_P3_SIZE linear /dev/sdb3 0,$DL2_P4_START $DL2_P4_SIZE linear /dev/sdb4 0"
args+=";dm-verity,,3,ro,0 $DV1_sectors verity $DV1_hash_type /dev/sdc1 /dev/sdc2 $DV1_data_block_size $DV1_hash_block_size $DV1_data_blocks 1 $DV1_hash_algorithm $DV1_root_hash $DV1_salt"
args+=";dm-striped,,4,rw,0 $DS1_sectors striped 4 $DS1_PAGESIZE /dev/sdd1 0 /dev/sdd2 0 /dev/sdd3 0 /dev/sdd4 0"
args+=";dm-crypt,,5,ro,0 $DC1_sectors crypt aes-xts-plain64 $DC1_key 0 /dev/vda 0 1 allow_discards"
args+=";dm-snap-orig,,6,ro,0 ${D4P_sectors} snapshot-origin /dev/vdb1"
disks="-hda ${DL1} -hdb ${DL2} -hdc ${DV1} -hdd ${DS1} -drive file=${DC1},if=virtio -drive file=${D4P},if=virtio"
launch_test \
"misc: multi devices: boot 1" \
"$disks" \
/dev/dm-1 \
"$args"
launch_test \
"misc: multi devices: boot 2" \
"$disks" \
/dev/dm-2 \
"$args"
launch_test \
"misc: multi devices: boot 3" \
"$disks" \
/dev/dm-3 \
"$args"
launch_test \
"misc: multi devices: boot 4" \
"$disks" \
/dev/dm-4 \
"$args"
launch_test \
"misc: multi devices: boot 5" \
"$disks" \
/dev/dm-5 \
"$args"
launch_test \
"misc: multi devices: boot 6" \
"$disks" \
/dev/dm-6 \
"$args"
}
DR41=disk-raid4-1.img
create_raid $DR41 DR41_ raid4
# Load disk info
......@@ -794,3 +842,4 @@ snap_tests
mirror_tests
cache_tests
delay_tests
misc_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