Janos Follath | c209461 | 2016-03-21 09:22:58 +0000 | [diff] [blame] | 1 | #!/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 | |
| 10 | if [ -d include/mbedtls ]; then :; else |
| 11 | echo "$0: must be run from root" >&2 |
| 12 | exit 1 |
| 13 | fi |
| 14 | |
| 15 | FILES="o-srv-*.log o-cli-*.log c-srv-*.log c-cli-*.log o-pxy-*.log" |
| 16 | |
| 17 | for 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 |
| 27 | done |