2017-12-22 02:11:56 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
PYTHON=python
|
2021-02-23 01:09:03 +01:00
|
|
|
tests_ret=0
|
2017-12-22 02:11:56 +01:00
|
|
|
|
|
|
|
for testcase in tests/test_*.py
|
|
|
|
do
|
|
|
|
$PYTHON -m unittest $testcase
|
2021-02-23 01:09:03 +01:00
|
|
|
test_ret=$?
|
|
|
|
|
|
|
|
if [[ $test_ret != 0 ]]; then
|
|
|
|
tests_ret=$test_ret
|
|
|
|
echo "-------------" >&2
|
2021-02-27 15:01:25 +01:00
|
|
|
echo "FAILED: $testcase" >&2
|
2021-02-23 01:09:03 +01:00
|
|
|
echo "-------------" >&2
|
|
|
|
fi
|
2017-12-22 02:11:56 +01:00
|
|
|
done
|
|
|
|
|
2021-02-23 01:09:03 +01:00
|
|
|
exit $tests_ret
|
2017-12-22 02:11:56 +01:00
|
|
|
|
2021-02-23 01:09:03 +01:00
|
|
|
|
|
|
|
# vim:sw=4:ts=4:et:
|