Wykres commitów

47 Commity (f152b40faff5a1ebb5bfb011c11a60ecd9e6805b)

Autor SHA1 Wiadomość Data
m. allan noah 7566619e53 rebuild with automake 1.14.1 2015-08-31 20:58:30 -04:00
Yuri Chornoivan 648d933c56 Fix minor typos in messages and comments 2015-08-31 20:31:54 -04:00
Alessandro Zummo ccd15dc966 Revert "epsonds: enable double feed detection"
This reverts commit 005c3928a5.
2015-04-26 23:09:08 +02:00
Alessandro Zummo 005c3928a5 epsonds: enable double feed detection 2015-04-26 22:44:01 +02:00
Stéphane Voltz b0133c1ed2 fix #314694
- make sanei_config testsuite handle out of source builds by using
  SANE_CONFIG_DIR
2014-07-01 22:39:35 +02:00
Nils Philippsen aa8d117c2a fix "make check"
Regenerate testsuite reference data which was necessary after these
fixes:

- commit 3b96baef65
  "sane-desc: fix udev hwdb generation"
- commit 758731489d
  "sane-desc: fix faulty udev logic for SCSI devices"
2013-12-03 15:26:53 +01:00
Stéphane Voltz febae63aa3 handle version number change in testsuite 2013-11-21 06:06:17 +01:00
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
Chris Bagwell 321a982875 Fixes to tools testsuite for distcheck target
Add missing data files to distribution.
Use $srcdir so tests work when build and source directory are not
the same.
2013-08-16 13:39:23 -05:00
Chris Bagwell 43da1e64c1 Add fake names to fake devices
strcmp() does not protect against NULL pointers and is
crashing on at least OS X for the fake devices we are creating
by setting device_number to MAX value.

Add a fake empty string to prevent this.
2013-08-16 13:10:32 -05:00
Chris Bagwell 317626116f Update sanei_config_test to use full config path
This lets test pass even when ran from a different location.

Also, added missing data files to distribution list.
These two things lets this test case pass when ran using "make distcheck".
2013-08-16 11:10:59 -05:00
Chris Bagwell bc2dc68fa5 Improve snmp detection when cross compiling.
Improving here means do not set LIBS/CFLAGS if library is not detected.
This prevents some unknown options based to ld when host is Linux and
target is mingw32/64.  Further improvements are needed if one wants this
snmp support when cross compiling to really work.

Also, to make commit bisectable, updated all autofoo files using
'autoreconf -i -f' and repatching ltmain.sh.

Also, test-driver was missing from git repo but the Makefile.in
checked in expected it to exist.
2013-08-15 13:10:39 -05:00
Stéphane Voltz b10f87f7ed fixed range overflow due to rounding in sanei_constrain_value
- fixed a bug in sanei_constrain_value spotted by
  viresh_shirol@yahoo.co.uk where range max was exceeded due to rounding
  in quantization
- added test case for sane fixed values range
2013-08-04 09:04:47 +02:00
Stéphane Voltz 77a7cc4443 changelog entry for hwdb patch, minor cleanups, copyright notice 2013-08-02 22:51:58 +02:00
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
Stéphane Voltz 234d6f1320 add missing Makefile.in 2013-08-02 22:16:34 +02:00
Stéphane Voltz fdadecc509 add testsuite for sane-desc
- add a tools sudbir in testsuite
- add a desc test file
- record test references
- add check in Makefile to run and compare output
2013-08-02 22:16:33 +02:00
Stéphane Voltz f5b8a0af80 add unit tests for sanei_constraint, sanei_config and sanei_check 2013-03-24 14:53:40 +01:00
Stéphane Voltz 88e04fbb4d move test_wire.c from sanei to testsuite/sanei
- move sanei_w_* functions test program to test directory to keep
  production code separated from test code
2013-03-24 14:50:17 +01:00
Stéphane Voltz 8b3674a516 add testsuite/sanei for sanei test programs
- add sanei_usb_test to test sanei_usb functions
 - update SUBDIRS so the check target is ran on testsuite/sanei
2013-03-24 14:50:17 +01:00
Louis Lagendijk 8d64ae0413 Missed one Makefile.in in last commit 2013-01-10 21:08:15 +01:00
m. allan noah 9b142567fa Revert "forgot to do autoreconf"
This reverts commit aa6f185452.
2012-11-28 21:51:12 -05:00
Paul Newall aa6f185452 forgot to do autoreconf 2012-11-28 22:11:04 +00:00
Chris Bagwell e7f01c3b36 Add --disable-dynamic/--disable-preload and update docs
Options were in README but removed at some point.  They
are useful so add them back.

