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 NumberTestResult @EOF +cat > $ALLHTML <<@EOF + + + strongSwan UML Testing + + +

strongSwan UML Testing

+ + + + + + +@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 "" >> $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

$host

- +
Host:`uname -a`
UML kernel:  $KERNEL_VERSION
IPsec:$IPSEC_VERSION
Date:$TESTDATE
 
 $SUBDIR
+ + + + +
+ + + +
@EOF done @@ -528,6 +552,12 @@ cat >> $TESTRESULTSHTML << @EOF @EOF +cat >> $ALLHTML << @EOF + + + +@EOF + cecho "" cecho "Passed: $passed_cnt" cecho "Failed: $failed_cnt"