test: use spdk.unittest.mk for blobfs unit tests
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ie8ddb2a04162a74c8fd778f4e5260536d3aa4335 Reviewed-on: https://review.gerrithub.io/399921 Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
0169a18fc2
commit
304bed6da0
@ -35,22 +35,7 @@ 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
|
||||||
|
|
||||||
APP = blobfs_async_ut
|
SPDK_LIB_LIST = blob
|
||||||
|
TEST_FILE = blobfs_async_ut.c
|
||||||
|
|
||||||
C_SRCS := blobfs_async_ut.c
|
include $(SPDK_ROOT_DIR)/mk/spdk.unittest.mk
|
||||||
CFLAGS += -I$(SPDK_ROOT_DIR)/lib/blobfs -I$(SPDK_ROOT_DIR)/lib/blob
|
|
||||||
CFLAGS += -I$(SPDK_ROOT_DIR)/test
|
|
||||||
|
|
||||||
SPDK_LIB_LIST = blob log util
|
|
||||||
|
|
||||||
LIBS += $(SPDK_LIB_LINKER_ARGS) -lcunit
|
|
||||||
|
|
||||||
all : $(APP)
|
|
||||||
|
|
||||||
$(APP) : $(OBJS) $(SPDK_LIB_FILES)
|
|
||||||
$(LINK_C)
|
|
||||||
|
|
||||||
clean :
|
|
||||||
$(CLEAN_C) $(APP)
|
|
||||||
|
|
||||||
include $(SPDK_ROOT_DIR)/mk/spdk.deps.mk
|
|
||||||
|
@ -38,8 +38,8 @@
|
|||||||
#include "lib/test_env.c"
|
#include "lib/test_env.c"
|
||||||
|
|
||||||
#include "spdk_cunit.h"
|
#include "spdk_cunit.h"
|
||||||
#include "blobfs.c"
|
#include "blobfs/blobfs.c"
|
||||||
#include "tree.c"
|
#include "blobfs/tree.c"
|
||||||
|
|
||||||
#include "unit/lib/blob/bs_dev_common.c"
|
#include "unit/lib/blob/bs_dev_common.c"
|
||||||
|
|
||||||
|
@ -35,22 +35,7 @@ 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
|
||||||
|
|
||||||
APP = blobfs_sync_ut
|
SPDK_LIB_LIST = blob
|
||||||
|
TEST_FILE = blobfs_sync_ut.c
|
||||||
|
|
||||||
C_SRCS := blobfs_sync_ut.c
|
include $(SPDK_ROOT_DIR)/mk/spdk.unittest.mk
|
||||||
CFLAGS += -I$(SPDK_ROOT_DIR)/lib/blobfs -I$(SPDK_ROOT_DIR)/lib/blob
|
|
||||||
CFLAGS += -I$(SPDK_ROOT_DIR)/test
|
|
||||||
|
|
||||||
SPDK_LIB_LIST = util log blob util
|
|
||||||
|
|
||||||
LIBS += $(SPDK_LIB_LINKER_ARGS) -lcunit
|
|
||||||
|
|
||||||
all : $(APP)
|
|
||||||
|
|
||||||
$(APP) : $(OBJS) $(SPDK_LIB_FILES)
|
|
||||||
$(LINK_C)
|
|
||||||
|
|
||||||
clean :
|
|
||||||
$(CLEAN_C) $(APP)
|
|
||||||
|
|
||||||
include $(SPDK_ROOT_DIR)/mk/spdk.deps.mk
|
|
||||||
|
@ -42,8 +42,8 @@
|
|||||||
#include "spdk_cunit.h"
|
#include "spdk_cunit.h"
|
||||||
#include "unit/lib/blob/bs_dev_common.c"
|
#include "unit/lib/blob/bs_dev_common.c"
|
||||||
#include "lib/test_env.c"
|
#include "lib/test_env.c"
|
||||||
#include "blobfs.c"
|
#include "blobfs/blobfs.c"
|
||||||
#include "tree.c"
|
#include "blobfs/tree.c"
|
||||||
|
|
||||||
struct spdk_filesystem *g_fs;
|
struct spdk_filesystem *g_fs;
|
||||||
struct spdk_file *g_file;
|
struct spdk_file *g_file;
|
||||||
|
Loading…
Reference in New Issue
Block a user