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-ptest25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-core/util-linux/util-linux/run-ptest b/meta/recipes-core/util-linux/util-linux/run-ptest
new file mode 100644
index 0000000000..fbc2f9b56a
--- /dev/null
+++ b/meta/recipes-core/util-linux/util-linux/run-ptest
@@ -0,0 +1,25 @@
1#!/bin/sh
2
3cd tests || exit 1
4
5comps=$(find ts/ -type f -perm -111 -regex ".*/[^\.~]*" | sort)
6
7
8echo
9echo "-------------------- util-linux regression tests --------------------"
10echo
11echo " For development purpose only. "
12echo " Don't execute on production system! "
13echo
14
15res=0
16count=0
17for ts in $comps;
18do
19 $ts | sed '{
20 s/^\(.*\):\(.*\) \.\.\. OK$/PASS: \1:\2/
21 s/^\(.*\):\(.*\) \.\.\. FAILED \(.*\)$/FAIL: \1:\2 \3/
22 s/^\(.*\):\(.*\) \.\.\. SKIPPED \(.*\)$/SKIP: \1:\2 \3/
23 }'
24done
25