diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/travis_failure | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/travis_failure b/scripts/travis_failure new file mode 100755 index 0000000..93354fd --- /dev/null +++ b/scripts/travis_failure | |||
@@ -0,0 +1,18 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | CWD=`pwd` | ||
4 | |||
5 | testsdir=`ls -d libressl-*/_build/sub/tests` | ||
6 | if [ -d "$testsdir" ] ; then | ||
7 | echo "##### test logs in $testsdir" | ||
8 | cd $testsdir | ||
9 | for i in `ls *.trs` ; do | ||
10 | grep ':test-result: PASS' $i > /dev/null | ||
11 | if [ $? -eq 1 ] ; then | ||
12 | log=`echo $i | sed 's/\.trs$/\.log/'` | ||
13 | echo "***** $log" | ||
14 | cat $log | ||
15 | fi | ||
16 | done | ||
17 | cd $CWD | ||
18 | fi | ||