mirror of
https://github.com/erkin/ponysay.git
synced 2025-01-31 10:26:43 +01:00
add a few testes
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
8d3e4a03fd
commit
5fb1830025
1 changed files with 15 additions and 1 deletions
16
dev/dist.sh
16
dev/dist.sh
|
@ -80,6 +80,20 @@ pdf()
|
|||
|
||||
tag()
|
||||
{
|
||||
echo 'Testing executability'
|
||||
./src/__main__.py -l >/dev/null || exit 1
|
||||
./src/__main__.py -L >/dev/null || exit 1
|
||||
./src/__main__.py +l >/dev/null || exit 1
|
||||
./src/__main__.py +L >/dev/null || exit 1
|
||||
./src/__main__.py -A >/dev/null || exit 1
|
||||
./src/__main__.py +A >/dev/null || exit 1
|
||||
./src/__main__.py -B >/dev/null || exit 1
|
||||
./src/__main__.py -of pinkie >/dev/null || exit 1
|
||||
./src/__main__.py -o +f faust >/dev/null || exit 1
|
||||
./src/__main__.py -o -F faust >/dev/null || exit 1
|
||||
echo test | ./src/__main__.py -f pinkie >/dev/null || exit 1
|
||||
echo 'No error was thrown'
|
||||
|
||||
version=`./setup.py version`
|
||||
if [ "$version" = 'Ponysay '"$1"' installer' ]; then
|
||||
git tag -a "$@" && git checkout "$1" && git push -u origin "$1"
|
||||
|
@ -91,6 +105,6 @@ tag()
|
|||
}
|
||||
|
||||
|
||||
[ "$1" = './dist.sh' ] && cd ..
|
||||
[ "$0" = './dist.sh' ] && cd ..
|
||||
"$@"
|
||||
|
||||
|
|
Loading…
Reference in a new issue