Commit 030951b4 authored by Artur Paszkiewicz's avatar Artur Paszkiewicz Committed by Tomasz Zawadzki
Browse files

test/blockdev.sh: test raid5f



Change-Id: Id41448dc828d153ee328d9ce2d1dfff6e8fae5b7
Signed-off-by: default avatarArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14718


Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 9cf1ab5b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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
+12 −0
Original line number Diff line number Diff line
@@ -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