blob: 03248325bf4451c26d6ece91ad717a056b549e8d [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001#!/bin/sh
2
Brad Bishopc342db32019-05-15 21:57:59 -04003current_path=$(readlink -f $0)
4export bindir=$(dirname $current_path)
5export PATH=$bindir/bin:$PATH
6
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05007cd tests || exit 1
8
9comps=$(find ts/ -type f -perm -111 -regex ".*/[^\.~]*" | sort)
10
11
12echo
13echo "-------------------- util-linux regression tests --------------------"
14echo
15echo " For development purpose only. "
16echo " Don't execute on production system! "
17echo
18
19res=0
20count=0
21for ts in $comps;
22do
Brad Bishopd89cb5f2019-04-10 09:02:41 -040023 $ts | sed -u '{
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050024 s/^\(.*\):\(.*\) \.\.\. OK$/PASS: \1:\2/
25 s/^\(.*\):\(.*\) \.\.\. FAILED \(.*\)$/FAIL: \1:\2 \3/
26 s/^\(.*\):\(.*\) \.\.\. SKIPPED \(.*\)$/SKIP: \1:\2 \3/
27 }'
28done
29