1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-25 13:55:47 -05:00
polybar/common/travis/tests.sh

13 lines
283 B
Bash
Raw Normal View History

2016-12-15 14:22:42 -05:00
#!/bin/bash
2016-11-19 02:55:46 -05:00
if [ "${BUILD_TESTS:-OFF}" = "ON" ]; then
for test in tests/unit_test.*; do
[ -x "$test" ] || continue
if $test; then
printf "\033[1;32m%s\033[0m\n" "${test##*/} passed"
else
printf "\033[1;31m%s\033[0m\n" "${test##*/} failed"
fi
done
fi