All of lore.kernel.org
 help / color / mirror / Atom feed
From: venkata.pyla@toshiba-tsip.com
To: tim.bird@sony.com
Cc: fuego@lists.linuxfoundation.org,
	Nguyen Dat Tho <tho1.nguyendat@toshiba.co.jp>
Subject: [Fuego] [fuego-core 6/7] LTP: execute all tests when spec specifies "all"
Date: Sun, 18 Jul 2021 16:40:11 +0530	[thread overview]
Message-ID: <20210718111012.21407-7-venkata.pyla@toshiba-tsip.com> (raw)
In-Reply-To: <20210718111012.21407-1-venkata.pyla@toshiba-tsip.com>

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



  parent reply	other threads:[~2021-07-18 11:10 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 ` venkata.pyla [this message]
2021-07-22 19:03   ` [Fuego] [fuego-core 6/7] LTP: execute all tests when spec specifies "all" Tim.Bird
2021-07-27  3:11     ` [Fuego] Trả lời: " tho1.nguyendat
2021-07-27 23:00       ` Tim.Bird
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=20210718111012.21407-7-venkata.pyla@toshiba-tsip.com \
    --to=venkata.pyla@toshiba-tsip.com \
    --cc=fuego@lists.linuxfoundation.org \
    --cc=tho1.nguyendat@toshiba.co.jp \
    --cc=tim.bird@sony.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.