| 1 |
#!/bin/sh |
| 2 |
export AXI_PLUGIN_DIR=`pwd`/plugins |
| 3 |
export AXI_DB_PATH=`pwd`/testdb |
| 4 |
export AXI_CACHE_PATH=`pwd`/testdb |
| 5 |
export PYTHONPATH="$PYTHONPATH:`pwd`" |
| 6 |
|
| 7 |
case "$1" in |
| 8 |
--cov) |
| 9 |
echo "Run with code coverage..." |
| 10 |
shift |
| 11 |
nose2-3 test --with-coverage --cover-package axi --cover-html --cover-html-dir=test-coverage "$@" |
| 12 |
echo "Coverage information found at file://`pwd`/test/test-coverage" |
| 13 |
;; |
| 14 |
--clean) |
| 15 |
rm -rf test/test-coverage test/.coverage testdb |
| 16 |
;; |
| 17 |
*) |
| 18 |
python3 -m nose2 test "$@" |
| 19 |
;; |
| 20 |
esac |