tests: cleanup ts/md5

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2009-02-18 21:27:18 +01:00
parent 86aa0ee740
commit 9c7d601359
3 changed files with 6 additions and 11 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
#
# Copyright (C) 2007 Karel Zak <kzak@redhat.com>
# Copyright (C) 2009 Karel Zak <kzak@redhat.com>
#
# This file is part of util-linux-ng.
#
@ -15,21 +15,16 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
. ./commands.sh
. ./functions.sh
TS_COMPONENT="md5"
TS_DESC=""
TS_TOPDIR="$(dirname $0)/../.."
. $TS_TOPDIR/functions.sh
ts_init "$*"
> $TS_OUTPUT
MY_MD5_UTIL="$TS_HELPER_MD5"
#MY_MD5_UTIL="md5sum"
cat $TS_INPUT | while read data
cat $TS_SELF/data | while read data
do
echo -n $data | $MY_MD5_UTIL >> $TS_OUTPUT
echo -n $data | $TS_HELPER_MD5 >> $TS_OUTPUT
done
ts_finalize