#! /bin/bash # This script tests: g3topbm pbmtog3 # Also requires: pnmcrop alias g3topbm="${PBM_TESTPREFIX}g3topbm" alias pbmtog3="${PBM_TESTPREFIX}pbmtog3" alias pnmcrop="${PBM_BINPREFIX}pnmcrop" shopt -s expand_aliases pbmtog3 -nofixedwidth testgrid.pbm | \ g3topbm -width=14 | cmp -s - testgrid.pbm echo $? pbmtog3 -nofixedwidth -reversebits testgrid.pbm | \ g3topbm -width=14 -reversebits | cmp -s - testgrid.pbm echo $? pbmtog3 testgrid.pbm | \ g3topbm | pnmcrop -white -right -bottom | \ cmp -s - testgrid.pbm ; echo $?