test/blockdev.sh: test raid5f
Change-Id: Id41448dc828d153ee328d9ce2d1dfff6e8fae5b7 Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14718 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
9cf1ab5b1c
commit
030951b454
@ -352,6 +352,10 @@ if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then
|
|||||||
run_test "nvmf_llvm_fuzz" test/nvmf/target/llvm_nvme_fuzz.sh
|
run_test "nvmf_llvm_fuzz" test/nvmf/target/llvm_nvme_fuzz.sh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $SPDK_TEST_RAID5 -eq 1 ]]; then
|
||||||
|
run_test "blockdev_raid5f" ./test/bdev/blockdev.sh "raid5f"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
timing_enter cleanup
|
timing_enter cleanup
|
||||||
|
@ -187,6 +187,15 @@ function setup_daos_conf() {
|
|||||||
"$rpc_py" bdev_daos_create Daos0 $pool $cont 16 4096
|
"$rpc_py" bdev_daos_create Daos0 $pool $cont 16 4096
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setup_raid5f_conf() {
|
||||||
|
"$rpc_py" <<- RPC
|
||||||
|
bdev_malloc_create -b Malloc0 32 512
|
||||||
|
bdev_malloc_create -b Malloc1 32 512
|
||||||
|
bdev_malloc_create -b Malloc2 32 512
|
||||||
|
bdev_raid_create -n raid5f -z 2 -r 5f -b "Malloc0 Malloc1 Malloc2"
|
||||||
|
RPC
|
||||||
|
}
|
||||||
|
|
||||||
function bdev_bounds() {
|
function bdev_bounds() {
|
||||||
$testdir/bdevio/bdevio -w -s $PRE_RESERVED_MEM --json "$conf_file" "$env_ctx" &
|
$testdir/bdevio/bdevio -w -s $PRE_RESERVED_MEM --json "$conf_file" "$env_ctx" &
|
||||||
bdevio_pid=$!
|
bdevio_pid=$!
|
||||||
@ -524,6 +533,9 @@ case "$test_type" in
|
|||||||
daos)
|
daos)
|
||||||
setup_daos_conf
|
setup_daos_conf
|
||||||
;;
|
;;
|
||||||
|
raid5f)
|
||||||
|
setup_raid5f_conf
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "invalid test name"
|
echo "invalid test name"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user