diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-09-01 08:12:18 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-09-01 08:12:18 +0200 |
| commit | 5590a909d99c779e79f9617f494f0dc645656c36 (patch) | |
| tree | 659238bce11b09f0149b9fae0fe28ffc560f1034 | |
| parent | d9fb7fc2e379bcbcc963a67a4e8a0c3cd2f20e6d (diff) | |
Improve run.sh
| -rwxr-xr-x | tests/run.sh | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/run.sh b/tests/run.sh index 9fa7aa0..98f0a23 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -1,11 +1,5 @@ #!/usr/bin/env bash -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[0;33m' -BOLD='\033[1m' -NC='\033[0m' # No Color - wai=$(dirname $(readlink -f "$0")) # Current script directory tests=$(ls -d ${wai}/*/) # Find tests out=$(mktemp) @@ -21,7 +15,7 @@ do # Ensure timeout if [ $? -eq 124 ] then - printf "${RED}${BOLD}failed${NC}\n" + echo "failed :(" echo "------------- Test timeout (should not exceed ${test_timeout}s) -------------" cat "$out"; rm "$out" @@ -31,9 +25,9 @@ do # Ensure test output if [ "$(base64 $out)" = "$(base64 ./out)" ] then - printf "${GREEN}${BOLD}passed${NC}\n" + echo "passed" else - printf "${RED}${BOLD}failed${NC}\n" + echo "failed :(" echo "------------- Expected -------------" cat out echo "------------- Got -------------" |
