diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-06-28 17:52:14 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-06-28 17:52:14 +0000 |
commit | 1cd3ef0dd6c2236d0b329879bacd9360d01c88a1 (patch) | |
tree | a60016b5dd48fbf681ebfb43a6ca0d7e20a391d8 /test/pj-roundtrip.test | |
parent | cbbf595776cee6b8d8a24becf49ee6468eeba712 (diff) | |
download | netpbm-mirror-1cd3ef0dd6c2236d0b329879bacd9360d01c88a1.tar.gz netpbm-mirror-1cd3ef0dd6c2236d0b329879bacd9360d01c88a1.tar.xz netpbm-mirror-1cd3ef0dd6c2236d0b329879bacd9360d01c88a1.zip |
Promote Development to Advaanced - Release 10.91
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3877 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/pj-roundtrip.test')
-rwxr-xr-x | test/pj-roundtrip.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/pj-roundtrip.test b/test/pj-roundtrip.test new file mode 100755 index 00000000..3394a4d2 --- /dev/null +++ b/test/pj-roundtrip.test @@ -0,0 +1,22 @@ +#! /bin/bash +# This script tests: ppmtopj pjtoppm +# Also requires: pamseq pnmremap pamtopnm pamdepth ppmtopgm pgmtopbm + +echo "Test 1. Should print: 0 0 0 0 : 0" + +tmpdir=${tmpdir:-/tmp} +test8_ppm=${tmpdir}/testimg8.ppm + +pamseq 3 1 | pnmremap -map - testimg.ppm | pamtopnm -assume > ${test8_ppm} + +ppmtopj ${test8_ppm} | pjtoppm | pamdepth 1 | \ + cmp -s - ${test8_ppm} > /dev/null + echo ${PIPESTATUS[@]} ":" $? + +rm ${test8_ppm} + +echo "Test 2. Should print: 0 0 0 0 0 : 0" + +ppmtopj testgrid.pbm | pjtoppm | ppmtopgm | pgmtopbm | \ + cmp -s - testgrid.pbm > /dev/null + echo ${PIPESTATUS[@]} ":" $? |