[Fuego] [fuego-core 6/7] LTP: execute all tests when spec specifies "all"
[email protected] Sun, 18 Jul 2021 16:40:11 +0530
| Newsgroups | dev.linux.lists.fuego |
|---|---|
| Message-ID | <[email protected]> |
From: Nguyen Dat Tho <[email protected]> Signed-off-by: Nguyen Dat Tho <[email protected]> Signed-off-by: Daniel Sangorrin <[email protected]> Signed-off-by: venkata pyla <[email protected]> --- 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