kopia lustrzana https://gitlab.com/sane-project/backends
Added comment about the need to enable pnm. Made output easier to read.
Henning Meier-Geinitz <henning@meier-geinitz.de>DEVEL_2_0_BRANCH-1
rodzic
c59df2d5a5
commit
3fe04406b7
|
@ -4,15 +4,22 @@ DEVICE = pnm:0
|
|||
OPTIONS = --filename=$(TESTFILE)
|
||||
|
||||
all: Makefile
|
||||
echo "Use 'make test' to run the tests."
|
||||
@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
|
||||
@echo "Testing $(SCANIMAGE) with device $(DEVICE)"
|
||||
@if echo "Trying flatbed scanner" && \
|
||||
$(SCANIMAGE) -d $(DEVICE) $(OPTIONS) -T && \
|
||||
echo "Trying three pass flatbed scanner" && \
|
||||
$(SCANIMAGE) -d $(DEVICE) $(OPTIONS) --three-pass=yes -T && \
|
||||
echo "Trying hand scanner" && \
|
||||
$(SCANIMAGE) -d $(DEVICE) $(OPTIONS) --hand-scanner=yes -T ; \
|
||||
then echo ; echo ; echo "All tests passed" ; \
|
||||
else echo ; echo; \
|
||||
echo "Something failed (maybe pnm backend not enabled by configure?)";\
|
||||
fi
|
||||
|
||||
# Generate new Makefile when something changes
|
||||
Makefile: Makefile.in ../config.status
|
||||
|
|
|
@ -7,3 +7,6 @@ This is a test framework for the Scanner Access Now Easy project
|
|||
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. :-)
|
||||
|
||||
The current test needs the pnm backend. Hint:
|
||||
"configure --enable-pnm-backend".
|
||||
|
|
Ładowanie…
Reference in New Issue