From a44349dfdfecacdd4ccd343a984b05abb728bf88 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 8 Jan 2021 03:08:51 +0100 Subject: feat: denort binary (#9041) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- cli/tests/integration_tests.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cli/tests/integration_tests.rs') 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, -- cgit v1.2.3