Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Jul 27, 2024
1 parent 9313fd1 commit c3b126b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
Binary file removed tests/.integration_test.rs.swp
Binary file not shown.
29 changes: 12 additions & 17 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,26 +74,21 @@ fn test_macho(size: usize, sign: bool) {
}

#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
{
if sign {
drop(out);
// Run the output
let output = std::process::Command::new(&_path).output().unwrap();
let stderr = String::from_utf8_lossy(&output.stderr);
println!("{}", stderr);
assert_eq!(output.status.success(), sign);

if sign {
// Verify the signature
let output = std::process::Command::new("codesign")
.arg("--verify")
.arg("--deep")
.arg("--strict")
.arg("--verbose=2")
.arg(&_path)
.output()
.unwrap();
assert!(output.status.success());
}
assert!(output.status.success());
// Verify the signature
let output = std::process::Command::new("codesign")
.arg("--verify")
.arg("--deep")
.arg("--strict")
.arg("--verbose=2")
.arg(&_path)
.output()
.unwrap();
assert!(output.status.success());
}
}

Expand Down

0 comments on commit c3b126b

Please sign in to comment.