eris/test-all
Andrew Hamilton 787c304d06 Files don't need individual license headers.
- All files are licensed by the LICENSE file at root.
- Updated the license to 2021.
- Have kept the license in LS_COLORS since its 3rd party.
2021-04-12 02:25:49 +10:00

21 lines
382 B
Bash
Executable file

#!/bin/bash
FAILURE=0
CODEBASE_PATH=$(dirname $0)
cd ${CODEBASE_PATH}/tests
for test in *_test.py; do
echo "Testing $test"
./${test} 2>&1
FAILURE=$(($FAILURE | $?))
echo
done
if [ $FAILURE -eq 0 ]; then
echo -e "\e[32m" # Green
echo "Tests passed."
else
echo -e "\e[91m" # Red
echo "Tests failed."
fi
echo -e "\e[39m" # Normal
exit $FAILURE