aboutsummaryrefslogtreecommitdiff
path: root/scripts/travis_failure
blob: 93354fdca9a66026bd1aeb889321469e15c2a2a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

CWD=`pwd`

testsdir=`ls -d libressl-*/_build/sub/tests`
if [ -d "$testsdir" ] ; then
	echo "##### test logs in $testsdir"
	cd $testsdir
	for i in `ls *.trs` ; do
		grep ':test-result: PASS' $i > /dev/null
		if [ $? -eq 1 ] ; then
			log=`echo $i | sed 's/\.trs$/\.log/'`
			echo "***** $log"
			cat $log
		fi
	done
	cd $CWD
fi