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. tst_net.sh 11 12test1() 13{ 14 tst_res TINFO "run UDP" 15 tst_netload -H $(tst_ipaddr rhost) -T udp 16 res0="$(cat tst_netload.res)" 17} 18test2() 19{ 20 tst_res TINFO "compare UDP/DCCP performance" 21 tst_netload -H $(tst_ipaddr rhost) -T dccp 22 res1="$(cat tst_netload.res)" 23 tst_netload_compare $res0 $res1 -100 100 24} 25test3() 26{ 27 tst_res TINFO "compare UDP/UDP-Lite performance" 28 tst_netload -H $(tst_ipaddr rhost) -T udp_lite 29 res1="$(cat tst_netload.res)" 30 tst_netload_compare $res0 $res1 -100 100 31} 32 33tst_run 34