Document BACKENDS and PRELOADABLE_BACKENDS variables in
README as well as in configure --help output.
2011-11-08 21:28:30 -06:00
Chris Bagwell 58c207a5e6 Add $(EXEEXT) to executable name to work on windows
Automake defines this for us. Might as well use it.
Should help both mingw and cygwin tests.
2011-11-06 16:43:49 -06:00
Chris Bagwell 5061c2d5b2 More mingw portability updates.
Add check for winsock2.h for socket.h replancement. Also, use this
check to add ws2_32 library. Also, switch all winsock.h references
to winsock2.h.

Add check for getuid and getpass; which are not on mingw.

Add a syslog() replacement that is basically a print(). This
is also used by vsyslog() replacement.

Comment out parts of replacement sigprocmask.c on mingw.

To support these configure.in changes, I need to rebuild all
related files with autoconf 2.68 and libtool 2.4. Hand ported
our sane-backend specific changes to newer ltmain.sh.
2011-11-06 12:40:00 -06:00
m. allan noah 40e40989d9 rebuild autofoo for magicolor and snmp support 2011-01-18 21:31:13 -05:00
Chris Bagwell 650ea7cf8a update generate files using latest autoconf tools.
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
2011-01-02 13:07:31 -06:00
Alex Belkin 842c98d204 Added Samsung SCX-4500W scan over network support for xerox_mfp backend (by Alexander Kuznetsov).
autoconf and automake reconfigure.
2010-09-30 15:11:56 +04:00
Chris Bagwell 0109113ea3 Don't include -lresmgr in all backends
resmgr library is only used (optionally) by
sanei_usb and sanei_scsi.  So only need to
link it in for those backends.  This was
a stray piece from initial cleanup of LIBS
in sane-backends 1.0.20.

Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
2010-04-06 09:49:58 -05:00
Chris Bagwell 1903d646b2 align autoconf/automake output to common version.
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
2010-02-27 23:27:32 -06:00
m. allan noah 54a84f2053 Use standard gettext infrastructure, from Adi Roiban 2010-02-27 20:51:31 -05:00
Stéphane Voltz b37621d86a addition of the p5 backend to the distribution 2010-02-15 22:15:43 +01:00
m. allan noah 163f5fa345 New kodak backend, and all the autofoo changes required to build it
- remove some Kodak machines from unsupported list
- add sane-kodak manpage
- add kodak.desc
2009-06-22 23:06:22 -04:00
Chris Bagwell 6b5973313c * Makefile.in, aclocal.m4, configure, */Makefile.in: Regenerated
with newer automake.
* backend/Makefile.am, tools/sane-config.in: Add missing
$GPHOTO2_LDFLAGS so library can be found.
* tools/Makefile.am: Add mising $SCSI_LIBS to sane-find-scanner.
2009-05-03 22:01:23 +00:00
Chris Bagwell 9d1375fd7e * acinclude.m4, tools/sane-config.in: Add in missing libraries
to sane-config missed during fix to stop using LIBS to link everything.
Add back in code to move LDFLAGS out of $GPHOTO2_LIBS and into
GPHOTO2_LDFLAGS.
2009-03-03 02:53:42 +00:00
Chris Bagwell be3f46204b * po/Makefile.am, configure.in: convert remaining directory,
po, to use automake.
2009-02-21 22:45:14 +00:00
Mattias Ellert 0827226249 Adding missing liblib dependencies 2009-02-20 16:51:09 +00:00
Chris Bagwell cb4fb37eca Have configure define configdir so all makefiles can use
it (fixes bug introduce with sanei converted to automake).
Enable running testsuite during distcheck.
2009-02-19 18:10:12 +00:00
Chris Bagwell f2261efaa5 * Makefile.am, testsuite: Convert testsuite to automake. Waiting
for test backend bugfix before enabling this to run during "distcheck".
2009-02-19 04:23:25 +00:00
Chris Bagwell c90e23a6d2 Updates to Makefiles to prepare for transition to automake.
Fix a few bugs with "all" and "uninstall" targets to work when
$(builddir) != $(srcdir).  Added $(DESTDIR) to uninstall target.
Made $(distdir) related to current directory to match automake.
2009-01-16 23:39:48 +00:00
Mattias Ellert 22efa538b7 Fix warnings about ignored --datarootdir 2008-02-03 06:59:36 +00:00
Henning Geinitz 122295e297 Changed testsuite to use the test backend instead of the pnm backend. This
actually works with current sane-backends.
2006-01-05 18:52:22 +00:00
Henning Geinitz e3cbda553c Added global list of file patterns for "make distclean". Some "make clean"
and "make distclean" cleanup and additions.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-02-13 20:48:29 +00:00
Henning Geinitz c1b967a5d6 Added target "dist". Fixed .PHONY.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-01-08 19:06:54 +00:00
Henning Geinitz 3fe04406b7 Added comment about the need to enable pnm. Made output easier to read.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-11-30 18:27:23 +00:00
Petter Reinholdtsen 0d78da6256 Started on runtime test suite. Currently only tests if PNM test
scanning works.
2001-02-22 09:53:08 +00:00