summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/util-linux/util-linux/run-ptest
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/util-linux/util-linux/run-ptest')
-rw-r--r--meta/recipes-core/util-linux/util-linux/run-ptest34
1 files changed, 13 insertions, 21 deletions
diff --git a/meta/recipes-core/util-linux/util-linux/run-ptest b/meta/recipes-core/util-linux/util-linux/run-ptest
index e135ee583b..7b6b1d1dc2 100644
--- a/meta/recipes-core/util-linux/util-linux/run-ptest
+++ b/meta/recipes-core/util-linux/util-linux/run-ptest
@@ -13,31 +13,23 @@ current_path=$(readlink -f $0)
13export bindir=$(dirname $current_path) 13export bindir=$(dirname $current_path)
14export PATH=$bindir/bin:$PATH 14export PATH=$bindir/bin:$PATH
15 15
16cd tests || exit 1 16# losetup tests will be skipped and/or fail otherwise
17 17modprobe loop
18comps=$(find ts/ -type f -perm -111 -regex ".*/[^\.~]*" | sort) 18
19 19# required for mount/fallback test to pass
20 20# systemd does this by default, but ptest images do not use it
21echo 21# see https://man7.org/linux/man-pages/man7/mount_namespaces.7.html
22echo "-------------------- util-linux regression tests --------------------" 22# for a long description of mount namespaces in Linux
23echo 23mount --make-shared /
24echo " For development purpose only. " 24
25echo " Don't execute on production system! " 25# lsfd/option-inet has races in the test script:
26echo 26# https://github.com/util-linux/util-linux/issues/2399
27 27./tests/run.sh --use-system-commands --parsable --show-diff --exclude=lsfd/option-inet | sed -u '{
28res=0
29count=0
30for ts in $comps;
31do
32 $ts | sed -u '{
33 s/^\(.*\):\(.*\) \.\.\. OK$/PASS: \1:\2/ 28 s/^\(.*\):\(.*\) \.\.\. OK$/PASS: \1:\2/
34 s/^\(.*\):\(.*\) \.\.\. FAILED \(.*\)$/FAIL: \1:\2 \3/ 29 s/^\(.*\):\(.*\) \.\.\. FAILED \(.*\)$/FAIL: \1:\2 \3/
35 s/^\(.*\):\(.*\) \.\.\. SKIPPED \(.*\)$/SKIP: \1:\2 \3/ 30 s/^\(.*\):\(.*\) \.\.\. SKIPPED \(.*\)$/SKIP: \1:\2 \3/
36 }' 31 }'
37done
38
39 32
40if [ "x$UDEV_PID" != "x" ]; then 33if [ "x$UDEV_PID" != "x" ]; then
41 /etc/init.d/udev start 34 /etc/init.d/udev start
42fi 35fi
43