4 . "fd.io/hs-test/infra"
6 . "github.com/onsi/ginkgo/v2"
10 RegisterTapTests(LinuxIperfTest)
13 func LinuxIperfTest(s *TapSuite) {
14 clnCh := make(chan error)
15 stopServerCh := make(chan struct{})
16 srvCh := make(chan error, 1)
17 clnRes := make(chan string, 1)
19 stopServerCh <- struct{}{}
24 s.StartServerApp(srvCh, stopServerCh, nil)
27 s.AssertNil(err, fmt.Sprint(err))
28 s.Log("server running")
30 ipAddress := s.GetInterfaceByName(TapInterfaceName).Ip4AddressString()
33 s.StartClientApp(ipAddress, nil, clnCh, clnRes)
35 s.Log("client running")
38 s.AssertNil(err, "err: '%s', ip: '%s'", err, ipAddress)
39 s.Log("Test completed")