commit: e100688fbf5a78a5271e483d892714b0e15cd4e1 Author: Robert Günzler <r <AT> gnzler <DOT> io> AuthorDate: Wed Aug 7 15:54:07 2024 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> 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 <r <AT> gnzler.io> Closes: https://github.com/gentoo/gentoo/pull/38009 Signed-off-by: Joonas Niilola <juippis <AT> 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[*]}" +}
