mirror of
https://github.com/polybar/polybar.git
synced 2024-10-27 05:23:39 -04:00
12 lines
283 B
Bash
Executable file
12 lines
283 B
Bash
Executable file
#!/bin/bash
|
|
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
|