Files
poky/meta/recipes-core/util-linux/util-linux/run-ptest
Chen Qi e67506ffa2 util-linux/util-linux-libuuid: upgrade from 2.40.4 to 2.41
License-Update: add EUPL-1.2.
See 74f3265b9a

0001-tests-ts-kill-decode-avoid-using-shell-built-in-kill.patch is
a backported patch to fix kill/decode test case.

0001-lsfd-mkfds-foreign-sockets-skip-when-lacking-sock_di.patch is
used to fix testcase failure of lsfd/mkfds-foreign-sockets.

The su tests (su/environ for now) are removed when 'pam' is not in
PACKAGECONFIG. This is because su is not enabled in such case.

lsfd/option-inet is removed out of the excluded list because upstream
has fixed the issue:
eaa3870880

(From OE-Core rev: ed76e5fbec0f1926c14aedbb03ca1421c3920355)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-05-29 15:14:37 +01:00

1.2 KiB

#!/bin/sh

When udevd (from eudev) is running most eject/mount tests will fail because

of automount. We need to stop udevd before executing util-linux's tests.

The systemd-udevd daemon doesn't change the outcome of util-linux's tests.

UDEV_PID="pidof "@base_sbindir@/udevd"" if [ "x$UDEV_PID" != "x" ]; then /etc/init.d/udev stop fi

current_path=$(readlink -f $0) export bindir=$(dirname $current_path) export PATH=$bindir/bin:$PATH

losetup tests will be skipped and/or fail otherwise

modprobe loop

required for mount/fallback test to pass

systemd does this by default, but ptest images do not use it

see https://man7.org/linux/man-pages/man7/mount_namespaces.7.html

for a long description of mount namespaces in Linux

mount --make-shared /

lsfd/mkfds-bpf* have issues with the gcc 15 upgrade

./tests/run.sh --use-system-commands --parsable --show-diff --exclude='lsfd/mkfds-bpf-map lsfd/mkfds-bpf-prog' | sed -u '{ s/^(.):(.) ... OK$/PASS: \1:\2/
s/^(.):(.) ... FAILED (.)$/FAIL: \1:\2 \3/
s/^(.
):(.) ... SKIPPED (.)$/SKIP: \1:\2 \3/
}'

if [ "x$UDEV_PID" != "x" ]; then /etc/init.d/udev start fi