platypush/run_tests.sh

23 lines
347 B
Bash
Raw Normal View History

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
echo "Test FAILED: $testcase" >&2
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: