#! /bin/sh # This script tests: ppmtoxpm xpmtoppm # Also requires: pgmtopbm ppmtopgm echo "Test 1. Should print 1926073387 101484" ppmtoxpm -hexonly testimg.ppm | \ xpmtoppm | cksum echo "Test 2. Should print 281226646 481" ppmtoxpm maze.pbm | xpmtoppm | \ ppmtopgm | pgmtopbm -th -value=0.5 | cksum