summaryrefslogtreecommitdiff
path: root/test/tiffcp-thumbnail.sh
diff options
context:
space:
mode:
authorBob Friesenhahn <bfriesen@simple.dallas.tx.us>2009-08-23 22:58:25 +0000
committerBob Friesenhahn <bfriesen@simple.dallas.tx.us>2009-08-23 22:58:25 +0000
commit63e03ebcecfe099b704c7c8cac93e8535aaf4c88 (patch)
treed3c20d065b5ebb9f044df7212c09968d8feb73d4 /test/tiffcp-thumbnail.sh
parent3237e5e1777dbdcd156ae231ccdd097be63eca2d (diff)
downloadlibtiff-git-63e03ebcecfe099b704c7c8cac93e8535aaf4c88.tar.gz
tiffcrop.sh into a collection of many specific tests. Re-wrote
all of the existing tests to be based on some simple shell functions. Make distcheck works again.
Diffstat (limited to 'test/tiffcp-thumbnail.sh')
-rwxr-xr-xtest/tiffcp-thumbnail.sh30
1 files changed, 4 insertions, 26 deletions
diff --git a/test/tiffcp-thumbnail.sh b/test/tiffcp-thumbnail.sh
index ad948a49..789cd802 100755
--- a/test/tiffcp-thumbnail.sh
+++ b/test/tiffcp-thumbnail.sh
@@ -4,29 +4,7 @@
#
. ${srcdir:-.}/common.sh
-outfile1=deleteme-in-$$.tif
-outfile2=deleteme-out-$$.tif
-stderr=deleteme-stderr-$$.tif
-operation=tiffcp
-${TIFFCP} -c g3:1d ${IMG_MINISWHITE_1C_1B} ${outfile1} 2> $stderr
-status=$?
-
-if test $status -eq 0
-then
- operation=thumbnail
- ${THUMBNAIL} ${outfile1} ${outfile2} 2>> $stderr
- status=$?
-fi
-
-if test $status -eq 0
-then
- rm -f ${outfile1} ${outfile2}
-else
- cat $stderr
- echo "Test failed (${operation} returned ${status}). Please inspect these output files:"
- echo " " ${outfile1} ${outfile2}
-fi
-
-rm -f $stderr
-
-exit $status
+outfile1=o-tiffcp-thumbnail-in.tif
+outfile2=o-tiffcp-thumbnail-out.tif
+f_test_convert "${TIFFCP} -c g3:1d" "${IMG_MINISWHITE_1C_1B}" "${outfile1}"
+f_test_convert "${THUMBNAIL}" "${outfile1}" "${outfile2}" \ No newline at end of file