Add execPath function (#1743)

This commit is contained in:
Dmitry Sharshakov 2019-02-15 19:22:02 +03:00 committed by Ryan Dahl
parent 1d7c74e9b5
commit 4dc4329e27
6 changed files with 26 additions and 4 deletions

View file

@ -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",