From 1a51f2392db731fe0c1aa0ccd00da6769d254e66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 24 Nov 2021 12:24:13 +0100 Subject: chore: speed up compat tests (#12884) This commit speeds up compat tests by using local copy of "deno_std" instead of downloading it from https://deno.land for each test. Additionally type checking is skipped. --- test_util/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test_util/src') diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index 06ca6464d..857884efc 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -105,6 +105,10 @@ pub fn third_party_path() -> PathBuf { root_path().join("third_party") } +pub fn std_path() -> PathBuf { + root_path().join("test_util").join("std") +} + pub fn target_dir() -> PathBuf { let current_exe = std::env::current_exe().unwrap(); let target_dir = current_exe.parent().unwrap().parent().unwrap(); @@ -1655,6 +1659,7 @@ pub struct CheckOutputIntegrationTest { pub output_str: Option<&'static str>, pub exit_code: i32, pub http_server: bool, + pub envs: Vec<(String, String)>, } impl CheckOutputIntegrationTest { @@ -1675,6 +1680,7 @@ impl CheckOutputIntegrationTest { println!("deno_exe args {}", self.args); println!("deno_exe testdata path {:?}", &testdata_dir); command.args(args); + command.envs(self.envs.clone()); command.current_dir(&testdata_dir); command.stdin(Stdio::piped()); let writer_clone = writer.try_clone().unwrap(); -- cgit v1.2.3