From 7cabfd86771881248debf04bfb09005c9213f115 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 5 Mar 2013 09:38:46 +0100 Subject: [PATCH] tests: use checksum to detect rev(1) consistency Signed-off-by: Karel Zak --- tests/expected/misc/rev | 3 ++- tests/ts/misc/rev | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/expected/misc/rev b/tests/expected/misc/rev index 4847902991..263923f757 100644 --- a/tests/expected/misc/rev +++ b/tests/expected/misc/rev @@ -1 +1,2 @@ - z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a z y x w v u t s r q p o n m l k j i h g f e d c b a! +53bbf0d98205319cee2ba589e205c68b - +b407c257ed73b43cb992e778f925f7a3 - diff --git a/tests/ts/misc/rev b/tests/ts/misc/rev index d1fba168a9..f36a799b22 100755 --- a/tests/ts/misc/rev +++ b/tests/ts/misc/rev @@ -18,7 +18,9 @@ TS_DESC="rev" . $TS_TOPDIR/functions.sh ts_init "$*" -for I in {0..512}; do printf "%s " {a..z}; done | - $TS_CMD_REV > $TS_OUTPUT 2>&1 +for I in {0..512}; do printf "%s " {a..z}; done | md5sum >> $TS_OUTPUT 2>&1 + +for I in {0..512}; do printf "%s " {a..z}; done | \ + $TS_CMD_REV | md5sum >> $TS_OUTPUT 2>&1 ts_finalize -- 2.47.3