Skip to content

Commit acb9440

Browse files
committed
tests: fix a couple bugs in the tests
1 parent 01cd4ba commit acb9440

File tree

6 files changed

+44
-448
lines changed

6 files changed

+44
-448
lines changed

README.org

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -651,15 +651,3 @@ status: |
651651
browse: 'q' - quit, 'd' - dashboard, 'u' - util, 's' - streams, 'l' - latency,
652652
dashboard: 'n' - reset view, 'o' - owned ports, 'a' - all ports, 'c' - clear,
653653

654-
655-
656-
657-
* Issues to close
658-
** tcpdump test/veth (non-phy) bad perf
659-
- When 2 packets are sent performance is horrendous.
660-
- there's a 200ms pause after EGRESS sends a 2 inner pkt IPTFS packet.
661-
- use pkt-size 1400 and inner pkt size of 625 to get this, or similar
662-
- [not] this acutally appears to be some sort of bug with chained skbuffs and veths
663-
- even lineraizing the buffer stillk see problem
664-
- saw one run with corruption on other side
665-
- physical interface runs seem fine

tests/manual/tcpdump/tcpdump.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ async def _test_iperf(unet, astepf, ipsec_intf):
5656

5757
# check the sum inside iptfs code with printk
5858

59-
pktsize = "40"
59+
pktsize = "128"
60+
# pktsize = None
6061

6162
logging.info("Starting iperf server on h2")
6263
sargs = ["iperf3" if iperf3 else "iperf", "-s"]
@@ -71,7 +72,7 @@ async def _test_iperf(unet, astepf, ipsec_intf):
7172
if use_udp:
7273
cargs = ["-u", "-b", udp_brate, "-l", pktsize]
7374
else:
74-
cargs = ["-M", pktsize]
75+
cargs = ["-M", pktsize] if pktsize else []
7576
if not iperf3:
7677
cargs.append("-m")
7778

tests/stress/stress.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async def _test_policy_small_pkt(unet, pytestconfig):
152152
duration = pytestconfig.getoption("--duration")
153153
iptfs_opts = pytestconfig.getoption("--iptfs-opts")
154154
mode = pytestconfig.getoption("--mode")
155-
rate = convert_number(pytestconfig.getoption("--rate")) / connections
155+
rate = convert_number(pytestconfig.getoption("--rate", "8M")) / connections
156156

157157
await setup_policy_tun(
158158
unet, ipsec_intf="eth1", mode=mode, iptfs_opts=iptfs_opts, trex=True
@@ -203,7 +203,7 @@ async def _test_policy_imix(unet, pytestconfig):
203203
duration = pytestconfig.getoption("--duration")
204204
iptfs_opts = pytestconfig.getoption("--iptfs-opts")
205205
mode = pytestconfig.getoption("--mode")
206-
rate = convert_number(pytestconfig.getoption("--rate")) / connections
206+
rate = convert_number(pytestconfig.getoption("--rate", "40M")) / connections
207207

208208
await setup_policy_tun(
209209
unet, ipsec_intf="eth1", mode=mode, iptfs_opts=iptfs_opts, trex=True

tests/stress/test_stress.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ async def test_net_up(unet):
8282
logging.debug(r2.conrepl.cmd_raises("ping -w1 -i.2 -c1 11.0.0.1"))
8383

8484

85-
async def test_policy_small_pkt(unet):
86-
await _test_policy_small_pkt(unet, convert_number("8M"))
85+
async def test_policy_small_pkt(unet, pytestconfig):
86+
await _test_policy_small_pkt(unet, pytestconfig)
8787

8888

89-
async def test_policy_imix(unet):
90-
await _test_policy_imix(unet, convert_number("40M"))
89+
async def test_policy_imix(unet, pytestconfig):
90+
await _test_policy_imix(unet, pytestconfig)

0 commit comments

Comments
 (0)