Skip to content

Commit a2a322d

Browse files
committed
add integration test for hivescan
1 parent 2274684 commit a2a322d

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

tests/hivescan/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
mod testhive;
1+
mod testhive;
2+
mod new_dirty_hive1;

tests/hivescan/new_dirty_hive1.rs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
use std::path::PathBuf;
2+
3+
use assert_cmd::Command;
4+
5+
#[test]
6+
fn scan_new_dirty_hive1() {
7+
let mut cmd = Command::cargo_bin("hivescan").unwrap();
8+
let mut data_path = PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap());
9+
data_path.push("tests");
10+
data_path.push("data");
11+
data_path.push("hivescan");
12+
data_path.push("NewDirtyHive1");
13+
data_path.push("NewDirtyHive");
14+
cmd.arg(data_path).assert().success();
15+
}

0 commit comments

Comments
 (0)