]> www.infradead.org Git - users/sagi/libnvme.git/commit
mi: Add basic tests
authorJeremy Kerr <jk@codeconstruct.com.au>
Tue, 5 Apr 2022 07:51:26 +0000 (15:51 +0800)
committerJeremy Kerr <jk@codeconstruct.com.au>
Thu, 9 Jun 2022 11:06:51 +0000 (19:06 +0800)
commit9bd757cdecff62fb1316c5fee88a6ecc1408c852
tree4afae3f7d452fea06c2f30185c0b929553a68f2c
parentf7bd7717c0eab470a413295414f672f1e36aafff
mi: Add basic tests

This change adds a couple of basic tests for the mi infrastrcucture.

To do this, we define a test "transport", which just allows inserting a
custom function as the transport's ->submit callback. Each test is then
a pair of: the test itself, and a callback to implement a specific
response from the test "device".

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
src/nvme/mi.c
src/nvme/private.h
test/meson.build
test/mi.c [new file with mode: 0644]