#!/usr/local/bin/tcsh
#
# Regression testing of orbit-related code
#
set outfile = /tmp/sample_events_out.txt
rm -f $outfile
python rotate_with_orbit.py sample_orbit.txt sample_events_in.txt > $outfile
diff sample_events_ref.txt $outfile >& /dev/null
if ($status) then
   echo Failed
   rm -f $outfile
   exit 1
else
   echo OK
   rm -f $outfile
   exit 0
endif
