#!/bin/csh

if ( ! -e testequiv ) then
  echo "testequiv.cpp has not been compiled"
  exit 1
endif

limit cputime 1
./testequiv
set s = $status
if ($s == 152) then
  echo "Time limit exceeded"
else if ($s == 139) then
  echo "Segmentation fault"
else if ($s != 0) then
  echo "Fault" $s
endif

