From: Karel Zak Date: Wed, 18 Feb 2009 20:27:18 +0000 (+0100) Subject: tests: cleanup ts/md5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c7d60135998fc7b701f097e014702cbd810bf58;p=util-linux tests: cleanup ts/md5 Signed-off-by: Karel Zak --- diff --git a/tests/expected/ts-md5 b/tests/expected/md5/md5 similarity index 100% rename from tests/expected/ts-md5 rename to tests/expected/md5/md5 diff --git a/tests/input/ts-md5 b/tests/ts/md5/data similarity index 100% rename from tests/input/ts-md5 rename to tests/ts/md5/data diff --git a/tests/ts-md5 b/tests/ts/md5/md5 similarity index 71% rename from tests/ts-md5 rename to tests/ts/md5/md5 index 6c04c9cb..eda6d049 100755 --- a/tests/ts-md5 +++ b/tests/ts/md5/md5 @@ -1,7 +1,7 @@ #!/bin/bash # -# Copyright (C) 2007 Karel Zak +# Copyright (C) 2009 Karel Zak # # 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" +> $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