public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 1/3] network/test_net: add support for -6 option (IPv6 tests)
@ 2014-10-22 11:41 Alexey Kodanev
  2014-10-22 11:41 ` [LTP] [PATCH v3 2/3] network/test_net: add tst_ipaddr Alexey Kodanev
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Alexey Kodanev @ 2014-10-22 11:41 UTC (permalink / raw)
  To: ltp-list; +Cc: vasily.isaenko

* 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
+}
-- 
1.7.1


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-12-02 16:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [LTP] [PATCH v2 1/3] network/test_net: add support for -6 option (IPv6 tests) Alexey Kodanev
2014-12-02 16:56   ` Cyril Hrubis
2014-12-02 16:54 ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox