#!/bin/csh
# File: polyrun
# Authors: Steve Hollasch,
#           K.R. Sloan
# Last Modified: 21 October 1992
# Purpose: exercise convexity testers

foreach file (polyN*)
    echo ""
    echo $file
    $1 < $file
    if ($status) then
	echo "Pass.";
    else
	echo "Fail."
	exit 1
    endif
end

foreach file (polyY*)
    echo ""
    echo $file
    $1 < $file
    if ($status) then
	echo "Fail.";
	exit 1
    else
	echo "Pass."
    endif
end

echo "=== All tests passed ==="
