2022-08-09 14:44:47 +00:00
|
|
|
package main
|
|
|
|
|
2022-12-01 09:56:37 +01:00
|
|
|
func (s *VethsSuite) TestEchoBuiltin() {
|
2022-12-14 16:30:04 +01:00
|
|
|
serverContainer := s.getContainerByName("server-vpp")
|
|
|
|
_, err := serverContainer.execAction("Configure2Veths srv")
|
2022-12-01 09:56:37 +01:00
|
|
|
s.assertNil(err)
|
2022-08-09 14:44:47 +00:00
|
|
|
|
2022-12-14 16:30:04 +01:00
|
|
|
clientContainer := s.getContainerByName("client-vpp")
|
|
|
|
_, err = clientContainer.execAction("Configure2Veths cln")
|
2022-12-01 09:56:37 +01:00
|
|
|
s.assertNil(err)
|
2022-08-09 14:44:47 +00:00
|
|
|
|
2022-12-14 16:30:04 +01:00
|
|
|
_, err = serverContainer.execAction("RunEchoSrvInternal private-segment-size 1g fifo-size 4 no-echo")
|
2022-12-01 09:56:37 +01:00
|
|
|
s.assertNil(err)
|
2022-08-09 14:44:47 +00:00
|
|
|
|
2022-12-14 16:30:04 +01:00
|
|
|
o, err := clientContainer.execAction("RunEchoClnInternal nclients 10000 bytes 1 syn-timeout 100 test-timeout 100 no-return private-segment-size 1g fifo-size 4")
|
2022-12-01 09:56:37 +01:00
|
|
|
s.assertNil(err)
|
2022-12-19 20:35:27 +01:00
|
|
|
s.log(o)
|
2022-08-09 14:44:47 +00:00
|
|
|
}
|