#!/bin/csh

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

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

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