ports/graphics/nip2/files/patch-tests
Mikhail Teterin 1a79a9e86f Upgrade from 7.26.3 to 7.40.1 (nip2) and .2 (vips) -- the current
latest. Support staging in nip2. Add self-test target to nip2.

Although the software is built against GraphicsMagick, some of the
tests require ImageMagick's convert and therefor the tests are not
(yet) labeled "regression-test".  The author is working on the fix.
2014-07-01 18:59:49 +00:00

57 lines
1.3 KiB
Text

--- test/scripts/test_threading.sh 2013-08-19 16:56:45.000000000 -0400
+++ test/scripts/test_threading.sh 2014-07-01 11:54:10.000000000 -0400
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/bin/sh
# set -x
@@ -28,14 +28,14 @@
vips im_abs $tmp/t8.v $tmp/t9.v
max=`vips im_max $tmp/t9.v`
- if [[ $max > 0 ]]; then
+ if [ $max -gt 0 ]; then
break
fi
done
- if [[ $max > 0 ]]; then
+ if [ $max -gt 0 ]; then
break
fi
done
-if [[ $max > 0 ]]; then
+if [ $max -gt 0 ]; then
echo error, max == $max
exit 1
@@ -43,3 +43,2 @@
echo all threading tests passed
fi
-
--- test/scripts/test_seq.sh 2014-06-23 15:17:21.000000000 -0400
+++ test/scripts/test_seq.sh 2014-07-01 12:38:53.000000000 -0400
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/bin/sh
# set -x
@@ -18,5 +18,5 @@
rm -f $tmp/x.png
vipsthumbnail $huge -o $tmp/x.png
-if ! vipsheader $tmp/x.png &> /dev/null ; then
+if ! vipsheader $tmp/x.png ; then
echo "vipsthumbnail failed in basic mode"
exit 1
@@ -33,5 +33,5 @@
rm -f $tmp/x.png
vipsthumbnail $huge -o $tmp/x.png
-if ! vipsheader $tmp/x.png &> /dev/null ; then
+if ! vipsheader $tmp/x.png ; then
echo "vipsthumbnail made a temp"
exit 1
@@ -42,5 +42,5 @@
rm -f $tmp/x.png
vips shrink $huge $tmp/x.png 230 230
-if ! vipsheader $tmp/x.png &> /dev/null; then
+if ! vipsheader $tmp/x.png ; then
echo "shrink made a temp"
exit 1