4 # Copyright (C) 2007 Karel Zak <kzak@redhat.com>
6 # This file is part of util-linux-ng.
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This file is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
19 TS_TOPDIR=$(cd $(dirname $0) && pwd)
20 comps=$(find $TS_TOPDIR/ts/ -type f -perm /a+x -regex ".*/[^\.~]*" | sort)
23 if [ -d "$TS_TOPDIR/ts/$1" ]; then
24 comps=$(find $TS_TOPDIR/ts/$1 -type f -perm /a+x -regex ".*/[^\.~]*" | sort)
27 echo "usage: $0 [<component>]"
28 echo "supported components:"
30 echo -e "\t$(basename $(dirname $ts))"
38 echo "------------------ Utils-linux-ng regression tests ------------------"
40 echo " For development purpose only. "
41 echo " Don't execute on production system! "
49 count=$(( $count + 1 ))
53 echo "---------------------------------------------------------------------"
54 if [ $res -eq 0 ]; then
55 echo " All $count tests PASSED"
58 echo " $res tests of $count FAILED"
61 echo "---------------------------------------------------------------------"