From 3fe04406b78451df672aaa735ec2cc379daccaff Mon Sep 17 00:00:00 2001 From: Henning Geinitz Date: Fri, 30 Nov 2001 18:27:23 +0000 Subject: [PATCH] Added comment about the need to enable pnm. Made output easier to read. Henning Meier-Geinitz --- testsuite/Makefile.in | 17 ++++++++++++----- testsuite/README | 3 +++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in index e6a567138..4bdfc0843 100644 --- a/testsuite/Makefile.in +++ b/testsuite/Makefile.in @@ -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 diff --git a/testsuite/README b/testsuite/README index c034862b6..792d16131 100644 --- a/testsuite/README +++ b/testsuite/README @@ -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".