aboutsummaryrefslogtreecommitdiffstats
path: root/__sum/__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 /__sum/__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 '__sum/__test')
-rwxr-xr-x__sum/__test8
1 files changed, 7 insertions, 1 deletions
diff --git a/__sum/__test b/__sum/__test
index aafba44..4b30822 100755
--- a/__sum/__test
+++ b/__sum/__test
@@ -144,11 +144,17 @@ check_multi ()
rm tmp1 tmp2
}
+massive ()
+{
+ diff <($s $(cat bytes)) ${algo}-bytes > /dev/null
+ report $? "massive"
+}
+
if test $# = 0; then
set multiple_files_order multiple_files_delim multiple_files_sum multiple_files one_file \
stdin dash check_file_match check_stdin_match check_dash_match check_file_mismatch \
- check_stdin_mismatch check_dash_mismatch check_case check_multi
+ check_stdin_mismatch check_dash_mismatch check_case check_multi massive
fi
(
for f in $@; do