#! /bin/csh -f # # check # # Check to see if test output matches expected output. # If not, run diff and ask if differences are "ok". If so, # install new output as expected output. # cmp -s $1 $2 if ($status != 0) then diff $1 $2 echo -n "ok? " if ($< != y) then exit 1 endif mv $1 $2 endif exit 0