diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2015-04-01 02:04:11 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2015-04-01 02:04:11 +0000 |
commit | b8baab1ef58b3bbb25caafa9f0d808f503528832 (patch) | |
tree | 17c6645d660f197e202bab8e9c6d8b6e25b6c45d /test/ps-alt-roundtrip.test | |
parent | 22a5accc85c58382f3ded1fe7f637488987819c9 (diff) | |
download | netpbm-mirror-b8baab1ef58b3bbb25caafa9f0d808f503528832.tar.gz netpbm-mirror-b8baab1ef58b3bbb25caafa9f0d808f503528832.tar.xz netpbm-mirror-b8baab1ef58b3bbb25caafa9f0d808f503528832.zip |
restructure tests: check-tree, check-package, check-install; add Valgrind facility; doesn't overwrite prior test results
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2443 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/ps-alt-roundtrip.test')
-rwxr-xr-x | test/ps-alt-roundtrip.test | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/test/ps-alt-roundtrip.test b/test/ps-alt-roundtrip.test index d61e55d9..d90c4ddb 100755 --- a/test/ps-alt-roundtrip.test +++ b/test/ps-alt-roundtrip.test @@ -1,14 +1,7 @@ #! /bin/bash # This script tests: pbmtoepsi pbmtopsg3 pbmtolps psidtopgm pstopnm -# Also requires: gs pnmtopnm pnmcrop +# Also requires: gs pnmcrop - alias pbmtoepsi="${PBM_TESTPREFIX}pbmtoepsi" - alias pbmtolps="${PBM_TESTPREFIX}pbmtolps" - alias pbmtopsg3="${PBM_TESTPREFIX}pbmtopsg3" - alias psidtopgm="${PBM_TESTPREFIX}psidtopgm" - alias pstopnm="${PBM_TESTPREFIX}pstopnm" - alias pnmcrop="${PBM_BINPREFIX}pnmcrop" - shopt -s expand_aliases # This script is for testing alternative (or minor) utilities that # read/write Postscript and encapsulated Postscript: @@ -25,8 +18,8 @@ ## pbmtoepsi, pbmtopsg3, pbmtolps or psidtopgm. ## If both tests fail it indicates a problem with pstopnm or gs. -# pstopnm does not use libnetpbm functions for output. -# Output is filtered through pnmtopnm. +# pstopnm does not use libnetpbm functions for output. +# Output is filtered through at least one Netpbm program. # Test 1. Should print: 2425386270 41 testgrid1_ps=${tmpdir}/testgrid1.ps @@ -54,7 +47,7 @@ rm ${testgrid2_ps} # Test 3. Should print: 2916080186 235 # Output is pgm maxval=1 with black and white inverted. # -testgrid_epsi=${tmpdir}/testgrid.epsi +testgrid_epsi=${tmpdir}/testgrid.epsi pbmtoepsi testgrid.pbm > ${testgrid_epsi} && \ xysizebps=`awk '/BeginPreview/ {print $2,$3,$4}' \ @@ -64,4 +57,4 @@ awk '/^%%BeginPreview:/ { p=1; next } /^%%EndImage/ { p=0; next } \ p==1 {print "!"$0}' \ ${testgrid_epsi} | psidtopgm $xysizebps | cksum -rm ${testgrid_epsi} +rm ${testgrid_epsi} |