dmlc--dgl
e19cd62ecd
* test basics * batched graph & filter, mxnet filter fix * frame and function; bugfix * test graph adj and inc matrices * fixing start = 0 for mxnet * test index * inplace update & line graph * multi send recv * more tests * oops * more tests * removing old test files; readonly graphs for mxnet still kept * modifying test scripts * adding a placeholder for pytorch to reserve directory * torch 0.4.1 compat fixes * moving backend out of compute to avoid nose detection * tests guide * mx sparse-to-dense/sparse-to-numpy is buggy * oops * contribution guide for unit tests * printing incmat * printing dlpack * small push * typo * fixing duplicate entries that causes undefined behavior * move equal comparison to backend
23 行
444 B
Bash
23 行
444 B
Bash
#!/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
|
|
export PYTHONPATH=tests:$PYTHONPATH
|
|
|
|
python3 -m nose -v --with-xunit tests/$BACKEND || fail "backend-specific"
|
|
python3 -m nose -v --with-xunit tests/graph_index || fail "graph_index"
|
|
python3 -m nose -v --with-xunit tests/compute || fail "compute"
|