-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
323cd3d
commit 7b41c35
Showing
206 changed files
with
2,225 additions
and
59 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//! This file has been auto-generated, please do not modify manually | ||
//! To regenerate this file re-run `cargo xtask generate tests` from the project root | ||
use std::fs; | ||
use std::process::{Command, Stdio}; | ||
|
||
#[test] | ||
fn api_reactor() -> anyhow::Result<()> { | ||
#[cfg(not(windows))] | ||
{ | ||
let wasi_file = "./tests/gen/api_reactor.component.wasm"; | ||
let _ = fs::remove_dir_all("./tests/rundir/deno_api_reactor"); | ||
let mut cmd1 = Command::new("node"); | ||
cmd1.arg("./src/jco.js"); | ||
cmd1.arg("run"); | ||
cmd1.env("JCO_RUN_PATH", "deno") | ||
.env("JCO_RUN_ARGS", "run --importmap ./tests/importmap.json -A"); | ||
cmd1.arg("--jco-dir"); | ||
cmd1.arg("./tests/rundir/deno_api_reactor"); | ||
cmd1.arg("--jco-import"); | ||
cmd1.arg("./tests/virtualenvs/base.js"); | ||
cmd1.arg("--jco-import-bindings"); | ||
cmd1.arg("hybrid"); | ||
cmd1.arg(wasi_file); | ||
cmd1.args(&["hello", "this", "", "is an argument", "with 🚩 emoji"]); | ||
cmd1.stdin(Stdio::null()); | ||
let mut cmd1_child = cmd1.spawn().expect("failed to spawn test program"); | ||
let status = cmd1_child.wait().expect("failed to wait on child"); | ||
assert!(status.success(), "test execution failed"); | ||
} | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//! This file has been auto-generated, please do not modify manually | ||
//! To regenerate this file re-run `cargo xtask generate tests` from the project root | ||
use std::fs; | ||
use std::process::{Command, Stdio}; | ||
|
||
#[test] | ||
fn api_time() -> anyhow::Result<()> { | ||
#[cfg(not(windows))] | ||
{ | ||
let wasi_file = "./tests/gen/api_time.component.wasm"; | ||
let _ = fs::remove_dir_all("./tests/rundir/deno_api_time"); | ||
let mut cmd1 = Command::new("node"); | ||
cmd1.arg("./src/jco.js"); | ||
cmd1.arg("run"); | ||
cmd1.env("JCO_RUN_PATH", "deno") | ||
.env("JCO_RUN_ARGS", "run --importmap ./tests/importmap.json -A"); | ||
cmd1.arg("--jco-dir"); | ||
cmd1.arg("./tests/rundir/deno_api_time"); | ||
cmd1.arg("--jco-import"); | ||
cmd1.arg("./tests/virtualenvs/fakeclocks.js"); | ||
cmd1.arg("--jco-import-bindings"); | ||
cmd1.arg("hybrid"); | ||
cmd1.arg(wasi_file); | ||
cmd1.args(&["hello", "this", "", "is an argument", "with 🚩 emoji"]); | ||
cmd1.stdin(Stdio::null()); | ||
let mut cmd1_child = cmd1.spawn().expect("failed to spawn test program"); | ||
let status = cmd1_child.wait().expect("failed to wait on child"); | ||
assert!(status.success(), "test execution failed"); | ||
} | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//! This file has been auto-generated, please do not modify manually | ||
//! To regenerate this file re-run `cargo xtask generate tests` from the project root | ||
use std::fs; | ||
use std::process::{Command, Stdio}; | ||
|
||
#[test] | ||
fn cli_args() -> anyhow::Result<()> { | ||
#[cfg(not(windows))] | ||
{ | ||
let wasi_file = "./tests/gen/cli_args.component.wasm"; | ||
let _ = fs::remove_dir_all("./tests/rundir/deno_cli_args"); | ||
let mut cmd1 = Command::new("node"); | ||
cmd1.arg("./src/jco.js"); | ||
cmd1.arg("run"); | ||
cmd1.env("JCO_RUN_PATH", "deno") | ||
.env("JCO_RUN_ARGS", "run --importmap ./tests/importmap.json -A"); | ||
cmd1.arg("--jco-dir"); | ||
cmd1.arg("./tests/rundir/deno_cli_args"); | ||
cmd1.arg("--jco-import"); | ||
cmd1.arg("./tests/virtualenvs/base.js"); | ||
cmd1.arg("--jco-import-bindings"); | ||
cmd1.arg("hybrid"); | ||
cmd1.arg(wasi_file); | ||
cmd1.args(&["hello", "this", "", "is an argument", "with 🚩 emoji"]); | ||
cmd1.stdin(Stdio::null()); | ||
let mut cmd1_child = cmd1.spawn().expect("failed to spawn test program"); | ||
let status = cmd1_child.wait().expect("failed to wait on child"); | ||
assert!(status.success(), "test execution failed"); | ||
} | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//! This file has been auto-generated, please do not modify manually | ||
//! To regenerate this file re-run `cargo xtask generate tests` from the project root | ||
use std::fs; | ||
use std::process::{Command, Stdio}; | ||
|
||
#[test] | ||
fn cli_default_clocks() -> anyhow::Result<()> { | ||
#[cfg(not(windows))] | ||
{ | ||
let wasi_file = "./tests/gen/cli_default_clocks.component.wasm"; | ||
let _ = fs::remove_dir_all("./tests/rundir/deno_cli_default_clocks"); | ||
let mut cmd1 = Command::new("node"); | ||
cmd1.arg("./src/jco.js"); | ||
cmd1.arg("run"); | ||
cmd1.env("JCO_RUN_PATH", "deno") | ||
.env("JCO_RUN_ARGS", "run --importmap ./tests/importmap.json -A"); | ||
cmd1.arg("--jco-dir"); | ||
cmd1.arg("./tests/rundir/deno_cli_default_clocks"); | ||
cmd1.arg("--jco-import"); | ||
cmd1.arg("./tests/virtualenvs/base.js"); | ||
cmd1.arg("--jco-import-bindings"); | ||
cmd1.arg("hybrid"); | ||
cmd1.arg(wasi_file); | ||
cmd1.args(&["hello", "this", "", "is an argument", "with 🚩 emoji"]); | ||
cmd1.stdin(Stdio::null()); | ||
let mut cmd1_child = cmd1.spawn().expect("failed to spawn test program"); | ||
let status = cmd1_child.wait().expect("failed to wait on child"); | ||
assert!(status.success(), "test execution failed"); | ||
} | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//! This file has been auto-generated, please do not modify manually | ||
//! To regenerate this file re-run `cargo xtask generate tests` from the project root | ||
use std::fs; | ||
use std::process::{Command, Stdio}; | ||
|
||
#[test] | ||
fn cli_env() -> anyhow::Result<()> { | ||
#[cfg(not(windows))] | ||
{ | ||
let wasi_file = "./tests/gen/cli_env.component.wasm"; | ||
let _ = fs::remove_dir_all("./tests/rundir/deno_cli_env"); | ||
let mut cmd1 = Command::new("node"); | ||
cmd1.arg("./src/jco.js"); | ||
cmd1.arg("run"); | ||
cmd1.env("JCO_RUN_PATH", "deno") | ||
.env("JCO_RUN_ARGS", "run --importmap ./tests/importmap.json -A"); | ||
cmd1.arg("--jco-dir"); | ||
cmd1.arg("./tests/rundir/deno_cli_env"); | ||
cmd1.arg("--jco-import"); | ||
cmd1.arg("./tests/virtualenvs/envtest.js"); | ||
cmd1.arg("--jco-import-bindings"); | ||
cmd1.arg("hybrid"); | ||
cmd1.arg(wasi_file); | ||
cmd1.args(&["hello", "this", "", "is an argument", "with 🚩 emoji"]); | ||
cmd1.stdin(Stdio::null()); | ||
let mut cmd1_child = cmd1.spawn().expect("failed to spawn test program"); | ||
let status = cmd1_child.wait().expect("failed to wait on child"); | ||
assert!(status.success(), "test execution failed"); | ||
} | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//! This file has been auto-generated, please do not modify manually | ||
//! To regenerate this file re-run `cargo xtask generate tests` from the project root | ||
use std::fs; | ||
use std::process::{Command, Stdio}; | ||
|
||
#[test] | ||
fn cli_exit_default() -> anyhow::Result<()> { | ||
#[cfg(not(windows))] | ||
{ | ||
let wasi_file = "./tests/gen/cli_exit_default.component.wasm"; | ||
let _ = fs::remove_dir_all("./tests/rundir/deno_cli_exit_default"); | ||
let mut cmd1 = Command::new("node"); | ||
cmd1.arg("./src/jco.js"); | ||
cmd1.arg("run"); | ||
cmd1.env("JCO_RUN_PATH", "deno") | ||
.env("JCO_RUN_ARGS", "run --importmap ./tests/importmap.json -A"); | ||
cmd1.arg("--jco-dir"); | ||
cmd1.arg("./tests/rundir/deno_cli_exit_default"); | ||
cmd1.arg("--jco-import"); | ||
cmd1.arg("./tests/virtualenvs/base.js"); | ||
cmd1.arg("--jco-import-bindings"); | ||
cmd1.arg("hybrid"); | ||
cmd1.arg(wasi_file); | ||
cmd1.args(&["hello", "this", "", "is an argument", "with 🚩 emoji"]); | ||
cmd1.stdin(Stdio::null()); | ||
let mut cmd1_child = cmd1.spawn().expect("failed to spawn test program"); | ||
let status = cmd1_child.wait().expect("failed to wait on child"); | ||
assert!(status.success(), "test execution failed"); | ||
} | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//! This file has been auto-generated, please do not modify manually | ||
//! To regenerate this file re-run `cargo xtask generate tests` from the project root | ||
use std::fs; | ||
use std::process::{Command, Stdio}; | ||
|
||
#[test] | ||
fn cli_exit_failure() -> anyhow::Result<()> { | ||
#[cfg(not(windows))] | ||
{ | ||
let wasi_file = "./tests/gen/cli_exit_failure.component.wasm"; | ||
let _ = fs::remove_dir_all("./tests/rundir/deno_cli_exit_failure"); | ||
let mut cmd1 = Command::new("node"); | ||
cmd1.arg("./src/jco.js"); | ||
cmd1.arg("run"); | ||
cmd1.env("JCO_RUN_PATH", "deno") | ||
.env("JCO_RUN_ARGS", "run --importmap ./tests/importmap.json -A"); | ||
cmd1.arg("--jco-dir"); | ||
cmd1.arg("./tests/rundir/deno_cli_exit_failure"); | ||
cmd1.arg("--jco-import"); | ||
cmd1.arg("./tests/virtualenvs/base.js"); | ||
cmd1.arg("--jco-import-bindings"); | ||
cmd1.arg("hybrid"); | ||
cmd1.arg(wasi_file); | ||
cmd1.args(&["hello", "this", "", "is an argument", "with 🚩 emoji"]); | ||
cmd1.stdin(Stdio::null()); | ||
let mut cmd1_child = cmd1.spawn().expect("failed to spawn test program"); | ||
let status = cmd1_child.wait().expect("failed to wait on child"); | ||
assert!(!status.success(), "test execution failed"); | ||
} | ||
Ok(()) | ||
} |
Oops, something went wrong.