]> err.no Git - util-linux/commitdiff
tests: cleanup ts/md5
authorKarel Zak <kzak@redhat.com>
Wed, 18 Feb 2009 20:27:18 +0000 (21:27 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 18 Feb 2009 20:27:18 +0000 (21:27 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/md5/md5 [moved from tests/expected/ts-md5 with 100% similarity]
tests/ts/md5/data [moved from tests/input/ts-md5 with 100% similarity]
tests/ts/md5/md5 [moved from tests/ts-md5 with 71% similarity]

similarity index 100%
rename from tests/expected/ts-md5
rename to tests/expected/md5/md5
similarity index 100%
rename from tests/input/ts-md5
rename to tests/ts/md5/data
similarity index 71%
rename from tests/ts-md5
rename to tests/ts/md5/md5
index 6c04c9cb6932eef98c95f18ce41910b1ef3c8791..eda6d0497b9e9ab7e8362e3e274411cff7e74aaf 100755 (executable)
@@ -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.
 #
 # 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"
+> $TS_OUTPUT
 
-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