TS_HELPER_SYSINFO="$TS_TOPDIR/helpers/test_sysinfo"
TS_HELPER_PATHS="$TS_TOPDIR/helpers/test_pathnames"
TS_HELPER_BYTESWAP="$TS_TOPDIR/helpers/test_byteswap"
+TS_HELPER_MD5="$TS_TOPDIR/helpers/test_md5"
# external commands
TS_ECMD_BLKID="@BLKID@"
--- /dev/null
+d41d8cd98f00b204e9800998ecf8427e -
+900150983cd24fb0d6963f7d28e17f72 -
+5eb6d580e5f68fde65c3778afb8826ff -
+bd1e13bdaab82581d4dc299eb9a3da0f -
+d81ee4f567972a18f9326540b5d8aeaf -
+9561bd208c0041c673080ed744919b85 -
+d98d58d5562ca4dd47f0f0fe86b2d48f -
--- /dev/null
+#!/bin/bash
+
+#
+# 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.
+#
+. ./commands.sh
+. ./functions.sh
+
+TS_COMPONENT="md5"
+TS_DESC=""
+
+ts_init "$*"
+> $TS_OUTPUT
+
+MY_MD5_UTIL="$TS_HELPER_MD5"
+#MY_MD5_UTIL="md5sum"
+
+cat $TS_INPUT | while read data
+do
+ echo -n $data | $MY_MD5_UTIL >> $TS_OUTPUT
+done
+
+ts_finalize
+