blob: 27582dd742f87dcbe53d14d740006f3a3a094dae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/bash
set -evu
./bootstrap
./configure CFLAGS="-ggdb -O0" \
--enable-logging=verbose \
--disable-doc
make
make install
check_command()
{
make check
}
print_logs()
{
for i in src/*/test-suite.log
do
FAILURE="$(grep '^FAIL:' ${i} | cut -d' ' -f2)"
if [ ! -z "${FAILURE}" ]; then
echo "Printing ${FAILURE}.log"
tail "$(dirname $i)/${FAILURE}.log"
fi
done
}
if ! check_command ; then
print_logs
exit 1
fi
|