diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-11-28 16:19:48 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-01-17 15:22:08 +0100 |
commit | 669fc9f9ec74d2e564eefc61cd2ffb92c64ad150 (patch) | |
tree | f506687386de7d53263d26d1de0ca43480eecb95 /testing | |
parent | b460fb1dd29b69917f934e267eff760040c34680 (diff) | |
download | strongswan-669fc9f9ec74d2e564eefc61cd2ffb92c64ad150.tar.bz2 strongswan-669fc9f9ec74d2e564eefc61cd2ffb92c64ad150.tar.xz |
Copy and display host specific tcpdump.log files
Diffstat (limited to 'testing')
-rwxr-xr-x | testing/do-tests | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/do-tests b/testing/do-tests index f0b654a07..adc3e824f 100755 --- a/testing/do-tests +++ b/testing/do-tests @@ -599,6 +599,28 @@ do done cat >> $TESTRESULTDIR/index.html <<@EOF + <h3>tcpdump</h3> + <ul> +@EOF + + for host in $TCPDUMPHOSTS + do + eval HOSTLOGIN=root@\$ipv4_${host} + + scp $SSHCONF $HOSTLOGIN:/tmp/tcpdump.log \ + $TESTRESULTDIR/${host}.tcpdump.log > /dev/null 2>&1 + + cat >> $TESTRESULTDIR/index.html <<@EOF + <li><a href="$host.tcpdump.log">$host tcpdump.log</a></li> +@EOF + + done + + cat >> $TESTRESULTDIR/index.html <<@EOF + </ul> +@EOF + + cat >> $TESTRESULTDIR/index.html <<@EOF </td></tr> </table> </body> |