Filip Tehlar | 229f5fc | 2022-08-09 14:44:47 +0000 | [diff] [blame] | 1 | package main |
| 2 | |
Maros Ondrejicka | 11a03e9 | 2022-12-01 09:56:37 +0100 | [diff] [blame] | 3 | func (s *VethsSuite) TestEchoBuiltin() { |
Maros Ondrejicka | ffa3f60 | 2023-01-26 10:07:29 +0100 | [diff] [blame] | 4 | 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 Ondrejicka | 11a03e9 | 2022-12-01 09:56:37 +0100 | [diff] [blame] | 10 | s.assertNil(err) |
Filip Tehlar | 229f5fc | 2022-08-09 14:44:47 +0000 | [diff] [blame] | 11 | |
Maros Ondrejicka | ffa3f60 | 2023-01-26 10:07:29 +0100 | [diff] [blame] | 12 | clientVpp := s.getContainerByName("client-vpp").vppInstance |
Filip Tehlar | 229f5fc | 2022-08-09 14:44:47 +0000 | [diff] [blame] | 13 | |
Maros Ondrejicka | ffa3f60 | 2023-01-26 10:07:29 +0100 | [diff] [blame] | 14 | 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 Ondrejicka | 11a03e9 | 2022-12-01 09:56:37 +0100 | [diff] [blame] | 17 | s.assertNil(err) |
Maros Ondrejicka | 8753180 | 2022-12-19 20:35:27 +0100 | [diff] [blame] | 18 | s.log(o) |
Filip Tehlar | 229f5fc | 2022-08-09 14:44:47 +0000 | [diff] [blame] | 19 | } |