From 0df15c8bfb7ea73eff0040f5e3181eb328065824 Mon Sep 17 00:00:00 2001 From: mryouse Date: Fri, 8 Jul 2022 01:35:20 +0000 Subject: make the test runner look a bit nicer --- tests/runner.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/runner.bash b/tests/runner.bash index 32af554..20634dd 100755 --- a/tests/runner.bash +++ b/tests/runner.bash @@ -6,9 +6,10 @@ do expected=$(tail -1 $item | sed 's/; //') actual=$(python3 ../neb.py $item) if [[ "$expected" == "$actual" ]]; then + echo -n "." ((passed=passed+1)) else - echo "$item... FAILED" + echo "$item FAILED" echo " Expected: $expected" echo " Actual: $actual" echo "" @@ -18,5 +19,6 @@ done pct=$(python -c "print('{:.2f}'.format($passed / float($total) * 100))") +echo "" echo "Total: $total" echo "Passed: $passed ($pct%)" -- cgit v1.2.3