All of lore.kernel.org
 help / color / mirror / Atom feed
From: <Tim.Bird@sony.com>
To: tho1.nguyendat@toshiba.co.jp
Cc: fuego@lists.linuxfoundation.org
Subject: Re: [Fuego] Trả lời: [fuego-core 6/7] LTP: execute all tests when spec specifies "all"
Date: Tue, 27 Jul 2021 23:00:14 +0000	[thread overview]
Message-ID: <BYAPR13MB2503EED20A690042C42D1877FDE99@BYAPR13MB2503.namprd13.prod.outlook.com> (raw)
In-Reply-To: <OS3PR01MB5880480909B3E2F9612701F795E99@OS3PR01MB5880.jpnprd01.prod.outlook.com>

The patch looks good. Thanks for the changes.
But I can't figure out how to apply it.

The patch content is encoded in base64, and when I tried to manually 
decode it at the command line, I got an error "invalid input".

Can you please re-send this patch as an attachment instead of inline
in the message body?  Something is going wrong with the mail
handling of the text.
 -- Tim

> -----Original Message-----
> From: tho1.nguyendat@toshiba.co.jp <tho1.nguyendat@toshiba.co.jp>
> Dear Tim,
> 
> I would like to send my update.
> 
> From: Nguyen Dat Tho <tho1.nguyendat@toshiba.co.jp>
> 
> 
> Signed-off-by: Nguyen Dat Tho <tho1.nguyendat@toshiba.co.jp>
> Signed-off-by: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>
> Signed-off-by: venkata pyla <venkata.pyla@toshiba-tsip.com>
> 
> 
> ---
>  tests/Functional.LTP/fuego_test.sh | 42 +++++++++++++++++-------------
>  tests/Functional.LTP/spec.json     |  6 +++++
>  2 files changed, 30 insertions(+), 18 deletions(-)
> 
> diff --git a/tests/Functional.LTP/fuego_test.sh b/tests/Functional.LTP/fuego_test.sh
> index 85adabf..689abfe 100755
> --- a/tests/Functional.LTP/fuego_test.sh
> +++ b/tests/Functional.LTP/fuego_test.sh
> @@ -414,25 +414,31 @@ function test_run {
>          # on the type of the test (regular, posize, or realtime)
>          # Separate the test list by type, and pass the tests in different
>          # variables
> -        for a in $FUNCTIONAL_LTP_TESTS; do
> -            for b in $ALLTESTS; do
> -                if [ "$a" == "$b" ]; then
> -                    TESTS+="$a "
> -                fi
> -            done
> -
> -            for b in $ALLPTSTESTS; do
> -                if [ "$a" == "$b" ]; then
> -                    PTSTESTS+="$a "
> -                fi
> -            done
> -
> -            for b in $ALLRTTESTS; do
> -                if [ "$a" == "$b" ]; then
> -                    RTTESTS+="$a "
> -                fi
> +        if [ "$FUNCTIONAL_LTP_TESTS" == "all" ]; then
> +            TESTS=$ALLTESTS
> +            PTSTESTS=$ALLPTSTESTS
> +            RTTESTS=$ALLRTTESTS
> +        else
> +            for a in $FUNCTIONAL_LTP_TESTS; do
> +                for b in $ALLTESTS; do
> +                    if [ "$a" == "$b" ]; then
> +                        TESTS+="$a "
> +                    fi
> +                done
> +
> +                for b in $ALLPTSTESTS; do
> +                    if [ "$a" == "$b" ]; then
> +                        PTSTESTS+="$a "
> +                    fi
> +                done
> +
> +                for b in $ALLRTTESTS; do
> +                    if [ "$a" == "$b" ]; then
> +                        RTTESTS+="$a "
> +                    fi
> +                done
>              done
> -        done
> +        fi
> 
>          # Let some of the tests fail, the information will be in the result xlsx file
>          report "cd $LTP_DESTDIR; export TESTS=\"$TESTS\"; export PTSTESTS=\"$PTSTESTS\"; export RTTESTS=\"$RTTESTS\";
> ./ltp_target_run.sh"
> diff --git a/tests/Functional.LTP/spec.json b/tests/Functional.LTP/spec.json
> index d30ba4c..53ee115 100644
> --- a/tests/Functional.LTP/spec.json
> +++ b/tests/Functional.LTP/spec.json
> @@ -1,6 +1,12 @@
>  {
>      "testName": "Functional.LTP",
>      "specs": {
> +        "all": {
> +            "tests": "all",
> +            "noautoskip": "true",
> +            "extra_success_links": {"xlsx": "results.xlsx", "skiplist": "skiplist.txt"},
> +            "extra_fail_links": {"xlsx": "results.xlsx", "skiplist": "skiplist.txt"}
> +        },
>          "default": {
>              "tests": "syscalls SEM",
>              "extra_success_links": {"xlsx": "results.xlsx", "skiplist": "skiplist.txt"},
> --
> 2.20.1
> 
> ________________________________
> 
> Từ: Tim.Bird@sony.com <Tim.Bird@sony.com>
> Đã gửi: 23 Tháng Bảy 2021 2:03 SA
> Đến: pyla venkata(TSIP) <Venkata.Pyla@toshiba-tsip.com>
> Cc: nguyen dat tho(TSDV Eng 1) <tho1.nguyendat@toshiba.co.jp>; sangorrin daniel(サンゴリン ダニエル □SWC◯ACT)
> <daniel.sangorrin@toshiba.co.jp>; fuego@lists.linuxfoundation.org <fuego@lists.linuxfoundation.org>
> Chủ đề: RE: [fuego-core 6/7] LTP: execute all tests when spec specifies "all"
> 
> This one has problems.
> 
> > -----Original Message-----
> > From: venkata.pyla@toshiba-tsip.com <venkata.pyla@toshiba-tsip.com>
> > Subject: [fuego-core 6/7] LTP: execute all tests when spec specifies "all"
> >
> I'm not sure that the summary line of this change matches what it does.
> 
> From reading the code, it appears that "tests" in the spec needs to be
> missing or empty, in order to activate this.  If "tests" is "all",
> then it appears that none of the tests will match, and you'd just
> end up with empty lists.
> 
> Also, I had to intuit the reasoning here, since there is no description
> for this.  I don't mind the concept of being able to easily run all
> LTP tests, but it would be nice to use the string "all" to signal
> this instead of just leaving FUNCTIONAL_LTP_TESTS empty.
> 
> It should probably go into a comment in the code as well, and maybe
> in the test.yaml file, so that users and future developers will see
> it and understand the behaviour.
> 
> Also, you might want to add a spec to the spec.json file for "all", to
> show it's usage.
> 
> > From: Nguyen Dat Tho <tho1.nguyendat@toshiba.co.jp>
> >
> > Signed-off-by: Nguyen Dat Tho <tho1.nguyendat@toshiba.co.jp>
> > Signed-off-by: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>
> > Signed-off-by: venkata pyla <venkata.pyla@toshiba-tsip.com>
> > ---
> >  tests/Functional.LTP/fuego_test.sh | 42 +++++++++++++++++-------------
> >  1 file changed, 24 insertions(+), 18 deletions(-)
> >
> > diff --git a/tests/Functional.LTP/fuego_test.sh b/tests/Functional.LTP/fuego_test.sh
> > index e620b17..16d556f 100755
> > --- a/tests/Functional.LTP/fuego_test.sh
> > +++ b/tests/Functional.LTP/fuego_test.sh
> > @@ -188,7 +188,6 @@ function test_pre_check {
> >      assert_define AR
> >      assert_define RANLIB
> >      #assert_define LDFLAGS
> > -    assert_define FUNCTIONAL_LTP_TESTS
> >
> >      # FIXTHIS: use regex for selecting tests to skip once merged on LTP upstream
> >      echo "Tests skipped by default in Fuego for now"
> > @@ -453,25 +452,32 @@ function test_run {
> >          # on the type of the test (regular, posize, or realtime)
> >          # Separate the test list by type, and pass the tests in different
> >          # variables
> > -        for a in $FUNCTIONAL_LTP_TESTS; do
> > -            for b in $ALLTESTS; do
> > -                if [ "$a" == "$b" ]; then
> > -                    TESTS+="$a "
> > -                fi
> > -            done
> > -
> > -            for b in $ALLPTSTESTS; do
> > -                if [ "$a" == "$b" ]; then
> > -                    PTSTESTS+="$a "
> > -                fi
> > -            done
> >
> > -            for b in $ALLRTTESTS; do
> > -                if [ "$a" == "$b" ]; then
> > -                    RTTESTS+="$a "
> > -                fi
> > +        if [ -n "$FUNCTIONAL_LTP_TESTS" ]; then
> > +            for a in $FUNCTIONAL_LTP_TESTS; do
> > +                for b in $ALLTESTS; do
> > +                    if [ "$a" == "$b" ]; then
> > +                        TESTS+="$a "
> > +                    fi
> > +                done
> > +
> > +                for b in $ALLPTSTESTS; do
> > +                    if [ "$a" == "$b" ]; then
> > +                        PTSTESTS+="$a "
> > +                    fi
> > +                done
> > +
> > +                for b in $ALLRTTESTS; do
> > +                    if [ "$a" == "$b" ]; then
> > +                        RTTESTS+="$a "
> > +                    fi
> > +                done
> >              done
> > -        done
> > +        else
> > +            TESTS=$ALLTESTS
> > +            PTSTESTS=$ALLPTSTESTS
> > +            RTTESTS=$ALLRTTESTS
> > +        fi
> >
> >          # Let some of the tests fail, the information will be in the result xlsx file
> >          report "cd $LTP_DESTDIR; export TESTS=\"$TESTS\"; export PTSTESTS=\"$PTSTESTS\"; export RTTESTS=\"$RTTESTS\";
> > ./ltp_target_run.sh"
> > --
> > 2.20.1
> >
> 
> I have NOT applied this one.  Please change this to check for the string "all"
> in FUNCTIONAL_LTP_TESTS (and please submit a sample spec to go with this).
> 
> Thanks,
>  -- Tim
> 


  reply	other threads:[~2021-07-27 23:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-18 11:10 [Fuego] [fuego-core 0/7] upstreaming work venkata.pyla
2021-07-18 11:10 ` [Fuego] [fuego-core 1/7] ftc: docker ps will not work on the local board venkata.pyla
2021-07-22 18:28   ` Tim.Bird
2021-07-18 11:10 ` [Fuego] [fuego-core 2/7] ftc: fix test process is not killed when fuego test times out venkata.pyla
2021-07-22 18:34   ` Tim.Bird
2021-07-26  8:29     ` huong4.nguyenthi
2021-07-18 11:10 ` [Fuego] [fuego-core 3/7] testplan_smoketest.json: ftc fails to add job for tesplan_smoketest venkata.pyla
2021-07-22 18:49   ` Tim.Bird
2021-07-18 11:10 ` [Fuego] [fuego-core 4/7] LTP: Add the new tests and skip non-installed tests venkata.pyla
2021-07-22 18:54   ` Tim.Bird
2021-07-18 11:10 ` [Fuego] [fuego-core 5/7] LTP: fix fuego test could not skip list of test cases venkata.pyla
2021-07-22 18:55   ` Tim.Bird
2021-07-18 11:10 ` [Fuego] [fuego-core 6/7] LTP: execute all tests when spec specifies "all" venkata.pyla
2021-07-22 19:03   ` Tim.Bird
2021-07-27  3:11     ` [Fuego] Trả lời: " tho1.nguyendat
2021-07-27 23:00       ` Tim.Bird [this message]
2021-07-28  0:42         ` [Fuego] Trả lời: " tho1.nguyendat
2021-07-28 22:10           ` Tim.Bird
2021-07-18 11:10 ` [Fuego] [fuego-core 7/7] LTP: automatically obtain the list of tests venkata.pyla
2021-07-22 20:18   ` Tim.Bird
2021-07-20 20:58 ` [Fuego] [fuego-core 0/7] upstreaming work Tim.Bird

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=BYAPR13MB2503EED20A690042C42D1877FDE99@BYAPR13MB2503.namprd13.prod.outlook.com \
    --to=tim.bird@sony.com \
    --cc=fuego@lists.linuxfoundation.org \
    --cc=tho1.nguyendat@toshiba.co.jp \
    /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.