#! /bin/bash # This script tests: pgmhist # Also requires: pgmramp alias pgmhist="${PBM_TESTPREFIX}pgmhist" alias pgmramp="${PBM_BINPREFIX}pgmramp" shopt -s expand_aliases # Ignore differences in spaces. pgmramp -maxval=8 -lr 8 2 | pgmhist | \ sed -e 's/ */ /g' -e 's/ *$//' pgmhist testgrid.pbm | \ sed -e 's/ */ /g' -e 's/ *$//'