]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
icu: Add ptest support
authorDaisuke Yamane <yamane07ynct@gmail.com>
Sun, 6 Jul 2025 09:01:52 +0000 (18:01 +0900)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Jul 2025 13:30:19 +0000 (14:30 +0100)
commit4a729a529067a5ba7036a224cf330e31b8a5f838
treea2fd729f981855b222a260800bd52fc353a071b5
parent134880baa4a971660e0800f70404d15c758fb7db
icu: Add ptest support

Add following patches.
  - 0001-test-Add-support-ptest.patch
    - Some default paths in test code are invalid at runtime and cause
    - test failures. So add a patch to adjust path to test data for ptest
    - environment.
  - 0001-ICU-23120-Mask-UnicodeStringTest-TestLargeMemory-on-.patch
    - Since ICU-77.1, a test case (TestLargeMemory) that fails to build
    - in a 32-bit environment. So add a patch to skip this test case.
    - This bug has been reported to upstream. See https://unicode-org.atlassian.net/browse/ICU-23120.
Install icu test-suite to run it as a ptest.
Add icu to PTESTS_FAST because it takes 27sec (less than 30sec) to complete on
qemux86-64 with kvm enabled.

root@qemux86-64:~# ptest-runner icu
START: ptest-runner
2025-07-06T00:46
BEGIN: /usr/lib/icu/ptest
___(snip)___
--------------------------------------
Elapsed Time: 00:00:23.070
PASS: ./intltest
DURATION: 27
END: /usr/lib/icu/ptest
2025-07-06T00:47
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Signed-off-by: Daisuke Yamane <yamane07ynct@gmail.com>
CC: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/distro/include/ptest-packagelists.inc
meta/recipes-support/icu/icu/0001-ICU-23120-Mask-UnicodeStringTest-TestLargeMemory-on-.patch [new file with mode: 0644]
meta/recipes-support/icu/icu/0001-test-Add-support-ptest.patch [new file with mode: 0644]
meta/recipes-support/icu/icu/run-ptest [new file with mode: 0755]
meta/recipes-support/icu/icu_77-1.bb