Minor improvements to 2005/giljade/test.sh

Instead of grep -C5 it's now grep -C10 in case there's ever a
compilation eror.

Make it say 'successfully compiled' rather than just 'compiled'.
This commit is contained in:
Cody Boone Ferguson committed 2023-11-29 06:23:01 -08:00
1 parent 77a35f5c25
commit 6a1e57c8d8
1 file changed
+2 -2
+2 -2
View File
@@ -44,13 +44,13 @@ elif [[ "$(grep -c '[^-]error' out.count)" -ne 0 ]]; then
echo "FAIL: Error compiling one or more versions!" 1>&2
echo "Try the following command to find out what problems occurred:" 1>&2
echo 1>&2
echo " grep -C5 -E '[^-]error' out.count" 1>&2
echo " grep -C10 -E '[^-]error' out.count" 1>&2
echo 1>&2
echo "and feel free to report or fix it and make a GitHub pull request." 1>&2
EXIT_CODE=2
else
# all good: every version could be compiled
echo "Found and compiled all 180 versions!" 1>&2
echo "Found and successfully compiled all 180 versions!" 1>&2
# set EXIT_CODE to 0 even though it should be already
EXIT_CODE=0
fi