From 63e03ebcecfe099b704c7c8cac93e8535aaf4c88 Mon Sep 17 00:00:00 2001 From: Bob Friesenhahn Date: Sun, 23 Aug 2009 22:58:25 +0000 Subject: 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. --- test/tiffcp-thumbnail.sh | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) (limited to 'test/tiffcp-thumbnail.sh') 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 -- cgit v1.2.1