1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-11 05:26:05 +02:00
Commit Graph

13 Commits

Author SHA1 Message Date
Jack O'Connor 697ca13550 suppress expected stderr prints in b3sum tests 2023-02-04 10:16:08 -08:00
Jack O'Connor 4c51c06008 add a colon to the b3sum warning format
This matches what md5sum does.
2023-02-04 10:15:25 -08:00
joveian 4c819d01bc Add --check summary of failures
Add a warning to stderr at the end similar to other *sum utilities when --check is used and some files failed verification.

At least the last part of the comment above check_one_checkfile seemed to be incorrect so I removed that comment.

Fixes #283
2023-02-04 10:14:52 -08:00
Jack O'Connor e366618d22 test `b3sum --keyed` with bad key lengths 2022-12-13 15:56:08 -08:00
Jack O'Connor 71d67e0810 make derive_key() return an array 2021-02-28 18:10:59 -05:00
Jack O'Connor e0f193ddc9 put the file name in b3sum error output
This was previously there, but got dropped in
c5c07bb337.
2020-06-24 18:02:16 -04:00
Jack O'Connor 8d6f0f2574 add a test comment 2020-05-23 14:56:43 -04:00
Jack O'Connor 48512ec4f0 use wild::args_os to support globbing on Windows 2020-05-23 12:46:45 -04:00
Jack O'Connor c9a1676942 add support for --quiet to `b3sum --check`
Suggested by @llowrey:
https://github.com/BLAKE3-team/BLAKE3/issues/33#issuecomment-629853747
2020-05-23 12:27:48 -04:00
Jack O'Connor 1d03c7d3fa print per-file errros more gracefuly in --check 2020-05-14 11:19:31 -04:00
Jack O'Connor c5c07bb337 refactor b3sum to support --check
This is an overall cleanup of everything that b3sum is doing, especially
file opening and memory mapping, which makes it easier for the regular
hashing mode to share code with the checking mode.
2020-05-13 18:23:59 -04:00
Jack O'Connor 5030c0f1c3 switch from assert_cmd to CARGO_BIN_EXE_* 2020-05-13 17:47:59 -04:00
Jack O'Connor c6a99dbb23 add parse_check_line
As part of this, reorganize b3sum tests into src/unit_tests.rs and
tests/cli_tests.rs.
2020-05-12 17:09:38 -04:00