blob: fead2c1b778c8e9362025760262cbd813fcb574f [file] [log] [blame]
Janos Follatha75c8712016-03-21 09:22:58 +00001#!/bin/sh
2
3# List the server and client logs on failed ssl-opt.sh and compat.sh tests.
4# This script is used to make the logs show up in the Travis test results.
5
6# Some of the logs can be very long: this means usually a couple of megabytes
7# but it can bee much more. For example, the client log of test 273 in ssl-opt.sh
8# is more than 630 Megabytes long.
9
10if [ -d include/mbedtls ]; then :; else
11 echo "$0: must be run from root" >&2
12 exit 1
13fi
14
15FILES="o-srv-*.log o-cli-*.log c-srv-*.log c-cli-*.log o-pxy-*.log"
16
17for PATTERN in $FILES; do
18 for LOG in $( ls tests/$PATTERN 2>/dev/null ); do
19 echo
20 echo "****** BEGIN file: $LOG ******"
21 echo
22 cat $LOG
23 echo "****** END file: $LOG ******"
24 echo
25 rm $LOG
26 done
27done