From patchwork Fri Dec 4 12:08:21 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaipaul Cheernam X-Patchwork-Id: 107298 Received: from AM0PR02CU008.outbound.protection.outlook.com (AM0PR02CU008.outbound.protection.outlook.com [52.101.72.70]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.6776.1796386113637373529 for ; Fri, 04 Dec 2026 04:08:35 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@est.tech header.s=selector1 header.b=LMGKhzOz; spf=pass (domain: est.tech, ip: 52.101.72.70, mailfrom: jaipaul.cheernam@est.tech) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=djUbvP5v2SOH07QjcMIZ0/nS2OrlwwrBI+PTbxkIE3+d4WNGmi0vW3cRtcEBjxERlyCp2lIHO/aZg5ds4gSCf4ecCd0xGDcBnEfa5BDES+DD/nr2FHEFTUyaUglbhn2HXhLlglCKwjvFqvqjlAvo2K/PlNbMraasT2ztLw28fvKFPIJG6PCl3rkXZqrRXnDMgPO20fRVoDdsx5AxlYrwuwIAHDy+d9lJQ9GGsKc9pjJNqBBDMbom0umGiGHMizwmi/qlxJ4E3njiGkACePwoGYjVtd8TtyDQLd305XpXTUHsrtQGnR18CgxGqH5IxRQzbWb6PjyMbxRq/ySKeS816A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LMD0c65DPLSjeuJz/shqwzSGsyz7RKpa3D7OY/a+/tw=; b=QCs/Jls5BlKoTzIR4wimPhp2UpP+Vnpp3mBi//4RmXVDpQkkIIJDJVFNYe2a2M4xEYAckhypfHp0KFwyMJZiVw5pscwZmUZlAWi8VGM3ZdU25BSaYQAT7iPJNQfau3fsBEJtFYZ2JYG3OL4+aqw2N+KCnl8LVnBAI/BsVUPJFIjUG9imEp+NbhvI7t3ZhQ7zmxBhehOwYhEZeSJuVqawpBroBNGVT4lF7MeJeTwIsvRCkG3srsUZFylKuvqrp3c2Rf4zjFK9jwWVlFtUXrCa4WGq8TqnIvM3oeCqKyKqz3jjsN0sLq4oFy/79A5+F7H0gyRS5sjG+vQ8w67CVdaQgw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=est.tech; dmarc=pass action=none header.from=est.tech; dkim=pass header.d=est.tech; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=est.tech; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LMD0c65DPLSjeuJz/shqwzSGsyz7RKpa3D7OY/a+/tw=; b=LMGKhzOzsVS1XU1JWzqldPzimSyKhRKzwZUxp7MiAJkeS4T2oqJyoZRBi0fX9Ms1a530WWDidDmFCAL6dZJYZpCkkErqIt2T4MdfRUuz1X4EjvHszibqg1RLFiEPBdsrR4wfkLl7pwU32rsErvuc3f5rwH2PK2SDFEb5kgxD2bESL23hY1urpsfYjBt6ppniRqofFpxNTK8j/OqQAdyGTLuc4ixpklZ+U7MLbfuNj1QB8A0pirJGXzn8+s98LBZMRe0dyJUm+qHBIRAsn8yHeVKz1FJvyY4XS+1V+Qn/dqgpRsJT/YB+mNGDCZm9KXeZZvU/+ojgyS/3xRSmprBxFw== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=est.tech; Received: from AM6P189MB3107.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:6c0::19) by MI9P189MB079044.EURP189.PROD.OUTLOOK.COM (2603:10a6:290:bb::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Fri, 4 Dec 2026 12:08:33 +0000 Received: from AM6P189MB3107.EURP189.PROD.OUTLOOK.COM ([fe80::bc97:3847:8f02:acb]) by AM6P189MB3107.EURP189.PROD.OUTLOOK.COM ([fe80::bc97:3847:8f02:acb%6]) with mapi id 15.21.0688.011; Fri, 4 Dec 2026 12:08:33 +0000 From: Jaipaul Cheernam To: openembedded-core@lists.openembedded.org Subject: [PATCH 5/5] elfutils: use upstream's parallel test harness for ptest Date: Fri, 4 Dec 2026 13:08:21 +0100 Message-ID: <20261204120821.88472-6-jaipaul.cheernam@est.tech> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20261204120821.88472-1-jaipaul.cheernam@est.tech> References: <20261204120821.88472-1-jaipaul.cheernam@est.tech> X-ClientProxiedBy: DUZPR01CA0038.eurprd01.prod.exchangelabs.com (2603:10a6:10:468::12) To AM6P189MB3107.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:6c0::19) Return-Path: jaipaul.cheernam@est.tech MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6P189MB3107:EE_|MI9P189MB079044:EE_ X-MS-Office365-Filtering-Correlation-Id: af4007ad-1522-48ac-902a-08df51ff511b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016|23010399003|10067099003|56012099006|261022113327099003|261022115727099003|261022075727099003|261028144727099003|261026140227099003|261026121527099003|261021121427099003|261021123027099003|261022105027099003|261102124527099003|261102123227099003|261009223027099003|22082099003|18002099003|10086099003|11063799006|6133799003|3023799007; X-Microsoft-Antispam-Message-Info: qdjvSkkKm2QqPG9231JBj2dWrOXD1uX6JrC/yEgfEpvmQ4pn5utu9v+tbVK2kg6J22ap42mGJcaeh9F5YdQjTTHUglJBZRaDs3UH+i4Bm1ooPzWgdDxeFwElNL/iN8BndUu+ZG56B1+3mdfI456i1LG81ub77S/WVtpcpzgLVKlTWZhCl+fuOipqIEpZZ57jZQw2oJRutyo5nyYKJWrrtZMvFvikUVQXL+jGopdATEyzvu+fqiyE32Vsuaf2O6AixtZ5s1w8uHyRbAQwEEtwRMCrfDgra/+c7xzhiNCvbLPHV9gnTsDQfaysffzsIirVK8RpsRLlLdSBTQ2IOx6RIvpQ7pxJ4MhqFPJJB4FGVd/uVX+DRVsdHk+XFTQVg0pTxBgG6fnbZTB7bKw+ZvDv9Me7DOIvwId5Zkp6VNz4Hm+Bjc5ljBQ6pfEXs5UvQiRkkq0tXJt2zkzIgbmw27pwBitpCR5Img9rEDdIZXttYS2PM/c0BB9o5UJ70EyCxavNG7Ed10wBNHQ540g65rzOw3nMUd76WyfUfaeKeDGJS8fny/mI/5s8N3h5+GSb1VB1ilolmV+8tn4drRg07sHjrmVDnSVs2TIIkb0yqj5enc1orAhSiYQ1TRyGtnPSfHCUww81d6VklNpsDb8QPLPBrZ9g3VvzVFgtNUEnr0sWtg0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6P189MB3107.EURP189.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(366016)(23010399003)(10067099003)(56012099006)(261022113327099003)(261022115727099003)(261022075727099003)(261028144727099003)(261026140227099003)(261026121527099003)(261021121427099003)(261021123027099003)(261022105027099003)(261102124527099003)(261102123227099003)(261009223027099003)(22082099003)(18002099003)(10086099003)(11063799006)(6133799003)(3023799007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Gt1Izhy1gaf8s5dqXsm3DQ6o0nMFQ55nTuVIjYR1yaXW5cqoSXZUScewKJ2ovmhnedlh/GBKO/Q7SRqQRi/mHq//8PjbMlf2Yi50Jnkc/JHhTsBCUbPtEKmYDTQ6Fw2MxQak9YIE+RZHkX1WfhtVHOOgxNp768waQx7+5lEHTlhz86cSvHEP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QAsY2H2wiZYGUzC1+9r8rfyuTxLJOD4DlILvTEwAWaBNoO6UnmyM376IuS7PB9avow7efSvH81n5gddndivo9SKsYYYI8kUkFOqs3MpWMmcNp0uyAzpWEd4fZNknmcmvRvghRZgsq8eR7qRNik8KJjC/TMKy/0gInR4BFw/hh2g+Hq3UOeEv6fPG0t8xFgFzLIG4Iv2a7FquXudsw7TrGRbnHv06PB4tnlFOM7g/qc4NCS8qDZCNk4pSDIf7h4FtMnw2/6OuxZEkIH4/6NYLZp4txxXVS8vrPYQuFr5YOX78H/+SsFFX+ZLLF7uJGlCDy0IapzPrBC0W+SolwGhn1xVxFzY7xLj7kqPWrvMkF3ykUDZc9Aqe7/zWHqHpn20WA1RmssjX47cncluzNYu8a50ErFvLeUs5mhM4zguFR/Akhkb0NA1PNEGfrdYYS0aUXbYFFOflfRFZF2bxE3jG/L0O15hKLzV1+jn4eQ== X-OriginatorOrg: est.tech X-MS-Exchange-CrossTenant-Network-Message-Id: af4007ad-1522-48ac-902a-08df51ff511b X-MS-Exchange-CrossTenant-AuthSource: AM6P189MB3107.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 12:08:33.1043 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d2585e63-66b9-44b6-a76e-4f4b217d97fd X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: N/Gfss4wAfHqXMyiEhmlh8R5RDn9Qbyo1lRzx2raZbKQi/1D7tjBe16dnRqiahez+Qj7lf8hkSkyQPXzxUkohQ2Nf+xKNyJVHJgl78E61pg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MI9P189MB079044 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 12:08:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251959 run-ptest uses installcheck-local, so serial-tests is no longer needed. Install config/test-driver, pass AWK=awk and print test-suite.log on failure. core-image-ptest-elfutils on qemux86-64, passed before -> after: glibc: 261 -> 257, 0 failed musl: 254 -> 250, 0 failed The 4 dropped passes were PASS: lines printed by elf-from-memory and ar-getarsym-mem, miscounted as tests. Both still run and pass. AI-Generated: Uses Kiro CLI (claude-opus-5.5) Signed-off-by: Jaipaul Cheernam --- .../elfutils/elfutils_0.197.bb | 3 ++- .../elfutils/files/ptest.patch | 23 ++++--------------- .../recipes-devtools/elfutils/files/run-ptest | 7 +++++- 3 files changed, 12 insertions(+), 21 deletions(-) diff --git a/meta/recipes-devtools/elfutils/elfutils_0.197.bb b/meta/recipes-devtools/elfutils/elfutils_0.197.bb index 07b74bc1e45..02b336c2343 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.197.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.197.bb @@ -60,7 +60,7 @@ do_compile_ptest() { cxxflags="$(makefile-getvar Makefile CXXFLAGS) -Wno-error" # test-nlist has a custom rule using test_nlist_CFLAGS (-g -O0), which lacks # the debug prefix maps and leaks build paths; use the standard CFLAGS - oe_runmake buildtest-TESTS oecheck "CFLAGS=$cflags" "CXXFLAGS=$cxxflags" \ + oe_runmake oecheck "CFLAGS=$cflags" "CXXFLAGS=$cxxflags" \ 'test_nlist_CFLAGS=$(CFLAGS)' } PTEST_PARALLEL_MAKE = "" @@ -107,6 +107,7 @@ do_install_ptest() { cp -r ${B}/tests/* ${D}${PTEST_PATH}/tests cp -r ${B}/config.h ${D}${PTEST_PATH} cp -r ${B}/config/profile.sh ${D}${PTEST_PATH}/config + cp ${S}/config/test-driver ${D}${PTEST_PATH}/config cp -r ${B}/backends ${D}${PTEST_PATH} cp -r ${B}/debuginfod ${D}${PTEST_PATH} sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile diff --git a/meta/recipes-devtools/elfutils/files/ptest.patch b/meta/recipes-devtools/elfutils/files/ptest.patch index 771a6470ac5..9dfa21eae2e 100644 --- a/meta/recipes-devtools/elfutils/files/ptest.patch +++ b/meta/recipes-devtools/elfutils/files/ptest.patch @@ -3,36 +3,21 @@ From: Richard Purdie Date: Wed, 1 May 2019 16:37:48 +0100 Subject: [PATCH] Changes to allow ptest to run standalone on target: -a) Run the tests serially -b) Use the standalone test mode which allows the tests to be run in their +a) Use the standalone test mode which allows the tests to be run in their 'installled' locations on target (but not any of the standalone build pieces) -c) We want to use the binaries from their installed locations so the run-subr +b) We want to use the binaries from their installed locations so the run-subr script needs tweaking to run them like that. The rpath conditional isn't enough since we want the second entry in the case statement. -d) Add an oecheck make target which we can use to build the test binaries we need +c) Add an oecheck make target which we can use to build the test binaries we need Signed-off-by: Richard Purdie Upstream-Status: Inappropriate [oe specific] --- - configure.ac | 2 +- tests/Makefile.am | 2 ++ tests/test-subr.sh | 6 ------ - 3 files changed, 3 insertions(+), 7 deletions(-) + 2 files changed, 2 insertions(+), 6 deletions(-) -diff --git a/configure.ac b/configure.ac -index d3c0292..76bdda2 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -43,7 +43,7 @@ AC_COPYRIGHT([Copyright (C) 1996-2026 The elfutils developers.]) - AC_PREREQ(2.69) dnl Minimum Autoconf version required. - - dnl We use GNU make extensions; automake 1.10 defaults to -Wportability. --AM_INIT_AUTOMAKE([gnits 1.11 -Wno-portability dist-bzip2 no-dist-gzip parallel-tests]) -+AM_INIT_AUTOMAKE([gnits 1.11 -Wno-portability dist-bzip2 no-dist-gzip serial-tests]) - AM_MAINTAINER_MODE - - AM_SILENT_RULES([yes]) diff --git a/tests/Makefile.am b/tests/Makefile.am index 261649f..bb36d3a 100644 --- a/tests/Makefile.am diff --git a/meta/recipes-devtools/elfutils/files/run-ptest b/meta/recipes-devtools/elfutils/files/run-ptest index 3c6c14e47f9..4be9ff7f035 100644 --- a/meta/recipes-devtools/elfutils/files/run-ptest +++ b/meta/recipes-devtools/elfutils/files/run-ptest @@ -3,4 +3,9 @@ #This script is used to run elfutils test suites cd tests -make -k installcheck-local CC=gcc abs_srcdir=$PWD abs_builddir=$PWD srcdir=$PWD top_srcdir=$PWD/../ abs_top_builddir=$PWD/../ elfutils_testrun=installed elfutils_tests_rpath=no program_transform_name=s,^,eu-, XFAIL_TESTS="@XFAIL_TESTS@" +make -k installcheck-local CC=gcc AWK=awk abs_srcdir=$PWD abs_builddir=$PWD srcdir=$PWD top_srcdir=$PWD/../ abs_top_builddir=$PWD/../ elfutils_testrun=installed elfutils_tests_rpath=no program_transform_name=s,^,eu-, XFAIL_TESTS="@XFAIL_TESTS@" || { + rc=$? + # The parallel harness writes test output to log files; show it on failure + [ -f test-suite.log ] && cat test-suite.log + exit $rc +}