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

cd src

if ! command -v nosetests ; then 
    echo >&2 'Testing cvxopt requires the package nose to be installed'
    exit 1
fi

echo "Testing cvxopt..."

nosetests

if [ $? -ne 0 ]; then
    echo >&2 "Error running self tests."
    exit 1
fi

