aboutsummaryrefslogtreecommitdiff
path: root/b3sum/tests/cli_tests.rs
AgeCommit message (Collapse)Author
2025-02-28combine test_check and test_check_tagJack O'Connor
2025-02-28add testsLeah Neukirchen
Adapted from https://github.com/BLAKE3-team/BLAKE3/pull/430/ by dbohdan.
2024-11-26another Windows-style newlines testJack O'Connor
2024-11-25add support for windows newlines in b3sum --checkJack O'Connor
Fixes #222.
2023-06-06add b3sum --seekJack O'Connor
2023-02-04suppress expected stderr prints in b3sum testsJack O'Connor
2023-02-04add a colon to the b3sum warning formatJack O'Connor
This matches what md5sum does.
2023-02-04Add --check summary of failuresjoveian
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
2022-12-13test `b3sum --keyed` with bad key lengthsJack O'Connor
2021-02-28make derive_key() return an arrayJack O'Connor
2020-06-24put the file name in b3sum error outputJack O'Connor
This was previously there, but got dropped in c5c07bb337d0af7522666d05308aaf24eef3709c.
2020-05-23add a test commentJack O'Connor
2020-05-23use wild::args_os to support globbing on WindowsJack O'Connor
2020-05-23add support for --quiet to `b3sum --check`Jack O'Connor
Suggested by @llowrey: https://github.com/BLAKE3-team/BLAKE3/issues/33#issuecomment-629853747
2020-05-14print per-file errros more gracefuly in --checkJack O'Connor
2020-05-13refactor b3sum to support --checkJack O'Connor
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-13switch from assert_cmd to CARGO_BIN_EXE_*Jack O'Connor
2020-05-12add parse_check_lineJack O'Connor
As part of this, reorganize b3sum tests into src/unit_tests.rs and tests/cli_tests.rs.