freebsd-skq/lib/libcam
Enji Cooper b0b1dbdd49 Start adding basic tests for cam(3)
This change contains several negative and positive tests for:
- cam_open_device
- cam_close_device
- cam_getccb
- cam_freeccb

This also contains a test for the failure case noted in bug 217649,
i.e., O_RDWR must be specified because pass(4) requires it.

This test unfortunately cannot assume that cam-capable devices are
present, so the user must explicitly provide a device via
`test_suites.FreeBSD.cam_test_device`. In the future, a test kernel
module might be shipped, or ctl(4) might be used, as a test device
when testing out libcam, which will allow the tests to do away with
having to specify an explicit test device.

Reviewed by:	asomers, ken (earlier diff)
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
Differential Revision: D9928
2017-03-15 18:00:54 +00:00
..
tests Start adding basic tests for cam(3) 2017-03-15 18:00:54 +00:00
cam_cdbparse.3 lib/libcam/cam_cdbparse.3: fix manpage warnings 2017-03-13 17:35:55 +00:00
cam.3 lib/libcam/cam.3: note that cam_freeccb(3) with ccb == NULL is a no-op 2017-03-13 02:12:33 +00:00
camlib.c Fix multiple Coverity Out-of-bounds access false postive issues in CAM 2016-05-24 00:57:11 +00:00
camlib.h Clean up trailing whitespace in lib/libcam; no functional change 2016-04-14 21:10:53 +00:00
Makefile Start adding basic tests for cam(3) 2017-03-15 18:00:54 +00:00
Makefile.depend META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host. 2015-11-25 19:10:28 +00:00
scsi_cmdparse.c Fix up r314189 2017-02-24 06:49:31 +00:00