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:
Jim Harris 2018-02-13 20:16:20 -07:00 committed by Daniel Verkamp
parent 0169a18fc2
commit 304bed6da0
4 changed files with 10 additions and 40 deletions

View File

@ -35,22 +35,7 @@ SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../../..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.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
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
include $(SPDK_ROOT_DIR)/mk/spdk.unittest.mk

View File

@ -38,8 +38,8 @@
#include "lib/test_env.c"
#include "spdk_cunit.h"
#include "blobfs.c"
#include "tree.c"
#include "blobfs/blobfs.c"
#include "blobfs/tree.c"
#include "unit/lib/blob/bs_dev_common.c"

View File

@ -35,22 +35,7 @@ SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../../..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.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
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
include $(SPDK_ROOT_DIR)/mk/spdk.unittest.mk

View File

@ -42,8 +42,8 @@
#include "spdk_cunit.h"
#include "unit/lib/blob/bs_dev_common.c"
#include "lib/test_env.c"
#include "blobfs.c"
#include "tree.c"
#include "blobfs/blobfs.c"
#include "blobfs/tree.c"
struct spdk_filesystem *g_fs;
struct spdk_file *g_file;