diff options
Diffstat (limited to 'test/xwd-roundtrip.test')
-rwxr-xr-x | test/xwd-roundtrip.test | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/test/xwd-roundtrip.test b/test/xwd-roundtrip.test index cd0d38ad..1583cd68 100755 --- a/test/xwd-roundtrip.test +++ b/test/xwd-roundtrip.test @@ -1,16 +1,22 @@ -#! /bin/bash +#! /bin/sh # This script tests: pnmtoxwd xwdtopnm -# Also requires: pamchannel pamtopnm pamdepth +# Also requires: pamchannel pamtopnm pamdepth ppmtopgm - -# Test 1. Should produce 1571496937 33838, cksum of testimg.red +echo "Test 1. Should produce 1571496937 33838, cksum of testimg.red twice" pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | pamtopnm | \ pnmtoxwd | xwdtopnm | pamdepth 255 | cksum -# Test 2. Should produce 1926073387 101484 -pnmtoxwd --quiet testimg.ppm | \ +pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | pamtopnm | \ + pnmtoxwd -direct | xwdtopnm -quiet | pamdepth 255 | ppmtopgm | cksum + +echo "Test 2. Should produce 1926073387 101484" +pnmtoxwd --quiet testimg.ppm | \ xwdtopnm --quiet | pamdepth 255 | cksum -# Test 3. Should produce 2425386270 41 -pnmtoxwd --quiet testgrid.pbm | \ - xwdtopnm | cksum +echo "Test 3. Should produce 281226646 481 three times" +pnmtoxwd --quiet maze.pbm | xwdtopnm | cksum + +pnmtoxwd --quiet -pseudodepth 1 maze.pbm | xwdtopnm | cksum + +pnmtoxwd --quiet -pseudodepth 16 maze.pbm | xwdtopnm | cksum + |