summaryrefslogtreecommitdiff
path: root/test_util/src
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-01-08 03:08:51 +0100
committerGitHub <noreply@github.com>2021-01-08 03:08:51 +0100
commita44349dfdfecacdd4ccd343a984b05abb728bf88 (patch)
tree690b5047cc54d62ce27013ebb199e9bdc7de0937 /test_util/src
parente61e81eb57351782862aa50775ce4348f10b1856 (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 'test_util/src')
-rw-r--r--test_util/src/lib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs
index 262084af7..3d5c60175 100644
--- a/test_util/src/lib.rs
+++ b/test_util/src/lib.rs
@@ -106,6 +106,15 @@ pub fn deno_exe_path() -> PathBuf {
p
}
+pub fn denort_exe_path() -> PathBuf {
+ // Something like /Users/rld/src/deno/target/debug/deps/denort
+ let mut p = target_dir().join("denort");
+ if cfg!(windows) {
+ p.set_extension("exe");
+ }
+ p
+}
+
pub fn prebuilt_tool_path(tool: &str) -> PathBuf {
let mut exe = tool.to_string();
exe.push_str(if cfg!(windows) { ".exe" } else { "" });