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

cd src

echo "Now building and running cliquer's test suite..."
$MAKE check
if [ $? -ne 0 ]; then
    echo >&2 "Error: The cliquer's test suite failed."
    exit 1
fi

echo "The cliquer's test suite passed successfully."
