blob: 1b24e08466d724bdc7c2b2d6cc918786a0f355bd [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
5 serverVeth := s.veths["vppsrv"]
6
7 _, err := serverVpp.vppctl("test echo server " +
8 " private-segment-size 1g fifo-size 4 no-echo" +
9 " uri tcp://" + serverVeth.Address() + "/1234")
Maros Ondrejicka11a03e92022-12-01 09:56:37 +010010 s.assertNil(err)
Filip Tehlar229f5fc2022-08-09 14:44:47 +000011
Maros Ondrejickaffa3f602023-01-26 10:07:29 +010012 clientVpp := s.getContainerByName("client-vpp").vppInstance
Filip Tehlar229f5fc2022-08-09 14:44:47 +000013
Maros Ondrejickaffa3f602023-01-26 10:07:29 +010014 o, err := clientVpp.vppctl("test echo client nclients 10000 bytes 1" +
15 " syn-timeout 100 test-timeout 100 no-return private-segment-size 1g" +
16 " fifo-size 4 uri tcp://" + serverVeth.Address() + "/1234")
Maros Ondrejicka11a03e92022-12-01 09:56:37 +010017 s.assertNil(err)
Maros Ondrejicka87531802022-12-19 20:35:27 +010018 s.log(o)
Filip Tehlar229f5fc2022-08-09 14:44:47 +000019}