[functional-tests] Port thin_rmap tests to Rust.

cargo test
This commit is contained in:
Joe Thornber
2020-08-03 10:47:03 +01:00
parent ad29fe65fa
commit 9552cb4817
5 changed files with 110 additions and 68 deletions

View File

@@ -23,7 +23,7 @@ fn accepts_version() -> Result<()> {
Ok(())
}
const USAGE: &'static str = "Usage: thin_check [options] {device|file}\nOptions:\n {-q|--quiet}\n {-h|--help}\n {-V|--version}\n {-m|--metadata-snap}\n {--override-mapping-root}\n {--clear-needs-check-flag}\n {--ignore-non-fatal-errors}\n {--skip-mappings}\n {--super-block-only}";
const USAGE: &str = "Usage: thin_check [options] {device|file}\nOptions:\n {-q|--quiet}\n {-h|--help}\n {-V|--version}\n {-m|--metadata-snap}\n {--override-mapping-root}\n {--clear-needs-check-flag}\n {--ignore-non-fatal-errors}\n {--skip-mappings}\n {--super-block-only}";
#[test]
fn accepts_h() -> Result<()> {