if [ -z "$SAGE_LOCAL" ]; then
    echo >&2 "Error: SAGE_LOCAL undefined - exiting..."
    echo >&2 "Maybe run 'sage -sh'?"
    exit 1
fi

# We don't have to set up any environment variables here since the
# Makefiles already have them from 'configure'.  (Hopefully.)

cd src

echo
echo "Now running eclib's test suite..."
$MAKE check
if [ $? -ne 0 ]; then
    echo >&2 "Error: eclib's test suite failed to pass."
    exit 1
fi
echo "eclib's test suite passed without errors."
