diff options
author | Mattias Andrée <maandree@kth.se> | 2016-03-23 19:25:12 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-03-23 19:25:12 +0100 |
commit | 6ba3c832b33c75c636f5be326c324e2d06f6d308 (patch) | |
tree | 128d0e95c54621356f9113e373c29d99b4276d49 /__sum/__test | |
parent | Some checksum tests (diff) | |
download | base-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>
Diffstat (limited to '__sum/__test')
-rwxr-xr-x | __sum/__test | 11 |
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 |