summaryrefslogtreecommitdiff
path: root/cli/tests/DenoWinRunner.ps1
diff options
context:
space:
mode:
authorMaayan Hanin <maayan.asa.hanin@gmail.com>2020-07-09 22:06:51 +0300
committerGitHub <noreply@github.com>2020-07-09 21:06:51 +0200
commitedb7a0eead3604316b3cca2ac9122c5599445a63 (patch)
treee8d7fe06992decf52c81678b4c000a6edeb922fd /cli/tests/DenoWinRunner.ps1
parent202e7fa6ad366ee56a6d070e94eaecb6dbc745bf (diff)
fix(cli): panic when stdio is null on windows (#6528)
Fixes: #6409
Diffstat (limited to 'cli/tests/DenoWinRunner.ps1')
-rw-r--r--cli/tests/DenoWinRunner.ps110
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/DenoWinRunner.ps1 b/cli/tests/DenoWinRunner.ps1
new file mode 100644
index 000000000..203b5d36c
--- /dev/null
+++ b/cli/tests/DenoWinRunner.ps1
@@ -0,0 +1,10 @@
+$Source = [IO.File]::ReadAllText("$PSScriptRoot\DenoWinRunner.cs")
+$denoExePath = $args[0]
+$scriptPath = $args[1]
+$constraints = $args[2]
+$timeout = 5000;
+Add-Type -TypeDefinition $Source -Language CSharp
+Write-Output("Running Deno script: " + $args[1])
+$code = [DenoWinRunner]::RunDenoScript($denoExePath, $scriptPath, $constraints, $timeout)
+Write-Output("Deno.exe or the test wrapper has exited with code: $code")
+exit $code