[sane-devel] [PATCH] [RFC] add sanei_usb test program

Stef stef.dev at free.fr
Wed Mar 6 21:21:14 UTC 2013


     Hello,

     here is a patch that adds a sanei_usb_test program in a new 
testsuite/sanei directory. This program tests these sanei_usb functions:
     - sanei_usb_init()
     - sanei_usb_open()
     - sanei_usb_get_vendor_product_byname()
     - sanei_usb_close()
     - sanei_usb_exit()

It is compiled and run only when 'make tests' is ran in the new 
subdirectory. It needs at least one USB scanner plugged. I'm using it to 
check the changes I am currently doing in sanei_usb.c .
     In the long term, I may even add use of umockdev (linux only) to 
tests more things without need for actual scanner devices.

Regards,
     Stef



More information about the sane-devel mailing list