File: runtests

package info (click to toggle)
apt-xapian-index 0.41
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 356 kB
  • ctags: 477
  • sloc: python: 2,516; sh: 126; makefile: 34
file content (21 lines) | stat: -rwxr-xr-x 555 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
export AXI_PLUGIN_DIR=`pwd`/plugins
export AXI_VALUES_CONF=`pwd`/xapian-index-values.conf
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
		;;
	*)
		nosetests -w test "$@"
		;;
esac