| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/graphics/xcftools/files/ |
Upload File : |
--- test/dotest.orig 2013-02-12 19:30:10.000000000 +0100
+++ test/dotest 2014-09-11 05:58:19.000000000 +0200
@@ -31,6 +31,17 @@
keepgoing=1
fi
+
+compare() {
+ answer=`pamarith -compare "$1" "$2" 2>&1`
+ result=$?
+ if [ ! $result -eq 0 ]; then
+ echo "$answer"
+ fi
+ return $result
+}
+
+
failed() {
if (( lastfailed != totaltests ))
then
@@ -126,9 +137,9 @@
source="$1"
shift
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
+ -oo.$oext $aopt source/$source.xcf.gz "$@"
+ [ -z "$oanswer" ] || compare o.want o.$oext || failed
+ [ -z "$aanswer" ] || compare a.want a.pnm || failed
}
testpng() {
@@ -162,10 +173,10 @@
perl pngtype.pl < o.png > pngtype
diff -u pngtype.want pngtype || failed
pngtopnm $oargs o.png > o.pnm
- cmp o.want o.pnm || failed
+ compare o.want o.pnm || failed
if [ "$afilter" != : ] ; then
pngtopnm -alpha o.png > a.pnm
- cmp a.want a.pnm || failed
+ compare a.want a.pnm || failed
fi
rm pngtype.want
}
@@ -732,4 +743,4 @@
exit 0
fi
-# End
\ No newline at end of file
+# End