]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a basic test for nvmecontrol
authordab <dab@FreeBSD.org>
Tue, 7 Apr 2020 20:26:42 +0000 (20:26 +0000)
committerdab <dab@FreeBSD.org>
Tue, 7 Apr 2020 20:26:42 +0000 (20:26 +0000)
commitd59fe9f8846d4a3796f88abfc08d496a47809734
tree7dcb198e4ce4573b1edafbe48a57757a124c1377
parent8d622445c305c7a613592372deca960d61a3c4d2
Add a basic test for nvmecontrol

I recently made some bug fixes in nvmecontrol. It occurred to me that
since nvmecontrol lacks any kyua tests, I should convert the informal
testing I did into a more formal automated test. The test in this
change should be considered just a starting point; it is neither
complete nor thorough. While converting the test to ATF/kyua, I
discovered a small bug in nvmecontrol; the nvmecontrol devlist command
would always exit with an unsuccessful status. So I included the fix
for that, too, so that the test won't fail.

Reviewed by: imp@
MFC after: 3 days
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D24269
etc/mtree/BSD.tests.dist
sbin/nvmecontrol/Makefile
sbin/nvmecontrol/devlist.c
sbin/nvmecontrol/tests/Makefile [new file with mode: 0644]
sbin/nvmecontrol/tests/basic.sh [new file with mode: 0755]