1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00
svtplay-dl/run-tests.sh

29 lines
346 B
Bash
Raw Normal View History

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