#!/usr/bin/env bash

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

cd src
$MAKE check

if [ $? -ne 0 ]; then
    echo >&2 "Error: gf2x failed to pass its test suite."
    exit 1
fi
