sane-project-backends/testsuite/sanei
Chris Bagwell af10791227 Improve libusb's error code for permission issues.
libusb on my Linux box is returning EACCES error when invalid
permissions exist.  Modify open to translate that into
SANE_STATUS_ECCESS_DENIED since that error description is
used for this case.

Modify sanei_usb_test.c to not treat access denied or busy
error codes as real failures since its expected to occur on
boxes that USB device is already claimed by another driver
and if that device uses default root only permissions.
2013-08-26 21:21:20 -05:00
..
data add unit tests for sanei_constraint, sanei_config and sanei_check 2013-03-24 14:53:40 +01:00
Makefile.am Update sanei_config_test to use full config path 2013-08-16 11:10:59 -05:00
Makefile.in Update sanei_config_test to use full config path 2013-08-16 11:10:59 -05:00
README add unit tests for sanei_constraint, sanei_config and sanei_check 2013-03-24 14:53:40 +01:00
sanei_check_test.c add unit tests for sanei_constraint, sanei_config and sanei_check 2013-03-24 14:53:40 +01:00
sanei_config_test.c Update sanei_config_test to use full config path 2013-08-16 11:10:59 -05:00
sanei_constrain_test.c fixed range overflow due to rounding in sanei_constrain_value 2013-08-04 09:04:47 +02:00
sanei_usb_test.c Improve libusb's error code for permission issues. 2013-08-26 21:21:20 -05:00
test_wire.c add unit tests for sanei_constraint, sanei_config and sanei_check 2013-03-24 14:53:40 +01:00

README

SANEI test suite
================

This directory contains test programs for sanei functions. They are compiled
and run by 'make check'.

sanei_usb_test
---------------
	 Tests sanei_usb_* functions. No USB scanner needs to be plugged,
but in this case less code is covered (open/close and claim/release 
of real devices).
Function currently tested are:
	- sanei_usb_init()
	- sanei_usb_open(): valid, invalid devname, already opened
	- sanei_usb_get_vendor_product_byname(): valid and invalid devname
	- sanei_usb_get_vendor_product(): valid and invalid devname
	- sanei_usb_close()
	- sanei_usb_exit()
	- store_device()


sanei_constrain_test
--------------------
	Tests for sanei_constrain_* functions
Function currently tested are:
	- sanei_constrain_value()


sanei_check_test
----------------
	Tests for sanei_check_* functions
Function currently tested are:
	- sanei_check_value()


sanei_config_test
-----------------
	Tests for sanei_configure_* functions
Function currently tested are:
	- sanei_configure_attach()