kopia lustrzana https://gitlab.com/sane-project/backends
Started on runtime test suite. Currently only tests if PNM test
scanning works.DEVEL_2_0_BRANCH-1
rodzic
f8bf4487a4
commit
0d78da6256
|
@ -0,0 +1,20 @@
|
||||||
|
SCANIMAGE = ../frontend/scanimage
|
||||||
|
TESTFILE = testfile.pnm
|
||||||
|
DEVICE = pnm:0
|
||||||
|
OPTIONS = --filename=$(TESTFILE)
|
||||||
|
|
||||||
|
all: Makefile
|
||||||
|
echo "Use 'make test' to run the tests."
|
||||||
|
|
||||||
|
test: Makefile test.local
|
||||||
|
|
||||||
|
test.local:
|
||||||
|
if $(SCANIMAGE) -d $(DEVICE) $(OPTIONS) -T && \
|
||||||
|
$(SCANIMAGE) -d $(DEVICE) $(OPTIONS) --three-pass=yes -T && \
|
||||||
|
$(SCANIMAGE) -d $(DEVICE) $(OPTIONS) --hand-scanner=yes -T ; \
|
||||||
|
then : ; else echo ; echo; echo "Something failed"; fi
|
||||||
|
|
||||||
|
# Generate new Makefile when something changes
|
||||||
|
Makefile: Makefile.in ../config.status
|
||||||
|
cd .. \
|
||||||
|
&& CONFIG_FILES=testsuite/Makefile CONFIG_HEADERS= /bin/sh ./config.status
|
|
@ -0,0 +1,9 @@
|
||||||
|
SANE test suite
|
||||||
|
===============
|
||||||
|
Petter Reinholdtsen <pere@td.org.uit.no>
|
||||||
|
|
||||||
|
This is a test framework for the Scanner Access Now Easy project
|
||||||
|
(SANE). Please add more tests. This framework should be able to test
|
||||||
|
everything without installing, to make sure a new distribution is
|
||||||
|
function properly before the old one is replaced. If it isn't, please
|
||||||
|
fix the bug. :-)
|
File diff suppressed because one or more lines are too long
Ładowanie…
Reference in New Issue