task_tutorial_test.sh 276 Bytes
Newer Older
Minjie Wang's avatar
Minjie Wang committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# The working directory for this script will be "tests/scripts"

function fail {
    echo FAIL: $@
    exit -1
}

export MPLBACKEND=Agg

for f in $(find "../../tutorials" -name "*.py")
do
    echo "Running tutorial ${f} ..."
    python3 $f || fail "run ${f}"
done