~ubuntu-branches/ubuntu/lucid/loop-aes-utils/lucid-security

« back to all changes in this revision

Viewing changes to tests/run.sh

  • Committer: Bazaar Package Importer
  • Author(s): Max Vozeler
  • Date: 2009-07-06 02:08:18 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090706020818-11pxao7bhgjenfv9
Tags: 2.15.1~rc1-2
Disable ncurses (--without-ncurses), not used in
mount/. Fixes FTBFS (closes: #535676).

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
16
# GNU General Public License for more details.
17
17
#
18
 
. ./commands.sh
 
18
 
 
19
TS_TOPDIR=$(cd $(dirname $0) && pwd)
 
20
comps=$(find $TS_TOPDIR/ts/ -type f -perm /a+x -regex ".*/[^\.~]*" |  sort)
 
21
 
 
22
if [ -n "$1" ]; then
 
23
        if [ -d "$TS_TOPDIR/ts/$1" ]; then
 
24
                comps=$(find $TS_TOPDIR/ts/$1 -type f -perm /a+x -regex ".*/[^\.~]*" |  sort)
 
25
        else
 
26
                echo
 
27
                echo "usage: $0 [<component>]"
 
28
                echo "supported components:"
 
29
                        for ts in $comps; do
 
30
                                echo -e "\t$(basename $(dirname $ts))"
 
31
                        done | sort -u
 
32
                echo
 
33
                exit 1
 
34
        fi
 
35
fi
19
36
 
20
37
echo
21
38
echo "------------------ Utils-linux-ng regression tests ------------------"
24
41
echo "                 Don't execute on production system!                 "
25
42
echo
26
43
 
27
 
rm -f *~
28
 
 
29
44
res=0
30
45
count=0
31
 
for ts in $(find -maxdepth 1 -regex "\./ts[^\.~]*" |  sort); do
32
 
        $TS_TOPDIR/$ts "$1"
 
46
for ts in $comps; do
 
47
        $ts "$1"
33
48
        res=$(( $res + $? ))
34
49
        count=$(( $count + 1 ))
35
50
done