#! /bin/bash # This script tests: pnmtile # Also requires: pnmcat alias pnmtile="${PBM_TESTPREFIX}pnmtile" alias pnmcat="${PBM_BINPREFIX}pnmcat" shopt -s expand_aliases pnmtile 40 50 testgrid.pbm | cksum pnmtile 454 298 testimg.ppm > ${tmpdir}/testimg4.ppm && pnmcat -lr testimg.ppm testimg.ppm > ${tmpdir}/testimg2.ppm && pnmcat -tb ${tmpdir}/testimg2.ppm ${tmpdir}/testimg2.ppm | \ cmp -s - ${tmpdir}/testimg4.ppm echo $? rm ${tmpdir}/testimg{2,4}.ppm