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

Merge pull request #33 from olof/topic/runtests_improvements

Improvements to the run-tests.sh script
This commit is contained in:
Johan Andersson 2013-03-23 09:55:23 -07:00
commit 80796c5034
2 changed files with 33 additions and 1 deletions

View File

@ -14,3 +14,9 @@ install: svtplay-dl
svtplay-dl: lib/svtplay_dl/*py lib/svtplay_dl/fetcher/*py lib/svtplay_dl/service/*py
cd lib; $(MAKE)
mv lib/svtplay-dl .
test:
sh run-tests.sh
pylint:
find lib -name '*.py' -a '!' -path '*/tests/*' | xargs pylint

View File

@ -1,2 +1,28 @@
#!/bin/sh
PYTHONPATH=lib nosetests --all-modules
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