2014-07-17 15:47:18 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Copyright (C) 2014 Christian Boltz
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
|
|
# License published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
|
|
|
test -z "$RUNTESTS_PY__PYTHON_BINARY" && RUNTESTS_PY__PYTHON_BINARY=python3
|
|
|
|
|
2014-07-22 21:25:25 +02:00
|
|
|
export PYTHONPATH=..
|
|
|
|
|
2014-07-17 15:47:18 +02:00
|
|
|
failed=""
|
|
|
|
for file in *.py ; do
|
|
|
|
echo "running $file..."
|
|
|
|
"$RUNTESTS_PY__PYTHON_BINARY" $file || {
|
|
|
|
failed="$failed $file"
|
|
|
|
echo "*** test $file failed - giving you some time to read the output... ***"
|
|
|
|
sleep 10
|
|
|
|
}
|
|
|
|
echo
|
|
|
|
done
|
|
|
|
|
2014-10-03 11:48:21 +02:00
|
|
|
test -z "$failed" || {
|
2014-07-17 15:47:18 +02:00
|
|
|
echo
|
|
|
|
echo "*** The following tests failed:"
|
|
|
|
echo "*** $failed"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|