mirror of https://github.com/Gnucash/gnucash
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
815 B
24 lines
815 B
#!/bin/bash
|
|
|
|
if [[ "$BUILDTYPE" == "cmake-make" ]] || [[ "$BUILDTYPE" == "cmake-ninja" ]]; then
|
|
echo "########################";
|
|
echo "##### LastTest.log #####";
|
|
echo "########################";
|
|
cat /build/Testing/Temporary/LastTest.log;
|
|
elif [[ "$BUILDTYPE" == "autotools" ]]; then
|
|
find . -name 'test*.log' -print0 |
|
|
while IFS= read -r -d '' logfile; do
|
|
SIZE=$((${#logfile} + 12));
|
|
HRULE=$(head -c "$SIZE" < /dev/zero | tr '\0' '#');
|
|
echo $HRULE;
|
|
echo "##### ${logfile} #####";
|
|
echo $HRULE;
|
|
cat -- "$logfile";
|
|
echo $'\n'$'\n';
|
|
done;
|
|
else
|
|
echo "Unknown BUILDTYPE: \"$BUILDTYPE\", cannot create failure information.";
|
|
fi
|
|
# This script should fail so that the entire script will fail.
|
|
exit 1;
|