All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bird, Tim" <Tim.Bird@sony.com>
To: "Qiu, Tingting" <qiutt@cn.fujitsu.com>
Cc: "fuego@lists.linuxfoundation.org" <fuego@lists.linuxfoundation.org>
Subject: Re: [Fuego] [PATCH 07/12] skip cases because 'netstat -s' not support
Date: Thu, 6 Aug 2020 23:28:13 +0000	[thread overview]
Message-ID: <CY4PR13MB117525A5AB5D0747749D9D46FD480@CY4PR13MB1175.namprd13.prod.outlook.com> (raw)
In-Reply-To: <68ec6fc4ff5645edb136513bf841637c@G08CNEXMBPEKD04.g08.fujitsu.local>



> -----Original Message-----
> From: Qiu, Tingting <qiutt@cn.fujitsu.com>
> 
> -----Original Message-----
> From: Bird, Tim [mailto:Tim.Bird@sony.com]
> Sent: Thursday, July 9, 2020 6:20 AM
> To: Qiu, Tingting/仇 婷婷 <qiutt@cn.fujitsu.com>; fuego@lists.linuxfoundation.org
> Subject: RE: [Fuego] [PATCH 07/12] skip cases because 'netstat -s' not support
> 
> > -----Original Message-----
> > From:  qiutt
> >
> > for aarch64(m3ulcb) skip cases in net.tcp_cmds
> >
> > Signed-off-by: qiutt <qiutt@cn.fujitsu.com>
> > ---
> >  tests/Functional.LTP/fuego_test.sh | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/tests/Functional.LTP/fuego_test.sh
> > b/tests/Functional.LTP/fuego_test.sh
> > index ab4165d..2254474 100755
> > --- a/tests/Functional.LTP/fuego_test.sh
> > +++ b/tests/Functional.LTP/fuego_test.sh
> > @@ -352,6 +352,10 @@ function test_pre_check {
> >      if [ "$ARCHITECTURE" != "i386" ]; then
> >          skip_tests "modify_ldt01 modify_ldt02 modify_ldt03" # Only work on i386
> >      fi
> > +
> > +    if [ "$ARCHITECTURE" == "aarch64" ]; then
> > +        skip_tests "netstat" # for net.tcp_cmds, 'netstat -s' not support
> > +    fi
> 
> This isn't right.  It may be true that netstat -s is not supported on m3ulcb, but it is supported just fine on other aarch64 platforms.
> 
> What is the issue with supporting 'netstat -s' on m3ulcb?
> ->
> The patch was made for m3ulcb, and m3ulcb used the AGL system.
> The "netstat" command used was provided by "busybox"(*1).
> The error of "netstat -s" refer to (*2).
> Check the code(aarch64-agl-linux/busybox/1.29.3-r0/busybox-1.29.3/networking/netstat.c), the contents refer to (*3).
> According to the code, you can know that the netstat provided by busybox only supports the parameter "-laentuwxrWp",
> and does not support the parameter "-s".
> 
> (*1)m3ulcb:~# which netstat
> /bin/netstat
> m3ulcb:~# ls -al /bin/netstat
> lrwxrwxrwx 1 root root 19 Feb 25  2020 /bin/netstat -> /bin/busybox.nosuid
> 
> (*2)m3ulcb:~# netstat -s
> netstat: invalid option -- 's'
> BusyBox v1.29.3 (2020-01-16 16:59:41 UTC) multi-call binary.
> Usage: netstat [-ral] [-tuwx] [-en]
> 
> (*3)
> //usage:#define netstat_trivial_usage
> //usage:       "[-"IF_ROUTE("r")"al] [-tuwx] [-en"IF_FEATURE_NETSTAT_WIDE("W")IF_FEATURE_NETSTAT_PRG("p")"]"
> //usage:#define netstat_full_usage "\n\n"
> //usage:       "Display networking information\n"
> //usage:        IF_ROUTE(
> //usage:     "\n        -r      Routing table"
> //usage:        )
> //usage:     "\n        -a      All sockets"
> //usage:     "\n        -l      Listening sockets"
> //usage:     "\n                Else: connected sockets"
> //usage:     "\n        -t      TCP sockets"
> //usage:     "\n        -u      UDP sockets"
> //usage:     "\n        -w      Raw sockets"
> //usage:     "\n        -x      Unix sockets"
> //usage:     "\n                Else: all socket types"
> //usage:     "\n        -e      Other/more information"
> //usage:     "\n        -n      Don't resolve names"
> //usage:        IF_FEATURE_NETSTAT_WIDE(
> //usage:     "\n        -W      Wide display"
> //usage:        )
> //usage:        IF_FEATURE_NETSTAT_PRG(
> //usage:     "\n        -p      Show PID/program name for sockets"
> //usage:        )
> 
> #define NETSTAT_OPTS "laentuwx" \
>         IF_ROUTE(               "r") \
>         IF_FEATURE_NETSTAT_WIDE("W") \
>         IF_FEATURE_NETSTAT_PRG( "p")
> ...
> 

I see.  I was able to reproduce a problem running the netstat01 sub-test of 'net.tcp_cmds'
test in LTP, on a machine that only had busybox netstat.

This should not be dependent on the machine architecture, which is unrelated, but rather
on whether the machine supports 'netstat -s'.  But that's actually one of the functions
of the netstat01 test in LTP (to test 'netstat -s' support).  In this case, the test is reporting
correctly that the m3ulcb board doesn't support that option.  So the test is correct.
Other Fuego users of the test may wish to see that problem reported.  It is not appropriate
to mask out this correct bug report by adding to a skiplist that applies to everyone.

I'm not sure exactly what you are trying to accomplish (maybe hiding this bug
so that it doesn't show up for this board, because your organization has decided
to ignore it?).  However, if you want to skip the test, then
I would recommend adding this to a board-specific LTP skiplist.

