mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
24 lines
815 B
Plaintext
24 lines
815 B
Plaintext
|
#!/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;
|