2013-01-10 19:22:16 +01:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2013-07-29 23:03:31 +02:00
|
|
|
target='zerver'
|
2013-02-01 21:38:56 +01:00
|
|
|
|
|
|
|
case "$1" in
|
2013-07-29 23:03:31 +02:00
|
|
|
zerver*)
|
2013-02-01 21:38:56 +01:00
|
|
|
target="$1"
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2013-01-10 19:22:16 +01:00
|
|
|
cd "$(dirname "$0")"/..
|
2013-07-29 23:03:31 +02:00
|
|
|
./zerver/tests/generate-fixtures
|
2013-05-30 22:17:01 +02:00
|
|
|
# "-u" uses unbuffered IO, which is important when wrapping it in
|
|
|
|
# something like subprocess (as tools/review does)
|
|
|
|
/usr/bin/env python -u ./manage.py test "$target" --settings=humbug.test_settings "$@"
|