mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
b2sum: added test for length option
This commit is contained in:
parent
ae1113d7dc
commit
0798cfe155
1 changed files with 17 additions and 0 deletions
|
@ -125,6 +125,23 @@ fn test_check_sha1() {
|
|||
.stderr_is("");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_check_b2sum_length_option() {
|
||||
let scene = TestScenario::new(util_name!());
|
||||
let at = &scene.fixtures;
|
||||
|
||||
at.write("testf", "foobar\n");
|
||||
at.write("testf.b2sum", "6a testf\n");
|
||||
|
||||
scene
|
||||
.ccmd("b2sum")
|
||||
.arg("--length=8")
|
||||
.arg("-c")
|
||||
.arg(at.subdir.join("testf.b2sum"))
|
||||
.succeeds()
|
||||
.stdout_only("testf: OK\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_check_file_not_found_warning() {
|
||||
let scene = TestScenario::new(util_name!());
|
||||
|
|
Loading…
Reference in a new issue