diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-01-08 03:08:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-08 03:08:51 +0100 |
commit | a44349dfdfecacdd4ccd343a984b05abb728bf88 (patch) | |
tree | 690b5047cc54d62ce27013ebb199e9bdc7de0937 /cli/tests/integration_tests.rs | |
parent | e61e81eb57351782862aa50775ce4348f10b1856 (diff) |
feat: denort binary (#9041)
This commit adds new binary target called "denort".
It is a "lite" version of "deno" binary that can only execute
code embedded inside the binary itself.
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r-- | cli/tests/integration_tests.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index aabeb1f77..20e391171 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -5036,6 +5036,17 @@ fn standalone_runtime_flags() { .contains("PermissionDenied: write access")); } +#[test] +fn denort_direct_use_error() { + let status = Command::new(util::denort_exe_path()) + .current_dir(util::root_path()) + .spawn() + .unwrap() + .wait() + .unwrap(); + assert!(!status.success()); +} + fn concat_bundle( files: Vec<(PathBuf, String)>, bundle_path: &Path, |