From patchwork Wed Nov 5 07:03:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Song, Jiaying (CN)" X-Patchwork-Id: 73626 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65A3ACCFA04 for ; Wed, 5 Nov 2025 07:03:54 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.3856.1762326225201526863 for ; Tue, 04 Nov 2025 23:03:45 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=E4m4a9UI; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=3404a64814=jiaying.song.cn@windriver.com) Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5A556nsl759968; Tue, 4 Nov 2025 23:03:44 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=PPS06212021; bh=wjFUTUolgjRinQmzOCHw Esk92vKKUmhVGzqU9sgRomo=; b=E4m4a9UIjfBBZTLHepzmVOasveUKL0vY0d6k U+BW5nkDIDkyskF4Z/0I/73d03iYf/HLAvSFkkYi7jYQGr2ttW+ZKirP5xVmLsAs etcTRQtsCeGsmqIutuYX3c5ON0HhCzA6LNLgEJQDEApNWYouDnExnTKhHzzK8PAJ EWR1yVOgUcZyeHRPkTKtTs5tOQR03Z5YlvXis1IbqeqPS+lhfy5ansVop43Kh6R5 qBkM0jo3NCrGH8W9hxfy+sgNPiAdhWskDK6CRAW7obMRD2DiIBekyaWSdlS0DEOu Z2maj67Nj1m28kMr6G7ZYlbtRU0FyhqC72M5TBUoWXx4mNyTRw== Received: from ala-exchng01.corp.ad.wrs.com ([128.224.246.36]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4a7w8k06h1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 04 Nov 2025 23:03:44 -0800 (PST) Received: from ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Tue, 4 Nov 2025 23:03:43 -0800 Received: from pek-lpg-core5.wrs.com (10.11.232.110) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Tue, 4 Nov 2025 23:03:42 -0800 From: To: , Subject: [PATCH v4] icu: use automake ptest output format Date: Wed, 5 Nov 2025 15:03:41 +0800 Message-ID: <20251105070341.2335739-1-jiaying.song.cn@windriver.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTA1MDA1MCBTYWx0ZWRfX4zUyy/NoIETU KxFp3OD/jMDSC1vh1U3DYyFrhbGGVhONgSwApNWTkyfTmolyiFEkg8cBHZ3QGQmzSZXL81pQOJC r3np+RBT9ZbLHtiR3YGclq2BODlDhaJlotWgWk3mFQdsu5jvB3GmLu0y746KlPwXrXN7ymKTfSB KoGMI5vVrlqPibbHXtJK42iZ2JscQjPe6739ei7dHgUyE+W0z3eRCY3SM/zCJogT1uVSyAzczzT TsztQvnqw8+Cgt2mVha60KojwafD7qrj3Vl8+zQCPBdpO9Y1AdItoTBdIcDyFWSQB1nsU+BlJnl xrgp7KBxSQ7kakIGEbP3uAXMe1gvFW/HOWsjtgPiLqUXopjG+MFCE+EWetCooEt4G5MrAXM5gPv pFxvQWsodL6WvwK96LlLU/mRT0G7uQ== X-Proofpoint-GUID: NGRMhrgaSCuqKO6dsZnSfhEEbkqCFbf9 X-Proofpoint-ORIG-GUID: NGRMhrgaSCuqKO6dsZnSfhEEbkqCFbf9 X-Authority-Analysis: v=2.4 cv=dovWylg4 c=1 sm=1 tr=0 ts=690af6d0 cx=c_pps a=AbJuCvi4Y3V6hpbCNWx0WA==:117 a=AbJuCvi4Y3V6hpbCNWx0WA==:17 a=6UeiqGixMTsA:10 a=VkNPw1HP01LnGYTKEx00:22 a=NEAV23lmAAAA:8 a=t7CeM3EgAAAA:8 a=K0Ool210RUyf1P0e03QA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-05_03,2025-11-03_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 phishscore=0 adultscore=0 impostorscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511050050 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 05 Nov 2025 07:03:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/225747 From: Jiaying Song Make ICU ptest output compatible with Automake format. Signed-off-by: Jiaying Song --- ...utput-compatible-with-Automake-forma.patch | 52 +++++++++++++++++++ meta/recipes-support/icu/icu_77-1.bb | 3 +- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-support/icu/icu/0001-Make-ICU-ptest-output-compatible-with-Automake-forma.patch diff --git a/meta/recipes-support/icu/icu/0001-Make-ICU-ptest-output-compatible-with-Automake-forma.patch b/meta/recipes-support/icu/icu/0001-Make-ICU-ptest-output-compatible-with-Automake-forma.patch new file mode 100644 index 0000000000..a3d9b46835 --- /dev/null +++ b/meta/recipes-support/icu/icu/0001-Make-ICU-ptest-output-compatible-with-Automake-forma.patch @@ -0,0 +1,52 @@ +From f56e295e936c6c6d9c7219ef649697891cd11382 Mon Sep 17 00:00:00 2001 +From: Jiaying Song +Date: Mon, 3 Nov 2025 11:34:06 +0800 +Subject: [PATCH] Make ICU ptest output compatible with Automake format + +Change test result format to PASS/FAIL for Automake compatibility + +Upstream-Status: Submitted [https://github.com/unicode-org/icu/pull/3764] + +Signed-off-by: Jiaying Song +--- + test/intltest/intltest.cpp | 4 ++-- + tools/ctestfw/ctest.c | 3 ++- + 2 files changed, 4 insertions(+), 3 deletions(-) + +diff --git a/test/intltest/intltest.cpp b/test/intltest/intltest.cpp +index 33829b0..07071ea 100644 +--- a/test/intltest/intltest.cpp ++++ b/test/intltest/intltest.cpp +@@ -830,11 +830,11 @@ UBool IntlTest::runTestLoop( char* testname, char* par, char *baseName ) + saveBaseLoc[0]=0; /* reset path */ + + if (lastErrorCount == errorCount) { +- snprintf( msg, sizeof(msg), " } OK: %s ", name ); ++ snprintf(msg, sizeof(msg), "PASS: %s\n }", name); + if(!no_time) str_timeDelta(msg+strlen(msg),timeStop-timeStart); + lastTestFailed = false; + }else{ +- snprintf(msg, sizeof(msg), " } ERRORS (%li) in %s", static_cast(errorCount - lastErrorCount), name); ++ snprintf(msg, sizeof(msg), "FAIL: %s\n } (ERRORS: %li)", name, static_cast(errorCount - lastErrorCount)); + if(!no_time) str_timeDelta(msg+strlen(msg),timeStop-timeStart); + + for(int i=0;iname, ERROR_COUNT - myERROR_COUNT); + strcpy(ERROR_LOG[ERRONEOUS_FUNCTION_COUNT++], pathToFunction); + } else { ++ log_testinfo_i("\nPASS: %s\n", root->name); + if(!ON_LINE) { /* had some output */ + int spaces = FLAG_INDENT-(depth-1); + log_testinfo_i("} %*s[OK] ", spaces, "---"); +-- +2.34.1 + diff --git a/meta/recipes-support/icu/icu_77-1.bb b/meta/recipes-support/icu/icu_77-1.bb index fa25b3e7c8..370c14af81 100644 --- a/meta/recipes-support/icu/icu_77-1.bb +++ b/meta/recipes-support/icu/icu_77-1.bb @@ -122,7 +122,8 @@ SRC_URI = "${BASE_SRC_URI};name=code \ file://0001-ICU-23120-Mask-UnicodeStringTest-TestLargeMemory-on-.patch \ file://0001-test-Add-support-ptest.patch \ file://run-ptest \ - " + file://0001-Make-ICU-ptest-output-compatible-with-Automake-forma.patch \ + " SRC_URI:append:class-target = "\ file://0001-Disable-LDFLAGSICUDT-for-Linux.patch \