From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A0F1915852A for ; Tue, 20 Aug 2024 06:37:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F05D72BC01C; Tue, 20 Aug 2024 06:37:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DC0072BC01C for ; Tue, 20 Aug 2024 06:37:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3062934131D for ; Tue, 20 Aug 2024 06:37:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 84A671F04 for ; Tue, 20 Aug 2024 06:37:39 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1724135855.e100688fbf5a78a5271e483d892714b0e15cd4e1.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-containers/crun/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-containers/crun/crun-1.16.ebuild X-VCS-Directories: app-containers/crun/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: e100688fbf5a78a5271e483d892714b0e15cd4e1 X-VCS-Branch: master Date: Tue, 20 Aug 2024 06:37:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a3c53a1a-b9e2-4fbe-a4fe-54454b57ea24 X-Archives-Hash: b44c0802aed461a6860a90ee2293d8dc commit: e100688fbf5a78a5271e483d892714b0e15cd4e1 Author: Robert Günzler gnzler io> AuthorDate: Wed Aug 7 15:54:07 2024 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Tue Aug 20 06:37:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e100688f app-containers/crun: enable limited testing Signed-off-by: Robert Günzler gnzler.io> Closes: https://github.com/gentoo/gentoo/pull/38009 Signed-off-by: Joonas Niilola gentoo.org> app-containers/crun/crun-1.16.ebuild | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/app-containers/crun/crun-1.16.ebuild b/app-containers/crun/crun-1.16.ebuild index f7678e12c5e5..631d7a2535dd 100644 --- a/app-containers/crun/crun-1.16.ebuild +++ b/app-containers/crun/crun-1.16.ebuild @@ -37,11 +37,6 @@ BDEPEND=" virtual/pkgconfig " -# the crun test suite is comprehensive to the extent that tests will fail -# within a sandbox environment, due to the nature of the privileges -# required to create linux "containers". -RESTRICT="test" - src_configure() { local myeconfargs=( $(use_enable bpf) @@ -63,3 +58,18 @@ src_install() { einfo "Cleaning up .la files" find "${ED}" -name '*.la' -delete || die } + +src_test() { + emake check-TESTS -C ./libocispec + + # the crun test suite is comprehensive to the extent that tests will fail + # within a sandbox environment, due to the nature of the privileges + # required to create linux "containers". + local supported_tests=( + "tests/tests_libcrun_utils" + "tests/tests_libcrun_errors" + "tests/tests_libcrun_intelrdt" + "tests/test_oci_features" + ) + emake check-TESTS TESTS="${supported_tests[*]}" +}