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
Henning Geinitz 2001-11-30 18:27:23 +00:00
rodzic c59df2d5a5
commit 3fe04406b7
2 zmienionych plików z 15 dodań i 5 usunięć

Wyświetl plik

@ -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 && \
@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 : ; else echo ; echo; echo "Something failed"; fi
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

Wyświetl plik

@ -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".