platypush/run_tests.sh
Fabio Manganiello b4f9472fc5 - Proper expansion of the context variables on functional procedure call
- Expanded and refactored tests framework

- Added test_procedure
2021-02-27 15:01:25 +01:00

22 lines
342 B
Bash
Executable file

#!/bin/bash
PYTHON=python
tests_ret=0
for testcase in tests/test_*.py
do
$PYTHON -m unittest $testcase
test_ret=$?
if [[ $test_ret != 0 ]]; then
tests_ret=$test_ret
echo "-------------" >&2
echo "FAILED: $testcase" >&2
echo "-------------" >&2
fi
done
exit $tests_ret
# vim:sw=4:ts=4:et: