lua: Disable locale dependent tests on musl

These tests depend on features of locale which is not fully available on
musl

(From OE-Core rev: 1179ab508b9cf6492d9c92887c11a8030e8a9763)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2023-04-20 18:11:58 -07:00
committed by Richard Purdie
parent 074b39e7d5
commit aab8d5b6a4

View File

@@ -56,6 +56,12 @@ do_install_ptest () {
cp -R --no-dereference --preserve=mode,links -v ${WORKDIR}/lua-${PV_testsuites}-tests ${D}${PTEST_PATH}/test
}
do_install_ptest:append:libc-musl () {
# locale tests does not work on musl, due to limited locale implementation
# https://wiki.musl-libc.org/open-issues.html#Locale-limitations
sed -i -e 's|os.setlocale("pt_BR") or os.setlocale("ptb")|false|g' ${D}${PTEST_PATH}/test/literals.lua
}
BBCLASSEXTEND = "native nativesdk"
inherit multilib_script