blob: 813297cef2a07a2e87c76791e7f148c8299a5edd [file] [log] [blame]
Filip Tehlar229f5fc2022-08-09 14:44:47 +00001package main
2
Maros Ondrejicka11a03e92022-12-01 09:56:37 +01003func (s *VethsSuite) TestEchoBuiltin() {
Maros Ondrejickadb823ed2022-12-14 16:30:04 +01004 serverContainer := s.getContainerByName("server-vpp")
5 _, err := serverContainer.execAction("Configure2Veths srv")
Maros Ondrejicka11a03e92022-12-01 09:56:37 +01006 s.assertNil(err)
Filip Tehlar229f5fc2022-08-09 14:44:47 +00007
Maros Ondrejickadb823ed2022-12-14 16:30:04 +01008 clientContainer := s.getContainerByName("client-vpp")
9 _, err = clientContainer.execAction("Configure2Veths cln")
Maros Ondrejicka11a03e92022-12-01 09:56:37 +010010 s.assertNil(err)
Filip Tehlar229f5fc2022-08-09 14:44:47 +000011
Maros Ondrejickadb823ed2022-12-14 16:30:04 +010012 _, err = serverContainer.execAction("RunEchoSrvInternal private-segment-size 1g fifo-size 4 no-echo")
Maros Ondrejicka11a03e92022-12-01 09:56:37 +010013 s.assertNil(err)
Filip Tehlar229f5fc2022-08-09 14:44:47 +000014
Maros Ondrejickadb823ed2022-12-14 16:30:04 +010015 o, err := clientContainer.execAction("RunEchoClnInternal nclients 10000 bytes 1 syn-timeout 100 test-timeout 100 no-return private-segment-size 1g fifo-size 4")
Maros Ondrejicka11a03e92022-12-01 09:56:37 +010016 s.assertNil(err)
Maros Ondrejicka87531802022-12-19 20:35:27 +010017 s.log(o)
Filip Tehlar229f5fc2022-08-09 14:44:47 +000018}