ia64/xen-unstable

changeset 10107:32013c5118d2

[XM-TEST] Use explicit (IP id==packet size) on hping2 tests to avoid
problems with IP id==0

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri May 19 16:01:08 2006 +0100 (2006-05-19)
parents 292b4d017d56
children e7d7287ab222
files tools/xm-test/tests/network/03_network_local_tcp_pos.py tools/xm-test/tests/network/04_network_local_udp_pos.py tools/xm-test/tests/network/06_network_dom0_tcp_pos.py tools/xm-test/tests/network/07_network_dom0_udp_pos.py tools/xm-test/tests/network/12_network_domU_tcp_pos.py tools/xm-test/tests/network/13_network_domU_udp_pos.py
line diff
     1.1 --- a/tools/xm-test/tests/network/03_network_local_tcp_pos.py	Fri May 19 15:58:46 2006 +0100
     1.2 +++ b/tools/xm-test/tests/network/03_network_local_tcp_pos.py	Fri May 19 16:01:08 2006 +0100
     1.3 @@ -44,7 +44,7 @@ try:
     1.4      lofails=""
     1.5      for size in trysizes:
     1.6          out = console.runCmd("hping2 127.0.0.1 -E /dev/urandom -q -c 20 " 
     1.7 -              + "--fast -d " + str(size))
     1.8 +              + "--fast -d " + str(size) + " -N " + str(size))
     1.9          if out["return"]:
    1.10              lofails += " " + str(size)
    1.11  
    1.12 @@ -54,7 +54,7 @@ try:
    1.13      ip = netdev.getNetDevIP()
    1.14      for size in trysizes:
    1.15          out = console.runCmd("hping2 " + ip + " -E /dev/urandom -q -c 20 "
    1.16 -              + "--fast -d "+ str(size))
    1.17 +              + "--fast -d "+ str(size) + " -N " + str(size))
    1.18          if out["return"]:
    1.19              eth0fails += " " + str(size) 
    1.20  except ConsoleError, e:
     2.1 --- a/tools/xm-test/tests/network/04_network_local_udp_pos.py	Fri May 19 15:58:46 2006 +0100
     2.2 +++ b/tools/xm-test/tests/network/04_network_local_udp_pos.py	Fri May 19 16:01:08 2006 +0100
     2.3 @@ -43,7 +43,7 @@ try:
     2.4      lofails=""
     2.5      for size in trysizes:
     2.6          out = console.runCmd("hping2 127.0.0.1 -E /dev/urandom -2 -q -c 20 "
     2.7 -              + "--fast -d " + str(size))
     2.8 +              + "--fast -d " + str(size) + " -N " + str(size))
     2.9          if out["return"]:
    2.10              lofails += " " + str(size)
    2.11              print out["output"]
    2.12 @@ -54,7 +54,7 @@ try:
    2.13      ip = netdev.getNetDevIP()
    2.14      for size in trysizes:
    2.15          out = console.runCmd("hping2 " + ip + " -E /dev/urandom -2 -q -c 20 "
    2.16 -              + "--fast -d " + str(size))
    2.17 +              + "--fast -d " + str(size) + " -N " + str(size))
    2.18          if out["return"]:
    2.19              eth0fails += " " + str(size) 
    2.20              print out["output"]
     3.1 --- a/tools/xm-test/tests/network/06_network_dom0_tcp_pos.py	Fri May 19 15:58:46 2006 +0100
     3.2 +++ b/tools/xm-test/tests/network/06_network_dom0_tcp_pos.py	Fri May 19 16:01:08 2006 +0100
     3.3 @@ -44,7 +44,7 @@ try:
     3.4      dom0ip = netdev.getDom0AliasIP()
     3.5      for size in trysizes:
     3.6          out = console.runCmd("hping2 " + dom0ip + " -E /dev/urandom -q -c 20 "
     3.7 -              + "--fast -d " + str(size))
     3.8 +              + "--fast -d " + str(size) + " -N " + str(size))
     3.9          if out["return"]:
    3.10              fails += " " + str(size) 
    3.11              print out["output"]
     4.1 --- a/tools/xm-test/tests/network/07_network_dom0_udp_pos.py	Fri May 19 15:58:46 2006 +0100
     4.2 +++ b/tools/xm-test/tests/network/07_network_dom0_udp_pos.py	Fri May 19 16:01:08 2006 +0100
     4.3 @@ -43,7 +43,7 @@ try:
     4.4      dom0ip = netdev.getDom0AliasIP()
     4.5      for size in trysizes:
     4.6          out = console.runCmd("hping2 " + dom0ip + " -E /dev/urandom -2 -q -c 20"
     4.7 -             + " --fast -d " + str(size))
     4.8 +             + " --fast -d " + str(size) + " -N " + str(size))
     4.9          if out["return"]:
    4.10              fails += " " + str(size) 
    4.11              print out["output"]
     5.1 --- a/tools/xm-test/tests/network/12_network_domU_tcp_pos.py	Fri May 19 15:58:46 2006 +0100
     5.2 +++ b/tools/xm-test/tests/network/12_network_domU_tcp_pos.py	Fri May 19 16:01:08 2006 +0100
     5.3 @@ -50,7 +50,7 @@ try:
     5.4      ip2 = dst_netdev.getNetDevIP()
     5.5      for size in pingsizes:
     5.6          out = src_console.runCmd("hping2 " + ip2 + " -E /dev/urandom -q -c 20 "
     5.7 -              + "--fast -d " + str(size))
     5.8 +              + "--fast -d " + str(size) + " -N " + str(size))
     5.9          if out["return"]:
    5.10              fails += " " + str(size) 
    5.11              print out["output"]
     6.1 --- a/tools/xm-test/tests/network/13_network_domU_udp_pos.py	Fri May 19 15:58:46 2006 +0100
     6.2 +++ b/tools/xm-test/tests/network/13_network_domU_udp_pos.py	Fri May 19 16:01:08 2006 +0100
     6.3 @@ -50,7 +50,7 @@ try:
     6.4      ip2 = dst_netdev.getNetDevIP()
     6.5      for size in pingsizes:
     6.6          out = src_console.runCmd("hping2 " + ip2 + " -E /dev/urandom -2 -q "
     6.7 -              + "-c 20 --fast -d " + str(size))
     6.8 +              + "-c 20 --fast -d " + str(size) + " -N " + str(size))
     6.9          if out["return"]:
    6.10              fails += " " + str(size) 
    6.11              print out["output"]