summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/benchmark.py14
-rwxr-xr-xtools/deno_dir_test.py2
-rwxr-xr-xtools/fetch_test.py2
-rwxr-xr-xtools/http_server.py2
-rw-r--r--tools/repl_test.py2
-rw-r--r--tools/target_test.py2
-rwxr-xr-xtools/throughput_benchmark.py4
-rw-r--r--tools/util.py2
8 files changed, 15 insertions, 15 deletions
diff --git a/tools/benchmark.py b/tools/benchmark.py
index a0e12fa48..c29ca3e8c 100755
--- a/tools/benchmark.py
+++ b/tools/benchmark.py
@@ -20,13 +20,13 @@ import http_server
# The list of the tuples of the benchmark name and arguments
exec_time_benchmarks = [
- ("hello", ["tests/002_hello.ts"]),
- ("relative_import", ["tests/003_relative_import.ts"]),
- ("error_001", ["tests/error_001.ts"]),
- ("cold_hello", ["--reload", "tests/002_hello.ts"]),
- ("cold_relative_import", ["--reload", "tests/003_relative_import.ts"]),
- ("workers_startup", ["tests/workers_startup_bench.ts"]),
- ("workers_round_robin", ["tests/workers_round_robin_bench.ts"]),
+ ("hello", ["cli/tests/002_hello.ts"]),
+ ("relative_import", ["cli/tests/003_relative_import.ts"]),
+ ("error_001", ["cli/tests/error_001.ts"]),
+ ("cold_hello", ["--reload", "cli/tests/002_hello.ts"]),
+ ("cold_relative_import", ["--reload", "cli/tests/003_relative_import.ts"]),
+ ("workers_startup", ["cli/tests/workers_startup_bench.ts"]),
+ ("workers_round_robin", ["cli/tests/workers_round_robin_bench.ts"]),
("text_decoder", ["cli/tests/text_decoder_perf.js"]),
("text_encoder", ["cli/tests/text_encoder_perf.js"]),
]
diff --git a/tools/deno_dir_test.py b/tools/deno_dir_test.py
index c8f98bad1..9e11b8e3b 100755
--- a/tools/deno_dir_test.py
+++ b/tools/deno_dir_test.py
@@ -40,7 +40,7 @@ class TestDenoDir(DenoTestCase):
def run_deno(self, deno_dir=None):
cmd = [
self.deno_exe, "run",
- "http://localhost:4545/tests/subdir/print_hello.ts"
+ "http://localhost:4545/cli/tests/subdir/print_hello.ts"
]
deno_dir_env = {"DENO_DIR": deno_dir} if deno_dir is not None else None
res = run_output(cmd, quiet=True, env=deno_dir_env)
diff --git a/tools/fetch_test.py b/tools/fetch_test.py
index 8bff017d3..4dad99b14 100755
--- a/tools/fetch_test.py
+++ b/tools/fetch_test.py
@@ -23,7 +23,7 @@ class TestFetch(DenoTestCase):
os.path.exists(
os.path.join(
deno_dir,
- "deps/http/localhost_PORT4545/tests/subdir/mod2.ts"))
+ "deps/http/localhost_PORT4545/cli/tests/subdir/mod2.ts"))
finally:
shutil.rmtree(deno_dir)
diff --git a/tools/http_server.py b/tools/http_server.py
index 9b929c15e..871888a4e 100755
--- a/tools/http_server.py
+++ b/tools/http_server.py
@@ -223,7 +223,7 @@ def redirect_server():
# BUT with an extra subdir path
def another_redirect_server():
return base_redirect_server(
- ANOTHER_REDIRECT_PORT, PORT, extra_path_segment="/tests/subdir")
+ ANOTHER_REDIRECT_PORT, PORT, extra_path_segment="/cli/tests/subdir")
# redirect server that points to another redirect server
diff --git a/tools/repl_test.py b/tools/repl_test.py
index 1c4441ebc..aae8a558f 100644
--- a/tools/repl_test.py
+++ b/tools/repl_test.py
@@ -114,7 +114,7 @@ class TestRepl(DenoTestCase):
# def test_async_op(self):
# out, err, code = self.input(
- # "fetch('http://localhost:4545/tests/001_hello.js')" +
+ # "fetch('http://localhost:4545/cli/tests/001_hello.js')" +
# ".then(res => res.text()).then(console.log)",
# sleep=1)
# self.assertEqual(out, 'Promise {}\nconsole.log("Hello World");\n\n')
diff --git a/tools/target_test.py b/tools/target_test.py
index 5a273423e..2df09f9eb 100644
--- a/tools/target_test.py
+++ b/tools/target_test.py
@@ -34,7 +34,7 @@ class TestTarget(DenoTestCase):
def test_exec_path(self):
cmd = [
self.deno_exe, "run", "--allow-run", "--allow-env",
- "tests/exec_path.ts"
+ "cli/tests/exec_path.ts"
]
result = run_output(cmd, quiet=True)
print "exec_path", result
diff --git a/tools/throughput_benchmark.py b/tools/throughput_benchmark.py
index ba80b9909..8b1de13d4 100755
--- a/tools/throughput_benchmark.py
+++ b/tools/throughput_benchmark.py
@@ -21,7 +21,7 @@ def cat(deno_exe, megs):
size = megs * MB
start = time.time()
cmd = deno_exe + " run --allow-read "
- cmd += "tests/cat.ts /dev/zero | head -c %s " % size
+ cmd += "cli/tests/cat.ts /dev/zero | head -c %s " % size
print cmd
subprocess.check_output(cmd, shell=True)
end = time.time()
@@ -32,7 +32,7 @@ def tcp(deno_exe, megs):
size = megs * MB
# Run deno echo server in the background.
args = [
- deno_exe, "run", "--allow-net", "tests/echo_server.ts", SERVER_ADDR
+ deno_exe, "run", "--allow-net", "cli/tests/echo_server.ts", SERVER_ADDR
]
print args
echo_server = subprocess.Popen(args)
diff --git a/tools/util.py b/tools/util.py
index c54158f9b..d49af71ce 100644
--- a/tools/util.py
+++ b/tools/util.py
@@ -21,7 +21,7 @@ executable_suffix = ".exe" if os.name == "nt" else ""
root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
libdeno_path = os.path.join(root_path, "core", "libdeno")
-tests_path = os.path.join(root_path, "tests")
+tests_path = os.path.join(root_path, "cli/tests")
third_party_path = os.path.join(root_path, "third_party")