2007-01-04 07:23:48 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
2007-07-20 07:43:49 -05:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 Karel Zak <kzak@redhat.com>
|
|
|
|
#
|
|
|
|
# This file is part of util-linux-ng.
|
|
|
|
#
|
|
|
|
# This file is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This file is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
2007-07-17 15:47:43 -05:00
|
|
|
. ./commands.sh
|
2007-01-04 07:23:48 -06:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "------------------ Utils-linux-ng regression tests ------------------"
|
|
|
|
echo
|
2007-08-07 17:42:29 -05:00
|
|
|
echo " For development purpose only. "
|
|
|
|
echo " Don't execute on production system! "
|
|
|
|
echo
|
2007-01-04 07:23:48 -06:00
|
|
|
|
2007-01-02 17:42:23 -06:00
|
|
|
rm -f *~
|
|
|
|
|
2007-01-04 07:23:48 -06:00
|
|
|
res=0
|
|
|
|
count=0
|
2007-01-02 18:07:55 -06:00
|
|
|
for ts in $(find -maxdepth 1 -regex "\./ts[^\.~]*" | sort); do
|
2007-05-18 08:34:28 -05:00
|
|
|
$TS_TOPDIR/$ts "$1"
|
2007-01-04 07:23:48 -06:00
|
|
|
res=$(( $res + $? ))
|
|
|
|
count=$(( $count + 1 ))
|
|
|
|
done
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "---------------------------------------------------------------------"
|
|
|
|
if [ $res -eq 0 ]; then
|
|
|
|
echo " All $count tests PASSED"
|
2007-01-27 18:24:15 -06:00
|
|
|
res=0
|
2007-01-04 07:23:48 -06:00
|
|
|
else
|
|
|
|
echo " $res tests of $count FAILED"
|
2007-01-27 18:24:15 -06:00
|
|
|
res=1
|
2007-01-04 07:23:48 -06:00
|
|
|
fi
|
|
|
|
echo "---------------------------------------------------------------------"
|
2007-01-27 18:24:15 -06:00
|
|
|
exit $res
|