diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2021-03-07 18:50:01 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-07 08:20:01 -0500 |
commit | 74584eef04a0a395d903ec9fcb8d91caf305be41 (patch) | |
tree | 8799cd4fd7f80108c3b9194908a3e46ec5283c48 /cli/tests/integration_tests.rs | |
parent | 2894c0e615bf99e86f80ab1d2c7278be9769a52b (diff) |
fix(cli/compile): do not append .exe depending on target (#9668)
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r-- | cli/tests/integration_tests.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index c6ccf3ba0..de5cc6aae 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -7,6 +7,7 @@ use deno_runtime::deno_fetch::reqwest; use deno_runtime::deno_websocket::tokio_tungstenite; use std::fs; use std::io::{BufRead, Read, Write}; +use std::path::Path; use std::process::Command; use tempfile::TempDir; use test_util as util; @@ -5248,6 +5249,31 @@ console.log("finish"); } #[test] + #[cfg(windows)] + // https://github.com/denoland/deno/issues/9667 + fn compile_windows_ext() { + let dir = TempDir::new().expect("tempdir fail"); + let exe = dir.path().join("welcome_9667"); + let output = util::deno_cmd() + .current_dir(util::root_path()) + .arg("compile") + .arg("--unstable") + .arg("--output") + .arg(&exe) + .arg("--target") + .arg("x86_64-unknown-linux-gnu") + .arg("./test_util/std/examples/welcome.ts") + .stdout(std::process::Stdio::piped()) + .spawn() + .unwrap() + .wait_with_output() + .unwrap(); + assert!(output.status.success()); + let exists = Path::new(&exe).exists(); + assert!(exists, true); + } + + #[test] fn standalone_args() { let dir = TempDir::new().expect("tempdir fail"); let exe = if cfg!(windows) { |