test: move test_env.c under test/common/lib
This file is accessed by files in multiple directories under test. Change-Id: I634481fb58eab5c097aaece5289f88e531954fcb Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/404976 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
94de7e9175
commit
c9fb57a298
2
test/lib/env/memory/memory_ut.c
vendored
2
test/lib/env/memory/memory_ut.c
vendored
@ -33,7 +33,7 @@
|
||||
|
||||
#include "env_dpdk/memory.c"
|
||||
|
||||
#include "test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
#include "spdk_cunit.h"
|
||||
|
||||
#include "spdk/bit_array.h"
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
#include "spdk_cunit.h"
|
||||
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
#include "unit/lib/json_mock.c"
|
||||
|
||||
/* HACK: disable VTune integration so the unit test doesn't need VTune headers and libs to build */
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
#include "spdk_cunit.h"
|
||||
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
|
||||
#include "bdev/gpt/gpt.c"
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
#include "spdk_cunit.h"
|
||||
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
#include "unit/lib/json_mock.c"
|
||||
#include "lib/ut_multithread.c"
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
#include "spdk_cunit.h"
|
||||
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
#include "unit/lib/json_mock.c"
|
||||
|
||||
/* HACK: disable VTune integration so the unit test doesn't need VTune headers and libs to build */
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
#include "spdk_cunit.h"
|
||||
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
#include "unit/lib/json_mock.c"
|
||||
|
||||
#include "bdev/pmem/bdev_pmem.c"
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include "spdk_cunit.h"
|
||||
#include "spdk/blob.h"
|
||||
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
#include "../bs_dev_common.c"
|
||||
#include "blob/blobstore.c"
|
||||
#include "blob/request.c"
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
#include "CUnit/Basic.h"
|
||||
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
|
||||
#include "spdk_cunit.h"
|
||||
#include "blobfs/blobfs.c"
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
#include "spdk_cunit.h"
|
||||
#include "unit/lib/blob/bs_dev_common.c"
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
#include "blobfs/blobfs.c"
|
||||
#include "blobfs/tree.c"
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include "spdk/io_channel.h"
|
||||
#include "spdk/util.h"
|
||||
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
|
||||
#include "lvol/lvol.c"
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
#include "spdk_internal/mock.h"
|
||||
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
|
||||
DEFINE_STUB_V(nvme_ctrlr_fail,
|
||||
(struct spdk_nvme_ctrlr *ctrlr, bool hot_remove))
|
||||
|
@ -37,7 +37,7 @@
|
||||
|
||||
#include "spdk_internal/log.h"
|
||||
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
|
||||
struct spdk_trace_flag SPDK_LOG_NVME = {
|
||||
.name = "nvme",
|
||||
|
@ -37,7 +37,7 @@
|
||||
|
||||
#include "nvme/nvme_ns.c"
|
||||
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
|
||||
SPDK_LOG_REGISTER_COMPONENT("nvme", SPDK_LOG_NVME)
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include "nvme/nvme_ns_cmd.c"
|
||||
#include "nvme/nvme.c"
|
||||
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
|
||||
static struct nvme_driver _g_nvme_driver = {
|
||||
.lock = PTHREAD_MUTEX_INITIALIZER,
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
#include "spdk_cunit.h"
|
||||
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
|
||||
#include "nvme/nvme_pcie.c"
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
#include "spdk_cunit.h"
|
||||
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
|
||||
bool trace_flag = false;
|
||||
#define SPDK_LOG_NVME trace_flag
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include "spdk_cunit.h"
|
||||
|
||||
#include "util/io_channel.c"
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
#include "lib/ut_multithread.c"
|
||||
|
||||
static void
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include "spdk_cunit.h"
|
||||
#include "spdk/io_channel.h"
|
||||
#include "spdk_internal/mock.h"
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
|
||||
#include "vhost/vhost.c"
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include "CUnit/Basic.h"
|
||||
#include "spdk_cunit.h"
|
||||
#include "spdk_internal/mock.h"
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
|
||||
#include "vhost/vhost_blk.c"
|
||||
#include "unit/lib/vhost/test_vhost.c"
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include "CUnit/Basic.h"
|
||||
#include "spdk_cunit.h"
|
||||
#include "spdk_internal/mock.h"
|
||||
#include "lib/test_env.c"
|
||||
#include "common/lib/test_env.c"
|
||||
|
||||
#include "spdk/scsi.h"
|
||||
#include "vhost/vhost_scsi.c"
|
||||
|
Loading…
Reference in New Issue
Block a user