]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
gawk: Add skipped.txt to emit test to ignore
authorKhem Raj <raj.khem@gmail.com>
Fri, 14 Apr 2023 23:42:58 +0000 (16:42 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Apr 2023 10:51:39 +0000 (11:51 +0100)
This file can be processed by run-ptest during runtime and tests
mentioned in skipped.txt will not be run.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
meta/recipes-extended/gawk/gawk/run-ptest
meta/recipes-extended/gawk/gawk_5.2.1.bb

index 2675650600e7d8c2f6593d45d63c19f110313ae1..f4ef3e7bd4e727f776f2f59cfe4f8cb8ecf77ec0 100644 (file)
@@ -3,6 +3,11 @@
 cd test
 for i in `grep -E "^[a-z0-9_-]*:$" Maketests |awk -F: '{print $1}'`; do
   unset LANG
+  grep -q "^$i$" skipped.txt
+  if [ $? -eq 0 ]; then
+    echo "SKIP: $i"
+    continue
+  fi
   srcdir=`pwd` AWKPROG=gawk AWK=gawk CMP=cmp make -f Maketests $i >$i.tmp 2>&1
   if [ -e _$i ]; then
     cat _$i
index c914326563c9741b08d3f5424f015c5625df2965..768c8eb3648e5a8640d9cf0322aa3e4094c1a1df 100644 (file)
@@ -59,6 +59,9 @@ do_install_ptest() {
        # https://bugzilla.yoctoproject.org/show_bug.cgi?id=14371
        rm -f ${D}${PTEST_PATH}/test/time.*
        rm -f ${D}${PTEST_PATH}/test/timeout.*
+       for t in time timeout; do
+               echo $t >> ${D}${PTEST_PATH}/test/skipped.txt
+       done
 }
 
 do_install_ptest:append:libc-musl() {
@@ -71,6 +74,9 @@ do_install_ptest:append:libc-musl() {
        # The below two need LANG=C inside the make rule for musl
        rm -f ${D}${PTEST_PATH}/test/rebt8b1.*
        rm -f ${D}${PTEST_PATH}/test/regx8bit.*
+       for t in clos1way6 backsmalls1 commas rebt8b1 regx8bit; do
+               echo $t >> ${D}${PTEST_PATH}/test/skipped.txt
+       done
 }
 
 RDEPENDS:${PN}-ptest += "make locale-base-en-us"