test: move test_env.c to a more generic location

This prepares for using this in tests for other libraries.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ibd4d12006d602f772cd9253f3eab9d47c0593767
This commit is contained in:
Jim Harris 2017-02-08 11:38:16 -07:00 committed by Daniel Verkamp
parent 86f80d2d70
commit 5efd4b8800
7 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@
#include "nvme/nvme.c"
#include "lib/nvme/unit/test_env.c"
#include "lib/test_env.c"
int
spdk_pci_nvme_enumerate(spdk_pci_enum_cb enum_cb, void *enum_ctx)

View File

@ -37,7 +37,7 @@
#include <stdbool.h>
#include "lib/nvme/unit/test_env.c"
#include "lib/test_env.c"
struct spdk_trace_flag SPDK_TRACE_NVME = {
.name = "nvme",

View File

@ -37,7 +37,7 @@
#include "nvme/nvme_ns.c"
#include "lib/nvme/unit/test_env.c"
#include "lib/test_env.c"
int
nvme_ctrlr_cmd_identify_namespace(struct spdk_nvme_ctrlr *ctrlr, uint16_t nsid, void *payload,

View File

@ -35,7 +35,7 @@
#include "nvme/nvme_ns_cmd.c"
#include "lib/nvme/unit/test_env.c"
#include "lib/test_env.c"
static struct nvme_driver _g_nvme_driver = {
.lock = PTHREAD_MUTEX_INITIALIZER,

View File

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

View File

@ -35,7 +35,7 @@
#include "spdk_cunit.h"
#include "lib/nvme/unit/test_env.c"
#include "lib/test_env.c"
bool trace_flag = false;
#define SPDK_TRACE_NVME trace_flag