Spdk/test
Dariusz Stojaczyk 341a489ac9 ut/vhost: add helper functions to start/stop a device
This refactors the way we setup vhost devices.
Hopefully when we change internal vhost ABI/logic
in future, we won't have to go through all vhost
test cases and refactor them.

alloc_vdev - allocate *and* register the device.
It makes little to no sense to have a non-registered
device since you cannot call any spdk_vhost_dev_*
functions on it.

start_vdev - simulate a connection on the device
socket

stop_vdev - close the connection

cleanup_vdev - do everything necessary to cleanup
and free the vdev This implies closing the connection.

Change-Id: Ic97f969ec7a57cec7092c0f7681c2e7e44ceb31e
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/399603
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2018-02-14 15:36:26 -05:00
..
app test: add 'match' util and use it with blobstore 2018-02-06 18:05:25 -05:00
blobfs/rocksdb test/rocksdb: reduce test time for per-patch tests 2017-12-15 15:48:06 -05:00
blobstore test: add 'match' util and use it with blobstore 2018-02-06 18:05:25 -05:00
config vm_setup: increase number of jobs in make command 2018-02-13 08:54:53 -05:00
cpp_headers build: include spdk.app.mk in all app Makefiles 2017-11-15 17:57:07 -05:00
iscsi_tgt test: delete all iscsi.conf.* and iscsi.conf files. 2018-02-06 18:49:32 -05:00
lib test: use spdk.unittest.mk for env unit tests 2018-02-14 11:07:05 -05:00
lvol test/lvol: fix wrong footer message in test case 700 2018-02-13 18:19:40 -05:00
nvmf nvmf: Add an rpc to add a namespace to a subsystem 2018-02-07 23:22:57 -05:00
pmem bdev/pmem: require name in construct_pmem_bdev RPC 2017-12-04 18:51:14 -05:00
unit ut/vhost: add helper functions to start/stop a device 2018-02-14 15:36:26 -05:00
vhost test/vhost: remove vhost-blk disk size leftover 2018-02-14 15:35:23 -05:00
Makefile test: begin moving unit tests into test/unit 2017-06-16 16:43:48 -04:00
spdk_cunit.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00