• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-or-later
3# Copyright (c) 2017-2020 Oracle and/or its affiliates. All Rights Reserved.
4
5TST_CNT=3
6TST_TESTFUNC="test"
7TST_NEEDS_TMPDIR=1
8TST_NEEDS_ROOT=1
9
10
11test1()
12{
13	tst_res TINFO "run UDP"
14	tst_netload -H $(tst_ipaddr rhost) -T udp
15	res0="$(cat tst_netload.res)"
16}
17test2()
18{
19	tst_res TINFO "compare UDP/DCCP performance"
20	tst_netload -H $(tst_ipaddr rhost) -T dccp
21	res1="$(cat tst_netload.res)"
22	tst_netload_compare $res0 $res1 -100 100
23}
24test3()
25{
26	tst_res TINFO "compare UDP/UDP-Lite performance"
27	tst_netload -H $(tst_ipaddr rhost) -T udp_lite
28	res1="$(cat tst_netload.res)"
29	tst_netload_compare $res0 $res1 -100 100
30}
31
32. tst_net.sh
33tst_run
34