hs-test: change convention for skipping tests
[vpp.git] / extras / hs-test / raw_session_test.go
1 package main
2
3 func (s *VethsSuite) TestVppEchoQuic() {
4         s.testVppEcho("quic")
5 }
6
7 // udp echo currently broken in vpp, skipping
8 func (s *VethsSuite) SkipTestVppEchoUdp() {
9         s.testVppEcho("udp")
10 }
11
12 func (s *VethsSuite) TestVppEchoTcp() {
13         s.testVppEcho("tcp")
14 }
15
16 func (s *VethsSuite) testVppEcho(proto string) {
17         serverVethAddress := s.netInterfaces["vppsrv"].ip4AddressString()
18         uri := proto + "://" + serverVethAddress + "/12344"
19
20         echoSrvContainer := s.getContainerByName("server-app")
21         serverCommand := "vpp_echo server TX=RX" +
22                 " socket-name " + echoSrvContainer.getContainerWorkDir() + "/var/run/app_ns_sockets/default" +
23                 " use-app-socket-api" +
24                 " uri " + uri
25         s.log(serverCommand)
26         echoSrvContainer.execServer(serverCommand)
27
28         echoClnContainer := s.getContainerByName("client-app")
29
30         clientCommand := "vpp_echo client" +
31                 " socket-name " + echoClnContainer.getContainerWorkDir() + "/var/run/app_ns_sockets/default" +
32                 " use-app-socket-api uri " + uri
33         s.log(clientCommand)
34         o := echoClnContainer.exec(clientCommand)
35         s.log(o)
36 }