tests: improve the output on macOS

This commit is contained in:
Pierre Pronchery 2024-10-09 20:42:24 +02:00
parent 984634cf87
commit 91503c14cd

View File

@ -27,8 +27,11 @@
#variables
[ -n "$OBJDIR" ] || OBJDIR="./"
PROGNAME="tests.sh"
SYSTEM="$(uname -s)"
#executables
DATE="date"
ECHO="echo"
[ "$SYSTEM" = "Darwin" ] && ECHO="/bin/echo"
#functions
@ -47,7 +50,7 @@ _run()
[ $# -eq 1 ] || sep=" "
shift
echo -n "$test:" 1>&2
$ECHO -n "$test:" 1>&2
(echo
echo "Testing: $test" "$@"
testexe="./$test"