diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-08-01 02:11:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-01 02:11:24 -0700 |
commit | 9f27bf9144b114bc4d7d9da77f7d55486e3d2c78 (patch) | |
tree | b9ff4d83346b1bceee217509415050f4e3ab9c1d /tests/integration/compile_tests.rs | |
parent | f1fc708d816def60c5fc2fe7bb3e43d3d6f75ec6 (diff) |
fix(compile): adhoc codesign mach-o by default (#24824)
Diffstat (limited to 'tests/integration/compile_tests.rs')
-rw-r--r-- | tests/integration/compile_tests.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/integration/compile_tests.rs b/tests/integration/compile_tests.rs index df9ea26df..18d34c862 100644 --- a/tests/integration/compile_tests.rs +++ b/tests/integration/compile_tests.rs @@ -34,6 +34,17 @@ fn compile_basic() { output.assert_matches_text("Welcome to Deno!\n"); } + // On arm64 macOS, check if `codesign -v` passes + #[cfg(all(target_os = "macos", target_arch = "aarch64"))] + { + let output = std::process::Command::new("codesign") + .arg("-v") + .arg(&exe) + .output() + .unwrap(); + assert!(output.status.success()); + } + // now ensure this works when the deno_dir is readonly let readonly_dir = dir.path().join("readonly"); readonly_dir.make_dir_readonly(); |