summaryrefslogtreecommitdiff
path: root/tools/unit_tests.py
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2018-11-15 20:07:40 -0800
committerRyan Dahl <ry@tinyclouds.org>2018-11-16 12:07:40 +0800
commit48bf4062e4359674e1a417100eb76a6347e77fc1 (patch)
treee52f2c6c63a2afcdf2d5efc059e43c7f55f2c653 /tools/unit_tests.py
parent9b702da9e53b6efbc7a333380bcfb3d57733730e (diff)
First pass at running subprocesses (#1156)
Diffstat (limited to 'tools/unit_tests.py')
-rwxr-xr-xtools/unit_tests.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/unit_tests.py b/tools/unit_tests.py
index 9682aec89..47dfcf886 100755
--- a/tools/unit_tests.py
+++ b/tools/unit_tests.py
@@ -41,10 +41,12 @@ def run_unit_test(deno_exe, permStr, flags=[]):
# 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, "permW0N0E0")
- run_unit_test(deno_exe, "permW1N0E0", ["--allow-write"])
- run_unit_test(deno_exe, "permW0N1E0", ["--allow-net"])
- run_unit_test(deno_exe, "permW0N0E1", ["--allow-env"])
+ 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"])
# 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.