From: Cyril Hrubis <chrubis@suse.cz>
To: Alexey Kodanev <alexey.kodanev@oracle.com>
Cc: vasily.isaenko@oracle.com, ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH 17/23] network/virt: add test-case 01 to virt_lib.sh
Date: Tue, 11 Aug 2015 20:24:08 +0200 [thread overview]
Message-ID: <20150811182407.GD24227@rei.suse.de> (raw)
In-Reply-To: <1436424468-11756-18-git-send-email-alexey.kodanev@oracle.com>
Hi!
> +# Check if we can create then delete virtual interface n times.
> +# virt_test_01 [OPTIONS]
> +# OPTIONS - different options separated by comma.
> +virt_test_01()
> +{
> + start_id=1
> + virt_count=500
> +
> + local opts=${1:-""}
> + local n=0
> +
> + while ((1)); do
This does not work with dash, use "while true; do" instead.
> + n=$((n + 1))
> + p="$(echo $opts | cut -d',' -f$n)"
> + if [ -z "$p" -a $n -gt 1 ]; then
> + break
> + fi
> +
> + tst_resm TINFO "add $virt_type with '$p'"
> +
> + virt_add ltp_v0 id 0 $p > /dev/null 2>&1
> + if [ $? -ne 0 ]; then
> + tst_resm TCONF "iproute/kernel doesn't support '$p'"
> + p=""
Again shouldn't we just continue here instead?
> + else
> + ROD_SILENT "ip li delete ltp_v0"
> + fi
> +
> + virt_multiple_add_test "$p"
> +
> + start_id=$(($start_id + $virt_count))
> + done
> +}
> +
> tst_require_root
>
> case "$virt_type" in
> diff --git a/testcases/network/virt/vlan01.sh b/testcases/network/virt/vlan01.sh
> index ac74463..fb96562 100755
> --- a/testcases/network/virt/vlan01.sh
> +++ b/testcases/network/virt/vlan01.sh
> @@ -16,7 +16,7 @@
> #
> # Author: Alexey Kodanev <alexey.kodanev@oracle.com>
> #
> -# Test-case 1: Local test, check if we can create 4095 VLAN interfaces.
> +# Local test, check if we can create 4000 VLAN interfaces.
> #
>
> TCID=vlan01
> @@ -34,28 +34,9 @@ lb1="loose_binding on"
> rh0="reorder_hdr off"
> rh1="reorder_hdr on"
>
> -opts="$p0 $lb0 $rh0,$p0 $lb0 $rh1,$p0 $lb1 $rh0,$p0 $lb1 $rh1,\
> +options="$p0 $lb0 $rh0,$p0 $lb0 $rh1,$p0 $lb1 $rh0,$p0 $lb1 $rh1,\
> $p1 $lb0 $rh0,$p1 $lb0 $rh1,$p1 $lb1 $rh0,$p1 $lb1 $rh1,"
>
> -start_id=1
> -virt_count=500
> -
> -for n in $(seq 1 8); do
> - params="$(echo $opts | cut -d',' -f$n)"
> -
> - tst_resm TINFO "add $virt_type with '$params'"
> -
> - virt_add ltp_v0 id 0 $params > /dev/null 2>&1
> - if [ $? -ne 0 ]; then
> - tst_resm TCONF "iproute or kernel doesn't support '$params'"
> - params=""
> - else
> - ROD_SILENT "ip li delete ltp_v0"
> - fi
> -
> - virt_multiple_add_test "$params"
> -
> - start_id=$(($start_id + $virt_count))
> -done
> +virt_test_01 "$options"
>
> tst_exit
> diff --git a/testcases/network/virt/vxlan01.sh b/testcases/network/virt/vxlan01.sh
> index 63a52d0..4dfe3d7 100755
> --- a/testcases/network/virt/vxlan01.sh
> +++ b/testcases/network/virt/vxlan01.sh
> @@ -16,11 +16,11 @@
> #
> # Author: Alexey Kodanev <alexey.kodanev@oracle.com>
> #
> -# Test-case 1: Local test, check if we can create 5000 VXLAN interfaces.
> +# Local test, check if we can create 2500 VXLAN interfaces.
> #
>
> TCID=vxlan01
> -TST_TOTAL=1
> +TST_TOTAL=5
>
> virt_type="vxlan"
> start_id=16700000
> @@ -28,27 +28,9 @@ start_id=16700000
> . test_net.sh
> . virt_lib.sh
>
> -opts="l2miss l3miss,norsc nolearning noproxy,ttl 0x01 tos 0x01,ttl 0xff tos 0xff,gbp"
> +options="l2miss l3miss,norsc nolearning noproxy,\
> +ttl 0x01 tos 0x01,ttl 0xff tos 0xff,gbp"
>
> -start_id=1
> -virt_count=1000
> -
> -for n in $(seq 1 5); do
> - params="$(echo $opts | cut -d',' -f$n)"
> -
> - tst_resm TINFO "add $virt_type with '$params'"
> -
> - virt_add ltp_v0 id 0 $params > /dev/null 2>&1
> - if [ $? -ne 0 ]; then
> - tst_resm TCONF "iproute or kernel doesn't support '$params'"
> - params=""
> - else
> - ROD_SILENT "ip li delete ltp_v0"
> - fi
> -
> - virt_multiple_add_test "$params"
> -
> - start_id=$(($start_id + $virt_count))
> -done
> +virt_test_01 "$options"
>
> tst_exit
> --
> 1.7.1
>
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2015-08-11 18:24 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-09 6:47 [LTP] [PATCH 00/23] Add vlan, ipvlan, gre, macvlan interfaces Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 01/23] network/vxlan: make names more abstract, use 'virt' Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 02/23] network/vxlan: rename vxlan dir and library to 'virt' Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 03/23] network/virt_lib.sh: add virt_add() and virt_add_rhost() Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 04/23] network/virt_lib.sh: use ROD_SILENT in cleanup Alexey Kodanev
2015-08-11 18:00 ` Cyril Hrubis
2015-07-09 6:47 ` [LTP] [PATCH 05/23] network/virt_lib.sh: fix regexpr " Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 06/23] network/virt/vlan01: add new test-case Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 07/23] network/virt/vlan02: " Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 08/23] network/virt: rename virt_max to virt_count Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 09/23] network/virt/vlan03: add new test-case Alexey Kodanev
2015-08-11 18:12 ` Cyril Hrubis
[not found] ` <55CB2A43.8060808@oracle.com>
2015-08-12 11:21 ` Cyril Hrubis
2015-07-09 6:47 ` [LTP] [PATCH 10/23] network/virt/vlan01.sh: add protocol, loose_binding and hdr options Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 11/23] network/virt/vlan03.sh: " Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 12/23] network/virt: add new macvlan01 test Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 13/23] network/virt: add new ipvlan01 test Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 14/23] network/virt/vxlan01.sh: add parameters Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 15/23] network/virt/vxlan03.sh: add VXLAN-GBP (group policy context) test Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 16/23] network/virt: add macvtap01 test Alexey Kodanev
2015-08-11 18:21 ` Cyril Hrubis
[not found] ` <55CB2DA3.1050706@oracle.com>
2015-08-12 11:41 ` Cyril Hrubis
2015-07-09 6:47 ` [LTP] [PATCH 17/23] network/virt: add test-case 01 to virt_lib.sh Alexey Kodanev
2015-08-11 18:24 ` Cyril Hrubis [this message]
2015-07-09 6:47 ` [LTP] [PATCH 18/23] network/virt: move checking for command support " Alexey Kodanev
2015-08-11 18:28 ` Cyril Hrubis
[not found] ` <55CB31E5.1050808@oracle.com>
2015-08-12 11:49 ` Cyril Hrubis
2015-07-09 6:47 ` [LTP] [PATCH 19/23] network/virt: add test-case 02 " Alexey Kodanev
2015-08-11 18:32 ` Cyril Hrubis
2015-07-09 6:47 ` [LTP] [PATCH 20/23] network/virt/vxlan03.sh: fix vxlan_compare_netperf() Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 21/23] network/virt: add gre tunnel test Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 22/23] network/virt: adjust virt_threshold parameter Alexey Kodanev
2015-07-09 6:47 ` [LTP] [PATCH 23/23] network/virt: don't skip when feature options not supported Alexey Kodanev
2015-08-11 18:44 ` [LTP] [PATCH 00/23] Add vlan, ipvlan, gre, macvlan interfaces Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150811182407.GD24227@rei.suse.de \
--to=chrubis@suse.cz \
--cc=alexey.kodanev@oracle.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=vasily.isaenko@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox