Started on runtime test suite. Currently only tests if PNM test

scanning works.
DEVEL_2_0_BRANCH-1
Petter Reinholdtsen 2001-02-22 09:53:08 +00:00
rodzic f8bf4487a4
commit 0d78da6256
3 zmienionych plików z 33 dodań i 0 usunięć

Wyświetl plik

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

9
testsuite/README 100644
Wyświetl plik

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