| Message ID | 20251112155730.646159-1-andreas.stergiopoulos@smile.fr |
|---|---|
| Headers | show
Return-Path: <andreas.stergiopoulos@smile.fr>
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 08B63CD13D3
for <webhook@archiver.kernel.org>; Wed, 12 Nov 2025 15:57:50 +0000 (UTC)
Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com
[209.85.128.52])
by mx.groups.io with SMTP id smtpd.msgproc01-g2.656.1762963068532581465
for <openembedded-core@lists.openembedded.org>;
Wed, 12 Nov 2025 07:57:49 -0800
Authentication-Results: mx.groups.io;
dkim=pass header.i=@smile.fr header.s=google header.b=ciwM6M2V;
spf=pass (domain: smile.fr, ip: 209.85.128.52,
mailfrom: andreas.stergiopoulos@smile.fr)
Received: by mail-wm1-f52.google.com with SMTP id
5b1f17b1804b1-4777707a7c2so8033795e9.1
for <openembedded-core@lists.openembedded.org>;
Wed, 12 Nov 2025 07:57:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=smile.fr; s=google; t=1762963066; x=1763567866;
darn=lists.openembedded.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=9x5Z1qg4H8z41dX425trARk537lvaCG8JLfr7fDLMHY=;
b=ciwM6M2VGgDvFuu9ppxobY1WyjWCMlYb76W9XQ7Bo0vW1Pce2nYPdcZIqNKMAs6Pi3
xQoFGNarGOuWBe4fBTbaWfckhS8GTWlXn15qjdGEdXdzgiw1VF+TRN7dqfWhbF2P9HF7
PPQmTUTlBhbhAY8uQfOUH6SCBMK7C75h6CJHs=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1762963066; x=1763567866;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to;
bh=9x5Z1qg4H8z41dX425trARk537lvaCG8JLfr7fDLMHY=;
b=AGlhBOVL5Hmo1UO0W+LhC5Q1pX055IT8NJffdQaDDMkCCrpJ2pn7EBiTR0lO7ywesR
QWj7qOB9acD4bjq3oxfq6BeL7OZ1YLnzgiwMWmfwWdbXSXj/LYDilGQZdz1r5X3o4Kws
X1UK2JsLzOE6HXSJmAU5dYWWEd0VPr6pWPxftMW9Je2dhzO7kj8D+8vw0gjNuDPBbXgf
/IgbXNRJ+XaEPO6D4QZSafo05FFrCw4HljG9rKfQ66u3Iw8B5fkOksMXmXOqq1pB7Vfj
o9QDumGVfAaVlJC0YU2IKZ/rAtiFJp2DoTOI5qCnfxNpqk237J/gnUn8tZK9IOl5XKi0
trwg==
X-Gm-Message-State: AOJu0YydEJVBaWDKhJZOBhWSXj/OK9jCPUOjZLUFXuZLXMD2Z6ne3Kh+
+5n0gvxQ5r6bqOjCxWmUUP8FtynVPqPgsizndU8i8EB9XS0cX4YR8Fy5YSl/WnP1TmvXh/3Mkx0
fIjDm
X-Gm-Gg: ASbGncsT4fdJqNfCSE29PKPCmAazL2ynw7y/jV5z8koDkt6uY/cas4DE/d2aMrgveA+
3dVZpnLCMqYR9mMEObLbZlvp4545Mx0P9M3+ahsaeoMe5lNSMHH3r6U3RLzCw6BwVwx1/jIVyZ7
Wsa8Dhj2ZUOXJhgim+VSA2KTCliyVsHCxQi8lcUhNUv6MPh/XJ57vsg14tQ1VW+djw/pHdc1PzE
TkTjSAFZhIrA7umrDLNFvdRZEX4JjFq0d8HElUEiuyVJZhJhSYgYz5dcXl0H4GwFGxOAZUka6rl
9nsnT281c60YZrjS1tQ+VOxqQRaVQhSgVwitq+7EOwtLIjJg7eNilS/lbg7Q2EBL6GqiRe/dxfh
3qrLPJM/uNMbb4qszokkb0XkvbiKwaYuIfok+isVzMWamzuF22eYJv+BaM/+fswVnXknloECWl7
5Q2vLp8Vk7LHkJ1JD5dpJCsJrgFGyNJFZT+bBjngwGhXTl11q1eib6UFBB+7QX3rqjeidHUtGFC
Je2F98jmL7HjAAOzlol
X-Google-Smtp-Source:
AGHT+IFpZxoLGvFGcEUKSiFTBqgi/7wKkArrkWY/Rjupp+0l+b8qoUoESjWrtCdR/6GWoWi45bLAJA==
X-Received: by 2002:a05:6000:2583:b0:42b:39ee:2855 with SMTP id
ffacd0b85a97d-42b432b1ccamr6679305f8f.8.1762963066613;
Wed, 12 Nov 2025 07:57:46 -0800 (PST)
Received: from FRSMI25-PILS.idf.intranet
(static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-42abe62b23csm33976612f8f.10.2025.11.12.07.57.46
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 12 Nov 2025 07:57:46 -0800 (PST)
From: Andreas Stergiopoulos <andreas.stergiopoulos@smile.fr>
To: openembedded-core@lists.openembedded.org
Cc: yoann.congal@smile.fr,
Andreas Stergiopoulos <andreas.stergiopoulos@smile.fr>
Subject: [PATCH 0/3] Better support for Rust integration tests
Date: Wed, 12 Nov 2025 16:57:27 +0100
Message-ID: <20251112155730.646159-1-andreas.stergiopoulos@smile.fr>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
List-Id: <openembedded-core.lists.openembedded.org>
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
<openembedded-core@lists.openembedded.org>; Wed, 12 Nov 2025 15:57:50 -0000
X-Groupsio-URL:
https://lists.openembedded.org/g/openembedded-core/message/226206
|
| Series | Better support for Rust integration tests | expand |
When executing integration tests generated by cargo test, every test that needs to somehow interact with the generated binary executables fails. This is due to the fact that most projects in Rust either use static methods to find the generated executable (such as going up and down the build directories) or use the "CARGO_BIN_EXE_<package-name>" environment variable, which is exported by cargo during compilation. Until now, ptest-cargo copies all the binary executables produced (unit and integration tests and binary executables) to the /usr/lib/<package>/ptest directory, where the run-ptest script executes the tests. Unit tests succeed but integration tests almost always fail. A side-effect of that is that the same binary is duplicated, as it can be found both in the package installation directory and in the corresponding ptest directory. This patch series improves the support of said integration tests by exporting the appropriate environment variables during test runtime as well, so that integration tests can access the binary executables they neeed irregardless of the configuration of their environment. The method proposed here is a powerful tool for Rust integration for Yocto, as it allows the ptest-cargo framework to execute the actual installed binary packages while at the same time it also reduces image size, by avoiding the deduplication of the binary executables. Andreas Stergiopoulos (3): ptest-cargo.bbclass: Collect only test binaries and not executables cargo.bbclass: Collect installation paths of executable binaries ptest-cargo.bbclass: Add support for CARGO_BIN_EXE_<name> environment variables meta/classes-recipe/cargo.bbclass | 3 ++ meta/classes-recipe/ptest-cargo.bbclass | 43 +++++++++++++++++++++++-- 2 files changed, 43 insertions(+), 3 deletions(-)