diff options
author | Dmitry Sharshakov <sh7dm@outlook.com> | 2019-02-08 23:59:38 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-08 15:59:38 -0500 |
commit | 9ab03389f047e5520c184b9fce4cd5fb2e4804bd (patch) | |
tree | c1b3295aa6788595e4b73d28aeba0b8fdc8f3205 /tools/unit_tests.py | |
parent | 3abaf9edb6877c328402b94fa0bcb6a9e0bbe86d (diff) |
Add --allow-read (#1689)
Co-authored-by: Greg Altman <g.s.altman@gmail.com>
Diffstat (limited to 'tools/unit_tests.py')
-rwxr-xr-x | tools/unit_tests.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/unit_tests.py b/tools/unit_tests.py index 3f9956d43..542db4642 100755 --- a/tools/unit_tests.py +++ b/tools/unit_tests.py @@ -43,12 +43,14 @@ def run_unit_test(deno_exe, permStr, flags=None): # tests by the special string. permW0N0 means allow-write but not allow-net. # See js/test_util.ts for more details. def unit_tests(deno_exe): - run_unit_test(deno_exe, "permW0N0E0R0") - run_unit_test(deno_exe, "permW1N0E0R0", ["--allow-write"]) - run_unit_test(deno_exe, "permW0N1E0R0", ["--allow-net"]) - run_unit_test(deno_exe, "permW0N0E1R0", ["--allow-env"]) - run_unit_test(deno_exe, "permW0N0E0R1", ["--allow-run"]) - run_unit_test(deno_exe, "permW1N0E0R1", ["--allow-run", "--allow-write"]) + run_unit_test(deno_exe, "permR0W0N0E0U0") + run_unit_test(deno_exe, "permR1W0N0E0U0", ["--allow-read"]) + run_unit_test(deno_exe, "permR0W1N0E0U0", ["--allow-write"]) + run_unit_test(deno_exe, "permR1W1N0E0U0", ["--allow-read", "--allow-write"]) + run_unit_test(deno_exe, "permR1W0N1E0U0", ["--allow-read", "--allow-net"]) + run_unit_test(deno_exe, "permR0W0N0E1U0", ["--allow-env"]) + run_unit_test(deno_exe, "permR0W0N0E0U1", ["--allow-run"]) + run_unit_test(deno_exe, "permR0W1N0E0U1", ["--allow-run", "--allow-write"]) # TODO We might accidentally miss some. We should be smarter about which we # run. Maybe we can use the "filtered out" number to check this. |