]> www.infradead.org Git - users/sagi/libnvme.git/commit
test: add tests for Identify functions
authorCaleb Sander <csander@purestorage.com>
Sat, 12 Aug 2023 20:50:47 +0000 (14:50 -0600)
committerDaniel Wagner <wagi@monom.org>
Thu, 17 Aug 2023 12:56:12 +0000 (14:56 +0200)
commit6bd65641bd795a9cebce28e570863d5a0d38e3e8
tree034e0c3ce89775edea06f072710b0cc444c4bd77
parent939c95af14303e410b5c736d9c50b9805b9b3def
test: add tests for Identify functions

Use the mock ioctl() infrastructure to test  the functions in ioctl.h
that issue Identify commands.
nvme_identify_ns_csi_user_data_format() and
nvme_identify_iocs_ns_csi_user_data_format() are omitted
since they're not defined in the NVMe specification yet
Functions tested indirectly from other functions are also omitted.

Signed-off-by: Caleb Sander <csander@purestorage.com>
test/ioctl/identify.c [new file with mode: 0644]
test/ioctl/meson.build