mirror of
https://github.com/bybrooklyn/openbitdo.git
synced 2026-03-19 12:12:57 -04:00
Bootstrap OpenBitdo clean-room SDK and reliability milestone
This commit is contained in:
17
sdk/tests/cleanroom_guard.rs
Normal file
17
sdk/tests/cleanroom_guard.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
use std::path::PathBuf;
|
||||
use std::process::Command;
|
||||
|
||||
#[test]
|
||||
fn guard_script_passes() {
|
||||
let manifest = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
let sdk_root = manifest.join("../..");
|
||||
let script = sdk_root.join("scripts/cleanroom_guard.sh");
|
||||
|
||||
let status = Command::new("bash")
|
||||
.arg(script)
|
||||
.current_dir(&sdk_root)
|
||||
.status()
|
||||
.expect("run cleanroom_guard.sh");
|
||||
|
||||
assert!(status.success());
|
||||
}
|
||||
Reference in New Issue
Block a user