In your m3ulcb.board file, you should add:
FUNCTIONAL_LTP_BOARD_SKIPLIST="netstat01"

Let me know if this does not solve your problem.
 -- Tim


  reply	other threads:[~2020-08-06 23:28 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-08 10:26 [Fuego] [PATCH 01/12] add network testcase to spec qiutt
2020-07-08 10:26 ` [Fuego] [PATCH 02/12] skip cases missing ftp cmd qiutt
2020-07-08 21:51   ` Bird, Tim
2020-07-08 10:26 ` [Fuego] [PATCH 03/12] skip cases missing rsh cmd qiutt
2020-07-08 21:57   ` Bird, Tim
2020-07-08 10:26 ` [Fuego] [PATCH 04/12] skip cases missing host cmd qiutt
2020-07-08 10:26 ` [Fuego] [PATCH 05/12] skip cases missing rcp cmd qiutt
2020-07-08 21:59   ` Bird, Tim
2020-07-08 10:26 ` [Fuego] [PATCH 06/12] skip some cases because ONFIG_XFRM_USER is not set qiutt
2020-07-08 22:13   ` Bird, Tim
2020-07-30  5:49     ` Qiu, Tingting
2020-07-30  7:06       ` Qiu, Tingting
2020-08-07  0:02         ` Bird, Tim
2020-09-14  9:24           ` Qiu, Tingting
2020-09-17 20:02             ` Bird, Tim
2020-09-21  2:30               ` Qiu, Tingting
2020-08-05 20:13       ` Bird, Tim
2020-08-06 22:44       ` Bird, Tim
2020-07-08 10:26 ` [Fuego] [PATCH 07/12] skip cases because 'netstat -s' not support qiutt
2020-07-08 22:19   ` Bird, Tim
2020-07-30  6:56     ` Qiu, Tingting
2020-08-06 23:28       ` Bird, Tim [this message]
2020-08-07  1:41         ` Qiu, Tingting
2020-10-01  0:07           ` daniel.sangorrin
2020-10-01 22:35             ` Bird, Tim
2020-10-09  1:47               ` Qiu, Tingting
2020-07-08 10:26 ` [Fuego] [PATCH 08/12] skip cases because MULTIPORT and LIMIT not set qiutt
2020-07-08 10:26 ` [Fuego] [PATCH 09/12] skip cases because label rule does not support qiutt
2020-07-08 22:22   ` Bird, Tim
2020-07-30  7:08     ` Qiu, Tingting
2020-07-08 10:26 ` [Fuego] [PATCH 10/12] add smackfsdir for smack cases qiutt
2020-07-08 10:26 ` [Fuego] [PATCH 11/12] skip cases when LHOST_IFACES not defined qiutt
2020-07-08 10:26 ` [Fuego] [PATCH 12/12] add hostname and ip to /etc/hosts qiutt
2020-07-08 21:00 ` [Fuego] [PATCH 01/12] add network testcase to spec Bird, Tim
2020-07-14  5:16   ` Qiu, Tingting

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=CY4PR13MB117525A5AB5D0747749D9D46FD480@CY4PR13MB1175.namprd13.prod.outlook.com \
    --to=tim.bird@sony.com \
    --cc=fuego@lists.linuxfoundation.org \
    --cc=qiutt@cn.fujitsu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.