test: use spdk_unittest.mk for raid unit tests
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I925bf71414fe74868eb14faf365e09258fea87eb Reviewed-on: https://review.gerrithub.io/421177 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Kunal Sablok <kunal.sablok@intel.com>
This commit is contained in:
parent
c899854d03
commit
aec9c3cded
@ -35,22 +35,6 @@ SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../../../..)
|
|||||||
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
||||||
include $(SPDK_ROOT_DIR)/mk/spdk.app.mk
|
include $(SPDK_ROOT_DIR)/mk/spdk.app.mk
|
||||||
|
|
||||||
SPDK_LIB_LIST = log
|
TEST_FILE = bdev_raid_ut.c
|
||||||
|
|
||||||
CFLAGS += -I$(SPDK_ROOT_DIR)/test
|
include $(SPDK_ROOT_DIR)/mk/spdk.unittest.mk
|
||||||
CFLAGS += -I$(SPDK_ROOT_DIR)/lib/bdev
|
|
||||||
LIBS += $(SPDK_LIB_LINKER_ARGS)
|
|
||||||
LIBS += -lcunit
|
|
||||||
|
|
||||||
APP = bdev_raid_ut
|
|
||||||
C_SRCS = bdev_raid_ut.c
|
|
||||||
|
|
||||||
all: $(APP)
|
|
||||||
|
|
||||||
$(APP): $(OBJS) $(SPDK_LIB_FILES)
|
|
||||||
$(LINK_C)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(CLEAN_C) $(APP)
|
|
||||||
|
|
||||||
include $(SPDK_ROOT_DIR)/mk/spdk.deps.mk
|
|
||||||
|
@ -35,8 +35,8 @@
|
|||||||
#include "spdk_cunit.h"
|
#include "spdk_cunit.h"
|
||||||
#include "spdk/env.h"
|
#include "spdk/env.h"
|
||||||
#include "spdk_internal/mock.h"
|
#include "spdk_internal/mock.h"
|
||||||
#include "raid/bdev_raid.c"
|
#include "bdev/raid/bdev_raid.c"
|
||||||
#include "raid/bdev_raid_rpc.c"
|
#include "bdev/raid/bdev_raid_rpc.c"
|
||||||
|
|
||||||
#define MAX_BASE_DRIVES 255
|
#define MAX_BASE_DRIVES 255
|
||||||
#define MAX_RAIDS 31
|
#define MAX_RAIDS 31
|
||||||
|
Loading…
Reference in New Issue
Block a user