diff options
| author | Casper Beyer <caspervonb@pm.me> | 2021-02-02 19:05:46 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-02 12:05:46 +0100 |
| commit | 6abf126c2a7a451cded8c6b5e6ddf1b69c84055d (patch) | |
| tree | fd94c013a19fcb38954844085821ec1601c20e18 /cli/bench | |
| parent | a2b5d44f1aa9d64f448a2a3cc2001272e2f60b98 (diff) | |
chore: remove std directory (#9361)
This removes the std folder from the tree.
Various parts of the tests are pretty tightly dependent
on std (47 direct imports and 75 indirect imports, not
counting the cli tests that use them as fixtures) so I've
added std as a submodule for now.
Diffstat (limited to 'cli/bench')
| -rw-r--r-- | cli/bench/deno_http_proxy.ts | 2 | ||||
| -rw-r--r-- | cli/bench/http.rs | 2 | ||||
| -rw-r--r-- | cli/bench/main.rs | 20 |
3 files changed, 16 insertions, 8 deletions
diff --git a/cli/bench/deno_http_proxy.ts b/cli/bench/deno_http_proxy.ts index 990014831..fc756f80f 100644 --- a/cli/bench/deno_http_proxy.ts +++ b/cli/bench/deno_http_proxy.ts @@ -1,5 +1,5 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. -import { serve, ServerRequest } from "../std/http/server.ts"; +import { serve, ServerRequest } from "../test_util/std/http/server.ts"; const addr = Deno.args[0] || "127.0.0.1:4500"; const originAddr = Deno.args[1] || "127.0.0.1:4501"; diff --git a/cli/bench/http.rs b/cli/bench/http.rs index cf70a78cc..af7eef942 100644 --- a/cli/bench/http.rs +++ b/cli/bench/http.rs @@ -191,7 +191,7 @@ fn deno_http(deno_exe: &str) -> Result<HttpBenchmarkResult> { "--allow-net", "--reload", "--unstable", - "std/http/bench.ts", + "test_util/std/http/bench.ts", &server_addr(port), ], port, diff --git a/cli/bench/main.rs b/cli/bench/main.rs index 4f6465925..352c93010 100644 --- a/cli/bench/main.rs +++ b/cli/bench/main.rs @@ -79,7 +79,11 @@ const EXEC_TIME_BENCHMARKS: &[(&str, &[&str], Option<i32>)] = &[ ), ( "check", - &["cache", "--reload", "std/examples/chat/server_test.ts"], + &[ + "cache", + "--reload", + "test_util/std/examples/chat/server_test.ts", + ], None, ), ( @@ -88,18 +92,22 @@ const EXEC_TIME_BENCHMARKS: &[(&str, &[&str], Option<i32>)] = &[ "cache", "--reload", "--no-check", - "std/examples/chat/server_test.ts", + "test_util/std/examples/chat/server_test.ts", ], None, ), ( "bundle", - &["bundle", "std/examples/chat/server_test.ts"], + &["bundle", "test_util/std/examples/chat/server_test.ts"], None, ), ( "bundle_no_check", - &["bundle", "--no-check", "std/examples/chat/server_test.ts"], + &[ + "bundle", + "--no-check", + "test_util/std/examples/chat/server_test.ts", + ], None, ), ]; @@ -254,8 +262,8 @@ fn get_binary_sizes(target_dir: &PathBuf) -> Result<HashMap<String, u64>> { } const BUNDLES: &[(&str, &str)] = &[ - ("file_server", "./std/http/file_server.ts"), - ("gist", "./std/examples/gist.ts"), + ("file_server", "./test_util/std/http/file_server.ts"), + ("gist", "./test_util/std/examples/gist.ts"), ]; fn bundle_benchmark(deno_exe: &PathBuf) -> Result<HashMap<String, u64>> { let mut sizes = HashMap::<String, u64>::new(); |
