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

cd src
$MAKE check

if [ $? -ne 0 ]; then
  echo "There was a problem during the MPFI tests."
  exit 1
fi

