aboutsummaryrefslogtreecommitdiffstats
path: root/extras/hs-test/echo_test.go
blob: 9bc8f76105cca1a8cb4faeff9c728b9cd45c0f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package main

import (
	"fmt"
)

func (s *VethsSuite) TestEchoBuiltin() {
	serverContainer := s.getContainerByName("server-vpp")
	_, err := serverContainer.execAction("Configure2Veths srv")
	s.assertNil(err)

	clientContainer := s.getContainerByName("client-vpp")
	_, err = clientContainer.execAction("Configure2Veths cln")
	s.assertNil(err)

	_, err = serverContainer.execAction("RunEchoSrvInternal private-segment-size 1g fifo-size 4 no-echo")
	s.assertNil(err)

	o, err := clientContainer.execAction("RunEchoClnInternal nclients 10000 bytes 1 syn-timeout 100 test-timeout 100 no-return private-segment-size 1g fifo-size 4")
	s.assertNil(err)
	fmt.Println(o)
}