summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHenning Makholm <henning@makholm.net>2006-01-28 18:00:00 (EST)
committer Julien Jorge <julien.jorge@stuff-o-matic.com>2013-01-10 16:01:30 (EST)
commit03c71dffc5d7bcb4686260b21aaa268d68310613 (patch)
tree9ce9237312375a35b3a38fc8dc92e0e94a205e89 /test
parent7b7cd6da61b1fcc0f2a3ecce2cb9e6c42782c717 (diff)
downloadxcftools-03c71dffc5d7bcb4686260b21aaa268d68310613.zip
xcftools-03c71dffc5d7bcb4686260b21aaa268d68310613.tar.gz
xcftools-03c71dffc5d7bcb4686260b21aaa268d68310613.tar.bz2
Import of release 0.7.1
Diffstat (limited to 'test')
-rw-r--r--test/README7
-rwxr-xr-xtest/dotest9
2 files changed, 12 insertions, 4 deletions
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