diff --git a/autotest.sh b/autotest.sh index 0de6d9811..064cb02ec 100755 --- a/autotest.sh +++ b/autotest.sh @@ -352,6 +352,10 @@ if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then run_test "nvmf_llvm_fuzz" test/nvmf/target/llvm_nvme_fuzz.sh fi fi + + if [[ $SPDK_TEST_RAID5 -eq 1 ]]; then + run_test "blockdev_raid5f" ./test/bdev/blockdev.sh "raid5f" + fi fi timing_enter cleanup diff --git a/test/bdev/blockdev.sh b/test/bdev/blockdev.sh index 669389177..f1b9b63ec 100755 --- a/test/bdev/blockdev.sh +++ b/test/bdev/blockdev.sh @@ -187,6 +187,15 @@ function setup_daos_conf() { "$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() { $testdir/bdevio/bdevio -w -s $PRE_RESERVED_MEM --json "$conf_file" "$env_ctx" & bdevio_pid=$! @@ -524,6 +533,9 @@ case "$test_type" in daos) setup_daos_conf ;; + raid5f) + setup_raid5f_conf + ;; *) echo "invalid test name" exit 1