summaryrefslogtreecommitdiff
path: root/graphics/xcftools/files/patch-test_dottest
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-09-17 20:33:22 +0000
committerJohn Marino <marino@FreeBSD.org>2014-09-17 20:33:22 +0000
commit673e42630c8e5f3a8f7782c4fe1f406887c75569 (patch)
tree22ca30d698be9a1a9087ff6792f85992065fdc93 /graphics/xcftools/files/patch-test_dottest
parentdevel/py-pyparsing15: create port of older pyparsing module for py-mwlib (diff)
Add new port graphics/xcftools
PR: 179116 Submitted by: Kalten (gmx.at) Xcftools is a set of fast command-line tools for extracting information from the Gimp's native file format XCF. The tools are designed to allow efficient use of layered XCF files as sources in a build system that use 'make' and similar tools to manage automatic processing of the graphics. These tools work independently of the Gimp engine and do not require the Gimp to even be installed.
Diffstat (limited to 'graphics/xcftools/files/patch-test_dottest')
-rw-r--r--graphics/xcftools/files/patch-test_dottest53
1 files changed, 53 insertions, 0 deletions
diff --git a/graphics/xcftools/files/patch-test_dottest b/graphics/xcftools/files/patch-test_dottest
new file mode 100644
index 000000000000..525a1649a6da
--- /dev/null
+++ b/graphics/xcftools/files/patch-test_dottest
@@ -0,0 +1,53 @@
+--- 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