From a5d06d531c80a96a4041f8f19bdf89b847f71e80 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Mon, 13 Dec 2021 00:08:51 +0000 Subject: miscellaneous test updates git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4201 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- test/ps-flate-roundtrip.test | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'test/ps-flate-roundtrip.test') diff --git a/test/ps-flate-roundtrip.test b/test/ps-flate-roundtrip.test index 08d1500c..888f2856 100755 --- a/test/ps-flate-roundtrip.test +++ b/test/ps-flate-roundtrip.test @@ -17,7 +17,7 @@ tmpdir=${tmpdir:-/tmp} # pstopnm does not use libnetpbm functions for output. # Output is filtered through pamtopnm. -# Test 1. Should print: 1926073387 101484 twice +echo "Test 1. Should print: 1926073387 101484 twice" test1_ps=${tmpdir}/testimg1.ps for flag in "-ps -flate" "-ps -rle -ascii -flate" @@ -32,16 +32,17 @@ for flag in "-ps -flate" "-ps -rle -ascii -flate" rm ${test1_ps} -# Test 2. Should print: 1386192571 507420 +echo "Test 2. Should print 1831481505 608904" # See comments in ps-roundtrip.test test3_ps=${tmpdir}/testimg3.ps flag="-ps -bitspersample=12 -flate -rle -vmreclaim" -cat testimg.ppm testimg.ppm testimg.ppm testgrid.pbm testgrid.pbm | \ -pnmtops -nocenter -equalpixels -dpi 72 -noturn -setpage ${flag} \ - > ${test3_ps} && +cat testimg.ppm testimg.ppm testimg.ppm maze.pbm \ + testgrid.pbm testgrid.pbm | \ + pnmtops -nocenter -equalpixels -dpi 72 -noturn -setpage ${flag} \ + > ${test3_ps} && xysize3=`awk '/BoundingBox/ {print "-xsize="$4,"-ysize="$5 ; exit}' \ - ${test3_ps}` && + ${test3_ps}` && pstopnm -portrait -xborder=0 -yborder=0 $xysize3 -stdout ${test3_ps} | \ pamtopnm | cksum -- cgit 1.4.1