Some switches need a while to learn the new assigned address, which make the connectivity check failed. Make PING_MAX adjustable to let user can pre-define it based on their own environment.
Signed-off-by: Hangbin Liu <liuhang...@gmail.com> --- testcases/network/stress/README | 6 ++++++ testcases/network/stress/ns-tools/check_icmpv4_connectivity | 2 +- testcases/network/stress/ns-tools/check_icmpv6_connectivity | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/testcases/network/stress/README b/testcases/network/stress/README index fbfbc1c..44ab129 100644 --- a/testcases/network/stress/README +++ b/testcases/network/stress/README @@ -113,6 +113,7 @@ environment variables: LTP_RSH NS_DURATION (for the continual test) NS_TIMES (for the repetition test) + PING_MAX (for checking connection) CONNECTION_TOTAL (for creating a large number of connection test) IP_TOTAL (for adding large number of IP address test) IP_TOTAL_FOR_TCPIP (for multi IP address/alias test in icmp/udp/tcp) @@ -183,6 +184,11 @@ Optional environment variables This value affects IP adress add/del testcase, IP address change testcase route add/del testcase and dns query tests. + o PING_MAX (for checking connection) + The number of ping times for checking connection. + This value used in ns-tools check_icmpv4/6_connectivity and affects all + stress test cases. + o CONNECTION_TOTAL (for creating a large number of connection test) The total number of connection when the testcase requires plural connection. This value affects udp/tcp multi-connection to the same/different port diff --git a/testcases/network/stress/ns-tools/check_icmpv4_connectivity b/testcases/network/stress/ns-tools/check_icmpv4_connectivity index 7630aae..2daaea4 100644 --- a/testcases/network/stress/ns-tools/check_icmpv4_connectivity +++ b/testcases/network/stress/ns-tools/check_icmpv4_connectivity @@ -47,7 +47,7 @@ $trace_logic # The max number of ICMP echo request -PING_MAX=10 +PING_MAX=${PING_MAX:-"10"} # Check the arguments if [ $# -ne 2 ]; then diff --git a/testcases/network/stress/ns-tools/check_icmpv6_connectivity b/testcases/network/stress/ns-tools/check_icmpv6_connectivity index 10e432d..f9b0626 100644 --- a/testcases/network/stress/ns-tools/check_icmpv6_connectivity +++ b/testcases/network/stress/ns-tools/check_icmpv6_connectivity @@ -48,7 +48,7 @@ $trace_logic # The max number of ICMP echo request -PING_MAX=10 +PING_MAX=${PING_MAX:-"10"} # Check the arguments if [ $# -ne 2 ]; then -- 1.9.3 ------------------------------------------------------------------------------ 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