diff options
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} |