sane-project-backends/testsuite/tools
Tom Gundersen 3087a5efb5 sane-desc: add support for udev's hwdb
udev now comes with a hardware database (hwdb) which is meant to replace large
rule files as the one typically shipped with sane. This should significantly
speed up the processing of usb add events.

Add the required output format and add a special udev output mode which is
produces the udev file to be used with hwdb.

Sample hwdb file: <https://dev.archlinux.org/~tomegun/20-sane.hwdb>.
Sample udev+hwdb rules file:
                       <https://dev.archlinux.org/~tomegun/53-sane.rules>.

Similar support was recently added to gphoto2:
                            <http://sourceforge.net/p/gphoto/code/14490/>.

The new udev rules file does not support old udev/kernels as these anyway
don't support hwdb.

Moreover, it does not come with GROUP=/MODE= or ACL support as this can easily
be done externally by hooking into the libsane_matched envvar. In particular
systemd-logind uses this to do its own ACL handling.
2013-08-02 22:18:11 +02:00
..
data sane-desc: add support for udev's hwdb 2013-08-02 22:18:11 +02:00
Makefile.am sane-desc: add support for udev's hwdb 2013-08-02 22:18:11 +02:00
Makefile.in sane-desc: add support for udev's hwdb 2013-08-02 22:18:11 +02:00
README

README

TOOLS test suite
================

This directory contains test for tools programs. They are run by 'make check'.

sane-desc
---------
	 sane-desc is ran for all known modes, using a test 'desc' file. 
The output is compared to a reference file for the same mode. Test fails
if they are different.