1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-30 15:14:14 +01:00
svtplay-dl/run-tests.sh
2013-03-23 17:07:18 +01:00

29 lines
346 B
Bash
Executable File

#!/bin/sh
OPTS='--all-modules '
die() {
echo Error: "$@"
exit 1
}
while [ "$#" -gt 0 ]; do
case $1 in
-c|--coverage)
OPTS="$OPTS --with-coverage"
;;
-v|--verbose)
OPTS="$OPTS --verbose"
;;
-*)
die "Unknown option: '$1'"
;;
*)
die "Unknown argument: '$1'"
;;
esac
shift
done
PYTHONPATH=lib nosetests $OPTS