Spdk/test/lib/nvme/unit
Paul Luse be74ecf79a test: add one unit test showing example of ut_mock wrap
This patch shows how to use the spdk_mock library which now only
consists of --wrap capability for a few functions.

Next will be a patch that provides a generic mock capability to
use either the --wrap feature or a combination of globals and
stubs to make adding more UT easier wrt mocking. After that is
in place nvme_ut.c will be updated to use the new library for
all mocking.

Change-Id: I1a6ffb722da043bb70bd4cfe1afa7c5e39a0fccb
Signed-off-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/365074
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-06-15 13:46:19 -04:00
..
nvme_c test: add one unit test showing example of ut_mock wrap 2017-06-15 13:46:19 -04:00
nvme_ctrlr_c test/nvme/nvme_ctrlr: update_firmware 2017-06-06 13:31:13 -04:00
nvme_ctrlr_cmd_c nvme: track qpair within nvme_request 2017-04-12 21:05:23 -07:00
nvme_ns_c test: move test_env.c to a more generic location 2017-02-09 11:03:11 -07:00
nvme_ns_cmd_c env: Rename spdk_malloc/zmalloc/realloc/free to spdk_dma_(func) 2017-05-31 15:30:27 -04:00
nvme_pcie_c nvme: detach the pci device with calling process's own devhandle 2017-05-16 10:35:29 -07:00
nvme_qpair_c include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
nvme_quirks_c nvme: Make striping a quirk 2016-12-09 14:38:42 -07:00
Makefile test/nvme: add nvme_ns unit test 2017-01-30 09:57:38 -07:00