summaryrefslogtreecommitdiff
path: root/tools/test.py
diff options
context:
space:
mode:
authorDmitry Sharshakov <sh7dm@outlook.com>2019-02-15 19:22:02 +0300
committerRyan Dahl <ry@tinyclouds.org>2019-02-15 11:22:02 -0500
commit4dc4329e270f617697154ca62a828cce3b46b348 (patch)
tree54edb5a9d3374fa6470fdc9ab5c50b9738dd4a35 /tools/test.py
parent1d7c74e9b5c416c58b66246a6bbc907399fe9083 (diff)
Add execPath function (#1743)
Diffstat (limited to 'tools/test.py')
-rwxr-xr-xtools/test.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/test.py b/tools/test.py
index 9e43dca3e..5d08e59d1 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -38,6 +38,12 @@ def test_no_color(deno_exe):
print green_ok()
+def exec_path_test(deno_exe):
+ cmd = [deno_exe, "tests/exec_path.ts"]
+ output = run_output(cmd)
+ assert deno_exe in output.strip()
+
+
def main(argv):
if len(argv) == 2:
build_dir = sys.argv[1]
@@ -59,6 +65,8 @@ def main(argv):
deno_exe = os.path.join(build_dir, "deno" + executable_suffix)
check_exists(deno_exe)
+ exec_path_test(deno_exe)
+
# Internal tools testing
run([
"node", "./node_modules/.bin/ts-node", "--project",