Files
poky/meta/recipes-support/attr/acl/run-ptest
Ross Burton 6ade544faa acl: improve ptest packaging
As there's a small number of  test binaries in acl, instead of
installing large chunks of the build tree we can install just those and
use a boilerplate test runner.

Drop 0001-tests-do-not-hardcode-the-build-path-into-a-helper-l.patch and
replace with an explicit -DBASEDIR= flag passed at build time.

Drop 0001-test-patch-out-failing-bits.patch and delete the tests that
fail entirely as they won't work without a specific user/group setup.

Backport a patch from upstream so that some tests don't use excessive
amounts of memory.

Backport a patch from upstream to cater for both glibc and musl's
behaviour with interleaved stdout/stderr, fixing the tests on musl.

Clean up dependencies now that we're not shipping the build system.

(From OE-Core rev: 2d82d5ea612ae6d7ac177f2a2792b3e3fdac1c70)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-03-27 11:19:04 +00:00

517 B

#!/bin/sh

failed=0 all=0

for f in *.test; do LD_PRELOAD=$(pwd)/libtestlookup.so ./run $f case "$?" in 0) echo "PASS: $f" all=$((all + 1)) ;; 77) echo "SKIP: $f" ;; *) echo "FAIL: $f" failed=$((failed + 1)) all=$((all + 1)) ;; esac done

if [ "$failed" -eq 0 ] ; then echo "All $all tests passed" exit 0 else echo "$failed of $all tests failed" exit 1 fi