diff options
Diffstat (limited to 'extras/hs-test/echo_test.go')
-rw-r--r-- | extras/hs-test/echo_test.go | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/extras/hs-test/echo_test.go b/extras/hs-test/echo_test.go index 813297cef2a..1b24e08466d 100644 --- a/extras/hs-test/echo_test.go +++ b/extras/hs-test/echo_test.go @@ -1,18 +1,19 @@ package main func (s *VethsSuite) TestEchoBuiltin() { - serverContainer := s.getContainerByName("server-vpp") - _, err := serverContainer.execAction("Configure2Veths srv") - s.assertNil(err) + serverVpp := s.getContainerByName("server-vpp").vppInstance + serverVeth := s.veths["vppsrv"] - clientContainer := s.getContainerByName("client-vpp") - _, err = clientContainer.execAction("Configure2Veths cln") + _, err := serverVpp.vppctl("test echo server " + + " private-segment-size 1g fifo-size 4 no-echo" + + " uri tcp://" + serverVeth.Address() + "/1234") s.assertNil(err) - _, err = serverContainer.execAction("RunEchoSrvInternal private-segment-size 1g fifo-size 4 no-echo") - s.assertNil(err) + clientVpp := s.getContainerByName("client-vpp").vppInstance - o, err := clientContainer.execAction("RunEchoClnInternal nclients 10000 bytes 1 syn-timeout 100 test-timeout 100 no-return private-segment-size 1g fifo-size 4") + o, err := clientVpp.vppctl("test echo client nclients 10000 bytes 1" + + " syn-timeout 100 test-timeout 100 no-return private-segment-size 1g" + + " fifo-size 4 uri tcp://" + serverVeth.Address() + "/1234") s.assertNil(err) s.log(o) } |