From 03c71dffc5d7bcb4686260b21aaa268d68310613 Mon Sep 17 00:00:00 2001 From: Henning Makholm Date: Sat, 28 Jan 2006 18:00:00 -0500 Subject: Import of release 0.7.1 --- (limited to 'test') diff --git a/test/README b/test/README index d7d0006..d09d955 100644 --- a/test/README +++ b/test/README @@ -17,6 +17,13 @@ implementation of -@ and/or insert filters in the test driver routines. +The test asssumes that xcftools has been compiled with an +iconv() library that can expand non-ASCII characters to +approximating ASCII sequenced, possibly triggered by the +'//TRANSLIT' convention of glibc. If this is not the case +you have to do appropriate corrections when the 'AE=AE' layer +is mentioned by the test script. + There are yet no tests for correct reporting of errors. diff --git a/test/dotest b/test/dotest index c444c98..0bb6115 100755 --- a/test/dotest +++ b/test/dotest @@ -19,7 +19,7 @@ export LC_CTYPE=C export LC_MESSAGES=C -TESTFROM=.. +: ${XCFTOOLS_PREFIX=../} totaltests=0 failedtests=0 @@ -70,7 +70,7 @@ testrun() { } testinfo() { - testrun $TESTFROM/xcfinfo "$@" + testrun ${XCFTOOLS_PREFIX}xcfinfo "$@" } testpnm() { @@ -105,7 +105,8 @@ testpnm() { fi source="$1" shift - testrun $TESTFROM/xcf2pnm -@ -oo.$oext $aopt source/$source.xcf.gz "$@" + testrun ${XCFTOOLS_PREFIX}xcf2pnm \ + -@ -oo.$oext $aopt source/$source.xcf.gz "$@" [ -z "$oanswer" ] || cmp o.want o.$oext || failed [ -z "$aanswer" ] || cmp a.want a.pnm || failed } @@ -137,7 +138,7 @@ testpng() { pngtopnm -alpha answer/$answer.png | $afilter > a.want source="$1" shift - testrun $TESTFROM/xcf2png -oo.png source/$source.xcf.gz "$@" + testrun ${XCFTOOLS_PREFIX}xcf2png -oo.png source/$source.xcf.gz "$@" perl pngtype.pl < o.png > pngtype diff -u pngtype.want pngtype || failed pngtopnm $oargs o.png > o.pnm -- cgit v0.9.1