task_unit_test.sh 444 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

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

function usage {
    echo "Usage: $0 backend"
}

if [ $# -ne 1 ]; then
    usage
    fail "Error: must specify backend"
fi

BACKEND=$1
18
export PYTHONPATH=tests:$PYTHONPATH
19

20
python3 -m nose -v --with-xunit tests/$BACKEND || fail "backend-specific"
21
python3 -m nose -v --with-xunit tests/graph_index || fail "graph_index"
22
python3 -m nose -v --with-xunit tests/compute || fail "compute"