aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-23 19:25:12 +0100
committerMattias Andrée <maandree@kth.se>2016-03-23 19:25:12 +0100
commit6ba3c832b33c75c636f5be326c324e2d06f6d308 (patch)
tree128d0e95c54621356f9113e373c29d99b4276d49
parentSome checksum tests (diff)
downloadbase-util-tests-6ba3c832b33c75c636f5be326c324e2d06f6d308.tar.gz
base-util-tests-6ba3c832b33c75c636f5be326c324e2d06f6d308.tar.bz2
base-util-tests-6ba3c832b33c75c636f5be326c324e2d06f6d308.tar.xz
add another checksum test: check_multi
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rwxr-xr-x__sum/__test11
1 files changed, 10 insertions, 1 deletions
diff --git a/__sum/__test b/__sum/__test
index c08cd9b..aafba44 100755
--- a/__sum/__test
+++ b/__sum/__test
@@ -135,11 +135,20 @@ check_case ()
rm tmp1 tmp2
}
+check_multi ()
+{
+ $s $(seq 1 5) > tmp1
+ $s $(seq 6 $N) > tmp2
+ $s -c tmp1 tmp2 > /dev/null
+ report $? "check_multi"
+ rm tmp1 tmp2
+}
+
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_stdin_mismatch check_dash_mismatch check_case check_multi
fi
(
for f in $@; do