File: runtests

package info (click to toggle)
apt-xapian-index 0.53
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 424 kB
  • sloc: python: 2,896; ruby: 475; sh: 137; makefile: 31
file content (20 lines) | stat: -rwxr-xr-x 507 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
export AXI_PLUGIN_DIR=`pwd`/plugins
export AXI_DB_PATH=`pwd`/testdb
export AXI_CACHE_PATH=`pwd`/testdb
export PYTHONPATH="$PYTHONPATH:`pwd`"

case "$1" in
	--cov)
		echo "Run with code coverage..."
		shift
		nosetests -w test --with-coverage --cover-package axi --cover-html --cover-html-dir=test-coverage "$@"
		echo "Coverage information found at file://`pwd`/test/test-coverage"
		;;
	--clean)
		rm -rf test/test-coverage test/.coverage testdb
		;;
	*)
		python3 -m nose -w test "$@"
		;;
esac