cd test

retval=0
for file in test_*.py; do
    echo -e "\nrunning $file"
    MPLBACKEND=Agg python3 $file
    val=$?
    if [[ $val -ne 0 ]]; then
        retval=$val
        echo "$file failed with return value $val"
    fi
done

exit $retval
