#!/bin/sh

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

check() 
{
    echo "Testing usadel1"
    cd tests
    python test.py
}

cd src

check

if ! [ $? -eq 0 ];  then 
    echo "An error occurred while testing usadel1."
    exit 1
fi

