Hi Subrata,
attached a new patch just to add the same fixes I provided you for icpm and
tcp network stress as well.
On SH4 STB with STLinux distribution we are able to run all the network
stress tests without any failures. Due to configuration issues we do not run
the multi-diffnic tests (because they require plural Network cards for
host).
Regards,
Giuseppe
2008/6/25 Subrata Modak <[EMAIL PROTECTED]>:
> On Mon, 2008-06-23 at 09:23 +0200, Giuseppe Cavallaro wrote:
> > Hi All,
> > running the UDP network stress tests on my SH4 target I have had to
> > modify the following scripts: killall_udp_traffic and
> > udp4-multi-diffip01.
> > More details within the patches attached.
>
> Thanks. This one applied too.
>
> Regards--
> Subrata
>
> >
> > Regards,
> > Giuseppe
> > -------------------------------------------------------------------------
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services for
> > just about anything Open Source.
> > http://sourceforge.net/services/buy/index.php
> > _______________________________________________ Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>
>
It modifies the command sent to the remote host to kill tcp/icmp
clients.
It also deletes the address before setting it to avoid the following
error:
"RTNETLINK answers: File exists"
This implies that the test fails.
Signed-off-by: Giuseppe Cavallaro <[EMAIL PROTECTED]>
--- ltp/testcases/network/stress/ns-tools/killall_icmp_traffic.orig 2008-06-24 08:17:34.000000000 +0200
+++ ltp/testcases/network/stress/ns-tools/killall_icmp_traffic 2008-06-24 08:17:44.000000000 +0200
@@ -61,7 +61,13 @@ $LTP_RSH $RHOST "killall -SIGINT ping pi
# Verify the all ping utitlities are dead.
start_epoc=`date +%s`
while true ; do
- ret=`$LTP_RSH $RHOST 'ps auxw | fgrep -v grep | grep -l [[:blank:]]ping6*[[:blank:]] >/dev/null 2>&1 ; echo $?'`
+ #ret=`$LTP_RSH $RHOST 'ps auxw | fgrep -v grep | grep -l [[:blank:]]ping6*[[:blank:]] >/dev/null 2>&1 ; echo $?'`
+ ret=`$LTP_RSH $RHOST 'ps auxw | fgrep -v grep | grep -l /ping6*[[:blank:]] >/dev/null 2>&1 ; echo $?'`
+
+ if [ -z $ret ]; then
+ continue
+ fi
+
if [ $ret -ne 0 ]; then
break
fi
--- ltp/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip01.orig 2008-06-24 08:18:27.000000000 +0200
+++ ltp/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip01 2008-06-24 08:18:38.000000000 +0200
@@ -191,6 +191,13 @@ while [ $ipaddr_pair_num -lt $IP_TOTAL_F
# Set IPv4 addresses to the interfaces
ip addr add ${lhost_addr}/${network_mask} broadcast $network_broadcast dev $lhost_ifname
+
+ ### delete before setting
+ if [ $? -eq 2 ]; then
+ ip addr del ${lhost_addr}/${network_mask} broadcast $network_broadcast dev $lhost_ifname 2>&1
+ ip addr add ${lhost_addr}/${network_mask} broadcast $network_broadcast dev $lhost_ifname
+ fi
+
if [ $? -ne 0 ]; then
if [ $ipaddr_pair_num -eq 0 ]; then
tst_resm TBROK "Failed to add any IP address at the local"
@@ -202,6 +209,12 @@ while [ $ipaddr_pair_num -lt $IP_TOTAL_F
fi
ret=`$LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr add ${rhost_addr}/${network_mask} broadcast $network_broadcast dev $rhost_ifname' ; echo $?'`
+
+ if [ $ret -eq 2 ]; then
+ $LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr del ${rhost_addr}/${network_mask} broadcast $network_broadcast dev $rhost_ifname
+ ret=`$LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr add ${rhost_addr}/${network_mask} broadcast $network_broadcast dev $rhost_ifname' ; echo $?'`
+ fi
+
if [ $ret -ne 0 ]; then
if [ $ipaddr_pair_num -eq 0 ]; then
tst_resm TBROK "Failed to add any IP address at the remote"
@@ -224,6 +237,12 @@ while [ $ipaddr_pair_num -lt $IP_TOTAL_F
# Set IPv6 addresses to the interfaces
ip addr add ${lhost_addr}/${network_mask} dev $lhost_ifname
+
+ if [ $? -eq 2 ]; then
+ ip addr del ${lhost_addr}/${network_mask} dev $lhost_ifname 2>&1
+ ip addr add ${lhost_addr}/${network_mask} dev $lhost_ifname
+ fi
+
if [ $? -ne 0 ]; then
if [ $ipaddr_pair_num -eq 0 ]; then
tst_resm TBROK "Failed to add any IP address at the local"
@@ -235,6 +254,12 @@ while [ $ipaddr_pair_num -lt $IP_TOTAL_F
fi
ret=`$LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr add ${rhost_addr}/${network_mask} dev $rhost_ifname' ; echo $?'`
+
+ if [ $ret -eq 2 ]; then
+ $LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr del ${rhost_addr}/${network_mask} dev $rhost_ifname
+ ret=`$LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr add ${rhost_addr}/${network_mask} dev $rhost_ifname' ; echo $?'`
+ fi
+
if [ $ret -ne 0 ]; then
if [ $ipaddr_pair_num -eq 0 ]; then
tst_resm TBROK "Failed to add any IP address at the remote"
--- ltp/testcases/network/stress/ns-tools/killall_tcp_traffic.orig 2008-06-24 09:37:39.000000000 +0200
+++ ltp/testcases/network/stress/ns-tools/killall_tcp_traffic 2008-06-24 09:37:50.000000000 +0200
@@ -80,7 +80,13 @@ done
# Verify the client is dead.
start_epoc=`date +%s`
while true ; do
- ret=`$LTP_RSH $RHOST 'ps auxw | fgrep -v grep | grep -l '[[:blank:]]ns-tcpclient[[:blank:]]' >/dev/null 2>&1; echo $?'`
+ ##ret=`$LTP_RSH $RHOST 'ps auxw | fgrep -v grep | grep -l '[[:blank:]]ns-tcpclient[[:blank:]]' >/dev/null 2>&1; echo $?'`
+ ret=`$LTP_RSH $RHOST 'ps auxw | fgrep -v grep | grep -l '/ns-tcpclient[[:blank:]]' >/dev/null 2>&1; echo $?'`
+
+ if [ -z $ret ]; then
+ continue
+ fi
+
if [ $ret -ne 0 ]; then
break
fi
--- ltp/testcases/network/stress/tcp/multi-diffip/tcp4-multi-diffip01.orig 2008-06-24 09:38:37.000000000 +0200
+++ ltp/testcases/network/stress/tcp/multi-diffip/tcp4-multi-diffip01 2008-06-24 09:38:45.000000000 +0200
@@ -219,6 +219,10 @@ while [ $ipaddr_pair_num -lt $IP_TOTAL_F
# Set IPv4 addresses to the interfaces
ip addr add ${lhost_addr}/${network_mask} broadcast $network_broadcast dev $lhost_ifname
+ if [ $? -eq 2 ]; then
+ ip addr del ${lhost_addr}/${network_mask} broadcast $network_broadcast dev $lhost_ifname 2>&1
+ ip addr add ${lhost_addr}/${network_mask} broadcast $network_broadcast dev $lhost_ifname
+ fi
if [ $? -ne 0 ]; then
if [ $ipaddr_pair_num -eq 0 ]; then
tst_resm TBROK "Failed to add any IP address at the local"
@@ -230,6 +234,12 @@ while [ $ipaddr_pair_num -lt $IP_TOTAL_F
fi
ret=`$LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr add ${rhost_addr}/${network_mask} broadcast $network_broadcast dev $rhost_ifname' ; echo $?'`
+
+ if [ $ret -eq 2 ]; then
+ $LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr del ${rhost_addr}/${network_mask} broadcast $network_broadcast dev $rhost_ifname
+ ret=`$LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr add ${rhost_addr}/${network_mask} broadcast $network_broadcast dev $rhost_ifname' ; echo $?'`
+ fi
+
if [ $ret -ne 0 ]; then
if [ $ipaddr_pair_num -eq 0 ]; then
tst_resm TBROK "Failed to add any IP address at the remote"
@@ -252,6 +262,12 @@ while [ $ipaddr_pair_num -lt $IP_TOTAL_F
# Set IPv6 addresses to the interfaces
ip addr add ${lhost_addr}/${network_mask} dev $lhost_ifname
+
+ if [ $? -eq 2 ]; then
+ ip addr del ${lhost_addr}/${network_mask} dev $lhost_ifname 2>&1
+ ip addr add ${lhost_addr}/${network_mask} dev $lhost_ifname
+ fi
+
if [ $? -ne 0 ]; then
if [ $ipaddr_pair_num -eq 0 ]; then
tst_resm TBROK "Failed to add any IP address at the local"
@@ -263,6 +279,12 @@ while [ $ipaddr_pair_num -lt $IP_TOTAL_F
fi
ret=`$LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr add ${rhost_addr}/${network_mask} dev $rhost_ifname' ; echo $?'`
+
+ if [ $ret -eq 2 ]; then
+ $LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr del ${rhost_addr}/${network_mask} dev $rhost_ifname
+ ret=`$LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr add ${rhost_addr}/${network_mask} dev $rhost_ifname' ; echo $?'`
+ fi
+
if [ $ret -ne 0 ]; then
if [ $ipaddr_pair_num -eq 0 ]; then
tst_resm TBROK "Failed to add any IP address at the remote"
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list