Spdk/test
James Bergsten 5acf617c6e nvme: add functions to pretty-print commands and completions
This change attempts to address the Trello request to decode I/O errors in
NVMe hello_world example.

See https://trello.com/c/MzJJw7hM/2-decode-io-errors-in-nvme-helloworld-example

As part of this change, spdk_nvme_cpl_get_status_string was declared
in nvme.h, and spdk_nvme_qpair_print_command and
spdk_nvme_qpair_print_completion were renamed and added to nvme.h,
allowing all three to used "externally."

To test the failing paths, two compile time defines were added to force a
write or read error (bad LBA) respectively.

As the example does a read after write, if the write fails, the example fails.

Signed-off-by: James Bergsten <jamesx.bergsten@intel.com>
Change-Id: Ib94b4a02495eb40966e3f49517a5bdf64485538a
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457076
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-07-15 07:47:03 +00:00
..
app test: add a fuzzer for the vhost API 2019-07-08 09:18:19 +00:00
bdev test/bdevio: present info when RPC lib is missing from PYTHONPATH 2019-07-12 07:44:34 +00:00
blobfs test/rocksdb: remove run_tests.sh 2019-07-05 12:13:16 +00:00
blobstore test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
common net/vpp: fix vpp 19.01 installation on fedora 29/30 2019-07-12 07:48:09 +00:00
config_converter iscsi: Deprecate MinConnectionsPerCore 2019-05-06 17:10:48 +00:00
cpp_headers Makefile: Add possibility to uninstall spdk. 2019-05-16 20:56:18 +00:00
env test/nvme: Allow NVMe with 0 namespaces in tests 2019-07-08 09:39:09 +00:00
event notify: add notification library 2019-03-29 21:15:14 +00:00
ftl test/ftl: wait till nbd is ready when loading JSON config 2019-07-12 12:39:38 +00:00
ioat test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
iscsi_tgt test/iscsi: check iscsiadm to set DataDigest 2019-07-12 12:26:30 +00:00
json_config scripts: replace egrep with grep -E 2019-07-05 12:06:10 +00:00
lvol test/lvol: Check if snapshot with snapshot can be deleted 2019-07-12 08:26:04 +00:00
nvme nvme/test: Fix NVMe & setup.sh mounts test 2019-07-15 03:27:06 +00:00
nvmf test/nvmf: remove extra call to perf. 2019-07-09 13:23:03 +00:00
ocf test/ocf: disable persistent metadata test 2019-06-11 18:16:55 +00:00
pmem test/pmem: cleanup common.sh 2019-06-19 03:54:58 +00:00
rpc_client test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
spdkcli spdkcli: test pmem_pool_info comand 2019-07-15 03:39:06 +00:00
unit nvme: add functions to pretty-print commands and completions 2019-07-15 07:47:03 +00:00
vhost test/vhost: Use whichever qemu is installed on the system 2019-07-11 11:31:21 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00