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

copy read_opts() from net_cmdlib.sh library

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
---
 testcases/lib/test_net.sh |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/testcases/lib/test_net.sh b/testcases/lib/test_net.sh
index 8cbcb70..2436264 100644
--- a/testcases/lib/test_net.sh
+++ b/testcases/lib/test_net.sh
@@ -137,3 +137,21 @@ 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_EXEC_SUFFIX=
+
+tst_read_opts()
+{
+	OPTIND=0
+	while getopts "6" opt; do
+		case "$opt" in
+		6)
+			TST_EXEC_SUFFIX=6;;
+		*)
+			tst_brkm TBROK "tst_read_opts: unknown option: $opt"
+		;;
+		esac
+	done
+	OPTIND=0
+}
-- 
1.7.1


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

end of thread, other threads:[~2014-10-15 10:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-08 11:57 [LTP] [PATCH 1/3] network/test_net: add support for -6 option (IPv6 tests) Alexey Kodanev
2014-10-08 11:57 ` [LTP] [PATCH v2 2/3] network/test_net: add tst_ipaddr Alexey Kodanev
2014-10-08 11:57 ` [LTP] [PATCH 3/3] network/test_net: add tst_init_iface() and tst_set_ipaddr() Alexey Kodanev
2014-10-09 13:24 ` [LTP] [PATCH 1/3] network/test_net: add support for -6 option (IPv6 tests) Hangbin Liu
2014-10-15 10:10   ` Alexey Kodanev

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