summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/echo_test.go
blob: 70f9e4c31a13ebe61d7a4ed9cd084bdcbfbec1cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main

func (s *VethsSuite) TestEchoBuiltin() {
	serverVpp := s.getContainerByName("server-vpp").vppInstance
	serverVeth := s.netInterfaces["vppsrv"]

	serverVpp.vppctl("test echo server " +
		" private-segment-size 1g fifo-size 4 no-echo" +
		" uri tcp://" + serverVeth.IP4AddressString() + "/1234")

	clientVpp := s.getContainerByName("client-vpp").vppInstance

	o := 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.IP4AddressString() + "/1234")
	s.log(o)
}