polybar-dwm/common/travis/tests.sh

17 lines
264 B
Bash
Raw Normal View History

2016-12-15 19:22:42 +00:00
#!/bin/bash
2017-01-20 02:30:03 +00:00
r=0
2016-11-19 07:55:46 +00:00
2018-04-08 13:29:31 +00:00
make all_unit_tests
2018-04-07 22:49:51 +00:00
for test in tests/unit_test.*; do
[ -x "$test" ] || continue
if $test; then
printf "\033[1;32m%s\033[0m\n" "${test##*/} passed"
else
r=1
printf "\033[1;31m%s\033[0m\n" "${test##*/} failed"
fi
done
2017-01-20 02:30:03 +00:00
exit $r