mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
gawk: Add skipped.txt to emit test to ignore
This file can be processed by run-ptest during runtime and tests mentioned in skipped.txt will not be run. (From OE-Core rev: 58818cf22dc378ee5fa9089da1f4b8f0fd02bc44) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> (cherry picked from commit 4d30f3535f53ad6d8f462f99b6cd2fe8d2ecbfb5) Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
@@ -3,6 +3,11 @@
|
|||||||
cd test
|
cd test
|
||||||
for i in `grep -E "^[a-z0-9_-]*:$" Maketests |awk -F: '{print $1}'`; do
|
for i in `grep -E "^[a-z0-9_-]*:$" Maketests |awk -F: '{print $1}'`; do
|
||||||
unset LANG
|
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
|
srcdir=`pwd` AWKPROG=gawk AWK=gawk CMP=cmp make -f Maketests $i >$i.tmp 2>&1
|
||||||
if [ -e _$i ]; then
|
if [ -e _$i ]; then
|
||||||
cat _$i
|
cat _$i
|
||||||
|
|||||||
@@ -59,6 +59,9 @@ do_install_ptest() {
|
|||||||
# https://bugzilla.yoctoproject.org/show_bug.cgi?id=14371
|
# https://bugzilla.yoctoproject.org/show_bug.cgi?id=14371
|
||||||
rm -f ${D}${PTEST_PATH}/test/time.*
|
rm -f ${D}${PTEST_PATH}/test/time.*
|
||||||
rm -f ${D}${PTEST_PATH}/test/timeout.*
|
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() {
|
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
|
# 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/rebt8b1.*
|
||||||
rm -f ${D}${PTEST_PATH}/test/regx8bit.*
|
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"
|
RDEPENDS:${PN}-ptest += "make locale-base-en-us"
|
||||||
|
|||||||
Reference in New Issue
Block a user