All of lore.kernel.org
 help / color / mirror / Atom feed
From: venkata.pyla@toshiba-tsip.com
To: tim.bird@sony.com
Cc: Tran Hai Binh <binh1.tranhai@toshiba.co.jp>,
	fuego@lists.linuxfoundation.org
Subject: [Fuego] [fuego-core 4/7] LTP: Add the new tests and skip non-installed tests
Date: Sun, 18 Jul 2021 16:40:09 +0530	[thread overview]
Message-ID: <20210718111012.21407-5-venkata.pyla@toshiba-tsip.com> (raw)
In-Reply-To: <20210718111012.21407-1-venkata.pyla@toshiba-tsip.com>

From: Tran Hai Binh <binh1.tranhai@toshiba.co.jp>

 - Add the new tests in 20200930 that are not in ALLTESTS:
	s390x_tests, uevent, crypto
 - Skip non-installed tests in LTP

Signed-off-by: Tran Hai Binh <binh1.tranhai@toshiba.co.jp>
Signed-off-by: venkata pyla <venkata.pyla@toshiba-tsip.com>
---
 tests/Functional.LTP/fuego_test.sh     |  6 +++---
 tests/Functional.LTP/ltp_target_run.sh | 23 ++++++++++++++---------
 2 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/tests/Functional.LTP/fuego_test.sh b/tests/Functional.LTP/fuego_test.sh
index a4f551b..6a84d1c 100755
--- a/tests/Functional.LTP/fuego_test.sh
+++ b/tests/Functional.LTP/fuego_test.sh
@@ -18,9 +18,9 @@ cve                 io_floppy             net.ipv6_lib          net.tirpc_tests
 dio                 ipc                   net.multicast         network_commands                  timers
 dma_thread_diotest  kernel_misc           net.nfs               nptl                              tpm_tools
 fcntl-locktests     ltp-aiodio.part1      net.rpc               numa                              tracing
-filecaps            ltp-aiodio.part2      net.rpc_tests         pipes
-fs                  ltp-aiodio.part3      net.sctp              power_management_tests
-fs_bind             ltp-aiodio.part4      net_stress.appl       power_management_tests_exclusive
+filecaps            ltp-aiodio.part2      net.rpc_tests         pipes                             s390x_tests
+fs                  ltp-aiodio.part3      net.sctp              power_management_tests            uevent
+fs_bind             ltp-aiodio.part4      net_stress.appl       power_management_tests_exclusive  crypto
 fs_ext4             ltp-aio-stress.part1  net_stress.broken_ip  pty
 smoketest"
 
diff --git a/tests/Functional.LTP/ltp_target_run.sh b/tests/Functional.LTP/ltp_target_run.sh
index 52a006a..ded81de 100755
--- a/tests/Functional.LTP/ltp_target_run.sh
+++ b/tests/Functional.LTP/ltp_target_run.sh
@@ -5,6 +5,7 @@
 
 OUTPUT_DIR=${PWD}/result
 TMP_DIR=${PWD}/tmp
+RUNTEST_DIR=${PWD}/runtest
 
 [ -d ${TMP_DIR} ] && rm -rf ${TMP_DIR}
 mkdir -p ${TMP_DIR}
@@ -18,15 +19,19 @@ echo "ltp_target_run: ${TESTS} | ${PTSTESTS} | ${RTTESTS}"
 
 # FIXTHIS: add -t option for limiting the duration of each test group execution
 for i in ${TESTS}; do
-    echo "ltp_target_run: doing test $i"
-    mkdir -p ${OUTPUT_DIR}/${i}
-    ./runltp -C ${OUTPUT_DIR}/${i}/failed.log \
-             -l ${OUTPUT_DIR}/${i}/result.log \
-             -o ${OUTPUT_DIR}/${i}/output.log \
-             -d ${TMP_DIR} \
-             -S ./skiplist.txt \
-             -f $i > ${OUTPUT_DIR}/${i}/head.log 2>&1
-    rm -rf ${TMP_DIR}/*
+    if [ -f ${RUNTEST_DIR}/${i} ]; then
+        echo "ltp_target_run: doing test $i"
+        mkdir -p ${OUTPUT_DIR}/${i}
+        ./runltp -C ${OUTPUT_DIR}/${i}/failed.log \
+                 -l ${OUTPUT_DIR}/${i}/result.log \
+                 -o ${OUTPUT_DIR}/${i}/output.log \
+                 -d ${TMP_DIR} \
+                 -S ./skiplist.txt \
+                 -f $i > ${OUTPUT_DIR}/${i}/head.log 2>&1
+        rm -rf ${TMP_DIR}/*
+    else
+        echo "Warning: ${i} is not available in the installed LTP"
+    fi
 done
 
 # gather posix results into pts.log
-- 
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 ` venkata.pyla [this message]
2021-07-22 18:54   ` [Fuego] [fuego-core 4/7] LTP: Add the new tests and skip non-installed tests 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
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-5-venkata.pyla@toshiba-tsip.com \
    --to=venkata.pyla@toshiba-tsip.com \
    --cc=binh1.tranhai@toshiba.co.jp \
    --cc=fuego@lists.linuxfoundation.org \
    --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.