Commit 698da718 authored by Artur Paszkiewicz's avatar Artur Paszkiewicz Committed by Jim Harris
Browse files

ut/raid: move out raid0-specific tests to separate file



This was a leftover from the time when raid0 was the only supported
level and was implemented directly in bdev_raid.c.

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


Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
parent fc3c9b37
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../../../..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk

DIRS-y = bdev_raid.c bdev_raid_sb.c concat.c raid1.c
DIRS-y = bdev_raid.c bdev_raid_sb.c concat.c raid1.c raid0.c

DIRS-$(CONFIG_RAID5F) += raid5f.c

+124 −1028

File changed.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
@@ -146,6 +146,7 @@ raid_test_create_raid_bdev(struct raid_params *params, struct raid_bdev_module *
		SPDK_CU_ASSERT_FATAL(desc != NULL);
		desc->bdev = bdev;

		base_info->raid_bdev = raid_bdev;
		base_info->desc = desc;
		base_info->data_offset = 0;
		base_info->data_size = bdev->blockcnt;
+10 −0
Original line number Diff line number Diff line
#  SPDX-License-Identifier: BSD-3-Clause
#  Copyright (C) 2024 Intel Corporation.
#  All rights reserved.
#

SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../../../../..)

TEST_FILE = raid0_ut.c

include $(SPDK_ROOT_DIR)/mk/spdk.unittest.mk
+915 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading