diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-07-04 16:57:53 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-07-04 16:57:53 +0000 |
commit | 2e92ce29ef808db0134ff7f9127953b6f9f915a6 (patch) | |
tree | d1f1c4696fc8f2d7fffba4e79a7e332876d3d41a /test | |
parent | 839ef3f24563131b05f1c6ad555e84bbe59b383a (diff) | |
download | netpbm-mirror-2e92ce29ef808db0134ff7f9127953b6f9f915a6.tar.gz netpbm-mirror-2e92ce29ef808db0134ff7f9127953b6f9f915a6.tar.xz netpbm-mirror-2e92ce29ef808db0134ff7f9127953b6f9f915a6.zip |
Do roundtrip from PPM instead of PBM
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3888 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test')
-rw-r--r-- | test/pj-roundtrip.ok | 4 | ||||
-rwxr-xr-x | test/pj-roundtrip.test | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/test/pj-roundtrip.ok b/test/pj-roundtrip.ok index a13b01a7..195443ba 100644 --- a/test/pj-roundtrip.ok +++ b/test/pj-roundtrip.ok @@ -1,4 +1,4 @@ Test 1. Should print: 0 0 0 0 : 0 0 0 0 0 : 0 -Test 2. Should print: 0 0 0 0 0 : 0 -0 0 0 0 0 : 0 +Test 2. Should print: 0 0 : 0 +0 0 : 0 diff --git a/test/pj-roundtrip.test b/test/pj-roundtrip.test index 3394a4d2..2b0d61e5 100755 --- a/test/pj-roundtrip.test +++ b/test/pj-roundtrip.test @@ -1,6 +1,6 @@ #! /bin/bash # This script tests: ppmtopj pjtoppm -# Also requires: pamseq pnmremap pamtopnm pamdepth ppmtopgm pgmtopbm +# Also requires: pamseq pnmremap pamtopnm pamdepth ppmtoppm echo "Test 1. Should print: 0 0 0 0 : 0" @@ -15,8 +15,12 @@ ppmtopj ${test8_ppm} | pjtoppm | pamdepth 1 | \ rm ${test8_ppm} -echo "Test 2. Should print: 0 0 0 0 0 : 0" +echo "Test 2. Should print: 0 0 : 0" -ppmtopj testgrid.pbm | pjtoppm | ppmtopgm | pgmtopbm | \ - cmp -s - testgrid.pbm > /dev/null +testout_ppm=${tmpdir}/testout.ppm + +ppmtopj testgrid.pbm | pjtoppm > ${testout_ppm} + ppmtoppm < testgrid.pbm | cmp -s - ${testout_ppm} > /dev/null echo ${PIPESTATUS[@]} ":" $? + +rm ${testout_ppm} |