[LTP] [PATCH 8/9] network: add new test-cases with UDP LITE protocol

Petr Vorel pvorel@suse.cz
Tue Jan 30 11:03:23 CET 2018


Hi Alexey,

> Updated tests: busy_poll03, dccp01 and udp_ipsec.

> Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
> ---
<snip>
> +do_test udp
> +do_test udp_lite

<snip>
>  test_run()
>  {
> -	tst_resm TINFO "compare UDP/DCCP performance"
> +	tst_resm TINFO "compare UDP/DCCP/UDPLITE performance"
<snip>

> -	if [ "$per" -gt "100" -o "$per" -lt "-100" ]; then
> -		tst_resm TFAIL "dccp performance $per %"
> -	else
> -		tst_resm TPASS "dccp performance $per % in range -100 ... 100 %"
> -	fi
> +	tst_netload -H $(tst_ipaddr rhost) -T udp_lite
> +	res1="$(cat tst_netload.res)"
> +	compare udplite
This is just a minor nit.
You use udplite and udp_lite. I guess there is just one UDP-Lite protocol.
I guess using just one variant for parameters would prevent typo errors in future.

<snip>
> -do_test
> +do_test udp
> +do_test udp_lite
<snip>
> -do_test
> +do_test udp
> +do_test udp_lite


Kind regards,
Petr


More information about the ltp mailing list