diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-04-03 21:18:46 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-04-03 21:18:46 +0000 |
commit | 7e4f8db2bf9e13301c8b31742526aeb681192aeb (patch) | |
tree | 14af2659ecb8f7df06a9c5d074903b05e338c82d | |
parent | a0eaa59b501e0c2b07263b73552c23439533c5ca (diff) | |
download | strongswan-7e4f8db2bf9e13301c8b31742526aeb681192aeb.tar.bz2 strongswan-7e4f8db2bf9e13301c8b31742526aeb681192aeb.tar.xz |
added ip route list and iptables -L
-rwxr-xr-x | testing/do-tests | 72 |
1 files changed, 51 insertions, 21 deletions
diff --git a/testing/do-tests b/testing/do-tests index 156a7e0a4..fd11a6324 100755 --- a/testing/do-tests +++ b/testing/do-tests @@ -123,6 +123,21 @@ cat > $TESTRESULTSHTML <<@EOF <thead align="left"><th>Number</th><th>Test</th><th>Result</th></thead> @EOF +cat > $ALLHTML <<@EOF +<html> +<head> + <title>strongSwan UML Testing</title> +</head> +<body> + <h2>strongSwan UML Testing</h2> + <table border="0" cellspacing="2"> + <tr><td><b>Host:</b></td><td>`uname -a`</td></tr> + <tr><td><b>UML kernel: </b></td><td>$KERNEL_VERSION</td></tr> + <tr><td><b>IPsec:</b></td><td>$IPSEC_VERSION</td></tr> + <tr><td><b>Date:</b></td><td>$TESTDATE</td></tr> + <tr><td colspan="2"> </td></tr> +@EOF + cecho "UML kernel: $KERNEL_VERSION" cecho "IPsec: $IPSEC_VERSION" cecho "Date: $TESTDATE" @@ -156,6 +171,12 @@ do SUBDIR="`dirname $SUBDIR`" fi + if [ ! -d $TODAYDIR/$SUBDIR ] + then + mkdir $TODAYDIR/$SUBDIR + echo "<tr><td> </td><td><a href=\"$SUBDIR\">$SUBDIR</a></td>" >> $ALLHTML + fi + for name in $SUBTESTS do let "testnumber += 1" @@ -315,19 +336,6 @@ do printf("echo \"%s# cat /tmp/tcpdump.log | grep \047%s\047 [%s]\"; ", host, pattern, hit) printf("ssh root@\044ipv4_%s cat /tmp/tcpdump.log | grep \"%s\"; ", host, pattern) } - else if (command == "tcpdumpcount") - { - printf("if [ \044TDUP_%s == \"true\" ]; then stop_tcpdump %s; fi; \n", host, host) - printf("echo -e \"%s# [ \\\\140cat /tmp/tcpdump.log | grep \047%s\047 | tee -a /dev/stderr | wc -l\\\\140 -eq %s ] [YES]\"; ", host, pattern, hit) - printf("tcpdumpcount=\`ssh root@\044ipv4_%s cat /tmp/tcpdump.log | grep \"%s\" | tee -a /dev/stderr | wc -l\`; ", host, pattern) - printf("[ \044tcpdumpcount -eq %s ]; ", hit) - hit="YES" - } - else if (command == "cmd") - { - printf("echo \"%s# %s [%s]\"; ", host, pattern, hit) - printf("ssh root@\044ipv4_%s %s; ", host, pattern) - } else { printf("echo \"%s# %s | grep \047%s\047 [%s]\"; ", host, command, pattern, hit) @@ -396,16 +404,32 @@ do $TESTRESULTDIR/${host}.$file > /dev/null 2>&1 done + ssh $HOSTLOGIN ip route list \ + > $TESTRESULTDIR/${host}.iproute 2>/dev/null + ssh $HOSTLOGIN iptables -v -n -L \ + > $TESTRESULTDIR/${host}.iptables 2>/dev/null cat >> $TESTRESULTDIR/index.html <<@EOF <h3>$host</h3> - <ul> - <li><a href="$host.ipsec.conf">ipsec.conf</a></li> - <li><a href="$host.ipsec.secrets">ipsec.secrets</a></li> - <li><a href="$host.statusall">ipsec statusall</a></li> - <li><a href="$host.listall">ipsec listall</a></li> - <li><a href="$host.auth.log">auth.log</a></li> - <li><a href="$host.daemon.log">daemon.log</a></li> - </ul> + <table border="0" cellspacing="0" width="400"> + <tr> + <td> + <ul> + <li><a href="$host.ipsec.conf">ipsec.conf</a></li> + <li><a href="$host.ipsec.secrets">ipsec.secrets</a></li> + <li><a href="$host.statusall">ipsec statusall</a></li> + <li><a href="$host.listall">ipsec listall</a></li> + </ul> + </td> + <td> + <ul> + <li><a href="$host.auth.log">auth.log</a></li> + <li><a href="$host.daemon.log">daemon.log</a></li> + <li><a href="$host.iproute">ip route list</a></li> + <li><a href="$host.iptables">iptables -L</a></li> + </ul> + </td> + </tr> + </table> @EOF done @@ -528,6 +552,12 @@ cat >> $TESTRESULTSHTML << @EOF </html> @EOF +cat >> $ALLHTML << @EOF + </table> +</body> +</html> +@EOF + cecho "" cecho "Passed: $passed_cnt" cecho "Failed: $failed_cnt" |