#!/bin/csh -f
# File: polygrade
# Author: K.R. Sloan
# Last Modified: 25 October 1992
# Purpose: exercise convexity testers

@ Right = 0
@ Wrong = 0
foreach file (polyN*)
    echo ""
    echo $file
    $1 < $file
    if ($status) then
	echo "Pass."
        @ Right ++
    else
	echo "Fail."
        @ Wrong ++
    endif
end

foreach file (polyY*)
    echo ""
    echo $file
    $1 < $file
    if ($status) then
	echo "Fail."
        @ Wrong ++
    else
	echo "Pass."
        @ Right ++
    endif
end

echo Right = $Right
echo Wrong = $Wrong
