aboutsummaryrefslogtreecommitdiffstats
path: root/cksum-test
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-24 11:00:36 +0100
committerMattias Andrée <maandree@kth.se>2016-03-24 11:00:36 +0100
commita48f65702483dd9db441c094b2696e02a51caf76 (patch)
treeb4722b042264be994392eb19eca719970cee90d5 /cksum-test
parentadd echo tests (diff)
downloadbase-util-tests-a48f65702483dd9db441c094b2696e02a51caf76.tar.gz
base-util-tests-a48f65702483dd9db441c094b2696e02a51caf76.tar.bz2
base-util-tests-a48f65702483dd9db441c094b2696e02a51caf76.tar.xz
add more checksum tests
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rwxr-xr-xcksum-test/test9
1 files changed, 8 insertions, 1 deletions
diff --git a/cksum-test/test b/cksum-test/test
index 8a0cdab..a1488ec 100755
--- a/cksum-test/test
+++ b/cksum-test/test
@@ -72,9 +72,16 @@ dash ()
rm tmp1 tmp2 tmp3
}
+massive ()
+{
+ diff <($s $(cat bytes)) ${algo}-bytes > /dev/null
+ report $? "massive"
+}
+
if test $# = 0; then
- set multiple_files_order multiple_files_sum multiple_files one_file stdin dash
+ set multiple_files_order multiple_files_sum multiple_files \
+ one_file stdin dash massive
fi
(
for f in $@; do