summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRuediger Meier2016-04-06 12:30:17 +0200
committerKarel Zak2016-04-13 12:29:16 +0200
commitc8d211478f4a562628fb400355861ca81f8a446b (patch)
treef3ead083674f732a6f21d4b2eb51af2378300d19 /tests
parentchrt: validate priority before trying to use it (diff)
downloadkernel-qcow2-util-linux-c8d211478f4a562628fb400355861ca81f8a446b.tar.gz
kernel-qcow2-util-linux-c8d211478f4a562628fb400355861ca81f8a446b.tar.xz
kernel-qcow2-util-linux-c8d211478f4a562628fb400355861ca81f8a446b.zip
tests: test_md5 prints md5sum only
We want to to use it for other tests without depending on gnu md5sum and without cut or awk. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/expected/md5/md514
-rw-r--r--tests/helpers/test_md5.c2
-rwxr-xr-xtests/ts/md5/md52
3 files changed, 9 insertions, 9 deletions
diff --git a/tests/expected/md5/md5 b/tests/expected/md5/md5
index 6ca300b37..d6559a779 100644
--- a/tests/expected/md5/md5
+++ b/tests/expected/md5/md5
@@ -1,7 +1,7 @@
-d41d8cd98f00b204e9800998ecf8427e -
-900150983cd24fb0d6963f7d28e17f72 -
-5eb6d580e5f68fde65c3778afb8826ff -
-bd1e13bdaab82581d4dc299eb9a3da0f -
-d81ee4f567972a18f9326540b5d8aeaf -
-9561bd208c0041c673080ed744919b85 -
-d98d58d5562ca4dd47f0f0fe86b2d48f -
+d41d8cd98f00b204e9800998ecf8427e
+900150983cd24fb0d6963f7d28e17f72
+5eb6d580e5f68fde65c3778afb8826ff
+bd1e13bdaab82581d4dc299eb9a3da0f
+d81ee4f567972a18f9326540b5d8aeaf
+9561bd208c0041c673080ed744919b85
+d98d58d5562ca4dd47f0f0fe86b2d48f
diff --git a/tests/helpers/test_md5.c b/tests/helpers/test_md5.c
index 44f6a933d..471580e12 100644
--- a/tests/helpers/test_md5.c
+++ b/tests/helpers/test_md5.c
@@ -24,6 +24,6 @@ int main(void)
for (i = 0; i < MD5LENGTH; i++)
printf( "%02x", digest[i] );
- printf(" -\n");
+ printf("\n");
return 0;
}
diff --git a/tests/ts/md5/md5 b/tests/ts/md5/md5
index 6fe3f147e..57c4d5275 100755
--- a/tests/ts/md5/md5
+++ b/tests/ts/md5/md5
@@ -20,7 +20,7 @@ TS_TOPDIR="${0%/*}/../.."
. $TS_TOPDIR/functions.sh
ts_init "$*"
-> $TS_OUTPUT
+ts_check_test_command "$TS_HELPER_MD5"
cat $TS_SELF/data | while read data
do