blob: 9bc8f76105cca1a8cb4faeff9c728b9cd45c0f1a [file] [log] [blame]
Filip Tehlar229f5fc2022-08-09 14:44:47 +00001package main
2
3import (
4 "fmt"
Filip Tehlar229f5fc2022-08-09 14:44:47 +00005)
6
Maros Ondrejicka11a03e92022-12-01 09:56:37 +01007func (s *VethsSuite) TestEchoBuiltin() {
Maros Ondrejickadb823ed2022-12-14 16:30:04 +01008 serverContainer := s.getContainerByName("server-vpp")
9 _, err := serverContainer.execAction("Configure2Veths srv")
Maros Ondrejicka11a03e92022-12-01 09:56:37 +010010 s.assertNil(err)
Filip Tehlar229f5fc2022-08-09 14:44:47 +000011
Maros Ondrejickadb823ed2022-12-14 16:30:04 +010012 clientContainer := s.getContainerByName("client-vpp")
13 _, err = clientContainer.execAction("Configure2Veths cln")
Maros Ondrejicka11a03e92022-12-01 09:56:37 +010014 s.assertNil(err)
Filip Tehlar229f5fc2022-08-09 14:44:47 +000015
Maros Ondrejickadb823ed2022-12-14 16:30:04 +010016 _, err = serverContainer.execAction("RunEchoSrvInternal private-segment-size 1g fifo-size 4 no-echo")
Maros Ondrejicka11a03e92022-12-01 09:56:37 +010017 s.assertNil(err)
Filip Tehlar229f5fc2022-08-09 14:44:47 +000018
Maros Ondrejickadb823ed2022-12-14 16:30:04 +010019 o, err := clientContainer.execAction("RunEchoClnInternal nclients 10000 bytes 1 syn-timeout 100 test-timeout 100 no-return private-segment-size 1g fifo-size 4")
Maros Ondrejicka11a03e92022-12-01 09:56:37 +010020 s.assertNil(err)
Filip Tehlar229f5fc2022-08-09 14:44:47 +000021 fmt.Println(o)
22}