1#! /bin/csh -f 2 3# 4# check <test output> <expected output> 5# 6# Check to see if test output matches expected output. 7# If not, run diff and ask if differences are "ok". If so, 8# install new output as expected output. 9# 10 11cmp -s $1 $2 12if ($status != 0) then 13 diff $1 $2 14 echo -n "ok? " 15 if ($< != y) then 16 exit 1 17 endif 18 mv $1 $2 19endif 20exit 0 21