#! /bin/bash # This script tests: pnmtorle rletopnm # Also requires: ppmtopgm alias pnmtorle="${PBM_TESTPREFIX}pnmtorle" alias rletopnm="${PBM_TESTPREFIX}rletopnm" alias ppmtopgm="${PBM_BINPREFIX}ppmtopgm" shopt -s expand_aliases #Test 1. Should print 2871603838 33838, cksum of testimg.pgm ppmtopgm testimg.ppm > ${tmpdir}/testimg.pgm pnmtorle ${tmpdir}/testimg.pgm | \ rletopnm | cksum rm ${tmpdir}/testimg.pgm #Test 2. Should print 1926073387 101484, cksum of testimg.ppm pnmtorle testimg.ppm | \ rletopnm | cksum