blob: b32d66ee533edbbadc4e61c72706ba9c1d122d49 [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 Ondrejickaffa3f602023-01-26 10:07:29 +01004 serverVpp := s.getContainerByName("server-vpp").vppInstance
Maros Ondrejicka2908f8c2023-02-02 08:58:04 +01005 serverVeth := s.netInterfaces["vppsrv"]
Maros Ondrejickaffa3f602023-01-26 10:07:29 +01006
Maros Ondrejicka2908f8c2023-02-02 08:58:04 +01007 serverVpp.vppctl("test echo server " +
Maros Ondrejickaffa3f602023-01-26 10:07:29 +01008 " private-segment-size 1g fifo-size 4 no-echo" +
Maros Ondrejicka2908f8c2023-02-02 08:58:04 +01009 " uri tcp://" + serverVeth.Ip4AddressString() + "/1234")
Filip Tehlar229f5fc2022-08-09 14:44:47 +000010
Maros Ondrejickaffa3f602023-01-26 10:07:29 +010011 clientVpp := s.getContainerByName("client-vpp").vppInstance
Filip Tehlar229f5fc2022-08-09 14:44:47 +000012
Maros Ondrejicka2908f8c2023-02-02 08:58:04 +010013 o := clientVpp.vppctl("test echo client nclients 10000 bytes 1" +
Maros Ondrejickaffa3f602023-01-26 10:07:29 +010014 " syn-timeout 100 test-timeout 100 no-return private-segment-size 1g" +
Maros Ondrejicka2908f8c2023-02-02 08:58:04 +010015 " fifo-size 4 uri tcp://" + serverVeth.Ip4AddressString() + "/1234")
Maros Ondrejicka87531802022-12-19 20:35:27 +010016 s.log(o)
Filip Tehlar229f5fc2022-08-09 14:44:47 +000017}