From: Alexey Kodanev <alexey.kodanev@oracle.com>
To: ltp-list@lists.sourceforge.net
Cc: vasily.isaenko@oracle.com
Subject: Re: [LTP] [PATCH v2 1/3] network/test_net: add support for -6 option (IPv6 tests)
Date: Thu, 23 Oct 2014 14:20:12 +0400 [thread overview]
Message-ID: <5448D65C.90308@oracle.com> (raw)
In-Reply-To: <1413978094-10616-1-git-send-email-alexey.kodanev@oracle.com>
Hi!
On 10/22/2014 03:41 PM, Alexey Kodanev wrote:
> * copy read_opts() from net_cmdlib.sh library;
> * replace TST_EXEC_SUFFIX with more informative name TST_IPV6;
> * skip other options;
>
> Signed-off-by: Alexey Kodanev<alexey.kodanev@oracle.com>
> ---
> testcases/lib/test_net.sh | 15 +++++++++++++++
> 1 files changed, 15 insertions(+), 0 deletions(-)
>
> diff --git a/testcases/lib/test_net.sh b/testcases/lib/test_net.sh
> index 8cbcb70..24460f3 100644
> --- a/testcases/lib/test_net.sh
> +++ b/testcases/lib/test_net.sh
> @@ -137,3 +137,18 @@ tst_iface()
> link_num=$(( $link_num + 1 ))
> echo "$(tst_get_ifaces $type)" | awk '{ print $'"$link_num"' }'
> }
> +
> +# Blank for an IPV4 test; 6 for an IPV6 test.
> +TST_IPV6=
> +
> +tst_read_opts()
> +{
> + OPTIND=0
> + while getopts ":6" opt; do
> + case "$opt" in
> + 6)
> + TST_IPV6=6;;
> + esac
> + done
> + OPTIND=0
> +}
Maybe we can run the function inside test_net.sh as well. Any suggestions?
Thanks,
Alexey
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2014-10-23 10:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-22 11:41 [LTP] [PATCH v2 1/3] network/test_net: add support for -6 option (IPv6 tests) Alexey Kodanev
2014-10-22 11:41 ` [LTP] [PATCH v3 2/3] network/test_net: add tst_ipaddr Alexey Kodanev
2014-10-22 11:41 ` [LTP] [PATCH v2 3/3] network/test_net: add tst_init_iface() and tst_set_ipaddr() Alexey Kodanev
2014-10-22 11:41 ` [LTP] [PATCH] network/tcp_fastopen: add support for IPv6 Alexey Kodanev
2014-10-23 10:20 ` Alexey Kodanev [this message]
2014-12-02 16:56 ` [LTP] [PATCH v2 1/3] network/test_net: add support for -6 option (IPv6 tests) Cyril Hrubis
2014-12-02 16:54 ` 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=5448D65C.90308@oracle.com \
--to=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