Copy and display host specific tcpdump.log files
authorTobias Brunner <tobias@strongswan.org>
Wed, 28 Nov 2012 15:19:48 +0000 (16:19 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 17 Jan 2013 14:22:08 +0000 (15:22 +0100)
testing/do-tests

index f0b654a..adc3e82 100755 (executable)
@@ -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>