clientVpp.Vppctl("nsim output-feature enable-disable host-" + s.Interfaces.Server.Name())
// Do echo test from client-vpp container
- output := clientVpp.Vppctl("test echo client uri tcp://%s/20022 verbose echo-bytes mbytes 50",
+ output := clientVpp.Vppctl("test echo client uri tcp://%s/20022 verbose echo-bytes bytes 50m",
s.Interfaces.Server.Ip4AddressString())
s.Log(output)
s.AssertNotEqual(len(output), 0)
serverVethAddress := s.Interfaces.Server.Ip4AddressString()
clientVpp := s.Containers.ClientVpp.VppInstance
- o := clientVpp.Vppctl("test echo client uri %s://%s/%s fifo-size 64k verbose mbytes 2", proto, serverVethAddress, port)
+ o := clientVpp.Vppctl("test echo client uri %s://%s/%s fifo-size 64k verbose bytes 2m", proto, serverVethAddress, port)
s.Log(o)
s.AssertContains(o, "Test finished at")
}
uword *event_data = 0, event_type;
clib_error_t *error = 0;
int rv, had_config = 1;
- u64 tmp, total_bytes;
+ u64 total_bytes;
f64 delta;
if (ecm->test_client_attached)
;
else if (unformat (line_input, "quic-streams %d", &ecm->quic_streams))
;
- else if (unformat (line_input, "mbytes %lld", &tmp))
- ecm->bytes_to_send = tmp << 20;
- else if (unformat (line_input, "gbytes %lld", &tmp))
- ecm->bytes_to_send = tmp << 30;
else if (unformat (line_input, "bytes %U", unformat_memory_size,
&ecm->bytes_to_send))
;
VLIB_CLI_COMMAND (ec_command, static) = {
.path = "test echo clients",
.short_help =
- "test echo clients [nclients %d][[m|g]bytes <bytes>]"
+ "test echo clients [nclients %d][bytes <bytes>[m|g]]"
"[test-timeout <time>][syn-timeout <time>][echo-bytes][fifo-size <size>]"
"[private-segment-count <count>][private-segment-size <bytes>[m|g]]"
"[preallocate-fifos][preallocate-sessions][client-batch <batch-size>]"
def test_quic_int_transfer(self):
"""QUIC internal transfer"""
self.server()
- self.client("mbytes", "2")
+ self.client("bytes", "2m")
@tag_fixme_vpp_workers
def test_quic_serial_int_transfer(self):
"""QUIC serial internal transfer"""
self.server()
- self.client("mbytes", "2")
- self.client("mbytes", "2")
- self.client("mbytes", "2")
- self.client("mbytes", "2")
- self.client("mbytes", "2")
+ self.client("bytes", "2m")
+ self.client("bytes", "2m")
+ self.client("bytes", "2m")
+ self.client("bytes", "2m")
+ self.client("bytes", "2m")
@tag_fixme_vpp_workers
def test_quic_int_multistream_transfer(self):
"""QUIC internal multi-stream transfer"""
self.server()
- self.client("nclients", "10", "mbytes", "1")
+ self.client("nclients", "10", "bytes", "1m")
class QUICEchoExtTestCase(QUICTestCase):
self.assertNotIn("failed", error)
error = self.vapi.cli(
- "test echo client mbytes 10 appns 1 "
+ "test echo client bytes 10m appns 1 "
+ "fifo-size 4k test-bytes "
+ "syn-timeout 2 uri "
+ uri
self.assertNotIn("failed", error)
error = self.vapi.cli(
- "test echo client mbytes 10 appns 1 "
+ "test echo client bytes 10m appns 1 "
"fifo-size 4k test-bytes "
"tls-engine 1 "
"syn-timeout 2 uri " + uri
self.assertNotIn("failed", error)
error = self.vapi.cli(
- "test echo client mbytes 10 appns 1 "
+ "test echo client bytes 10m appns 1 "
+ "fifo-size 4k "
+ "syn-timeout 2 uri "
+ uri