Slightly improved the tests log

This commit is contained in:
Pierre Pronchery 2014-11-11 01:38:22 +01:00
parent 716d5c6a87
commit 31e3058e74

View File

@ -39,12 +39,13 @@ _test()
system="$1" system="$1"
subdir="$2" subdir="$2"
echo
echo "Testing: $system $subdir" echo "Testing: $system $subdir"
$CONFIGURE -O "$system" -- "$subdir" 2>&1 || return 2 $CONFIGURE -O "$system" -- "$subdir" 2>&1 || return 2
$DIFF -- "$subdir/Makefile" "$subdir/Makefile.$system" 2>&1 $DIFF -- "$subdir/Makefile.$system" "$subdir/Makefile" 2>&1
res=$? res=$?
if [ $res -ne 0 ]; then if [ $res -ne 0 ]; then
echo "Failed with error code $res" echo "$system $subdir: Failed with error code $res"
echo "$system $subdir: FAIL" 1>&2 echo "$system $subdir: FAIL" 1>&2
else else
echo "$system $subdir: PASS" 1>&2 echo "$system $subdir: PASS" 1>&2
@ -86,6 +87,5 @@ fi
target="$1" target="$1"
($DATE ($DATE
echo
_test "Darwin" "library" _test "Darwin" "library"
_test "NetBSD" "library") > "$target" _test "NetBSD" "library") > "$target"