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:
Seth Howell 2018-03-22 15:33:19 -07:00 committed by Jim Harris
parent 94de7e9175
commit c9fb57a298
21 changed files with 20 additions and 20 deletions

View File

@ -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"

View File

@ -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 */

View File

@ -33,7 +33,7 @@
#include "spdk_cunit.h"
#include "lib/test_env.c"
#include "common/lib/test_env.c"
#include "bdev/gpt/gpt.c"

View File

@ -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"

View File

@ -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 */

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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))

View File

@ -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",

View File

@ -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)

View File

@ -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,

View File

@ -35,7 +35,7 @@
#include "spdk_cunit.h"
#include "lib/test_env.c"
#include "common/lib/test_env.c"
#include "nvme/nvme_pcie.c"

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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"