blob: 70f9e4c31a13ebe61d7a4ed9cd084bdcbfbec1cb [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 Ondrejicka7550dd22023-02-07 20:40:27 +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 Ondrejicka7550dd22023-02-07 20:40:27 +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}