diff options
Diffstat (limited to 'meta/recipes-core/util-linux/util-linux/run-ptest')
-rw-r--r-- | meta/recipes-core/util-linux/util-linux/run-ptest | 34 |
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) | |||
13 | export bindir=$(dirname $current_path) | 13 | export bindir=$(dirname $current_path) |
14 | export PATH=$bindir/bin:$PATH | 14 | export PATH=$bindir/bin:$PATH |
15 | 15 | ||
16 | cd tests || exit 1 | 16 | # losetup tests will be skipped and/or fail otherwise |
17 | 17 | modprobe loop | |
18 | comps=$(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 | |
21 | echo | 21 | # see https://man7.org/linux/man-pages/man7/mount_namespaces.7.html |
22 | echo "-------------------- util-linux regression tests --------------------" | 22 | # for a long description of mount namespaces in Linux |
23 | echo | 23 | mount --make-shared / |
24 | echo " For development purpose only. " | 24 | |
25 | echo " Don't execute on production system! " | 25 | # lsfd/option-inet has races in the test script: |
26 | echo | 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 '{ | |
28 | res=0 | ||
29 | count=0 | ||
30 | for ts in $comps; | ||
31 | do | ||
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 | }' |
37 | done | ||
38 | |||
39 | 32 | ||
40 | if [ "x$UDEV_PID" != "x" ]; then | 33 | if [ "x$UDEV_PID" != "x" ]; then |
41 | /etc/init.d/udev start | 34 | /etc/init.d/udev start |
42 | fi | 35 | fi |
43 | |||