summaryrefslogtreecommitdiff
path: root/scripts/Run-ElevatedE2E.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Run-ElevatedE2E.ps1')
-rw-r--r--scripts/Run-ElevatedE2E.ps118
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/Run-ElevatedE2E.ps1 b/scripts/Run-ElevatedE2E.ps1
new file mode 100644
index 0000000..7a87a51
--- /dev/null
+++ b/scripts/Run-ElevatedE2E.ps1
@@ -0,0 +1,18 @@
+param(
+ [ValidateSet('stdio', 'http')]
+ [string]$Transport,
+ [ValidateSet('127.0.0.1', '::1')]
+ [string]$HttpHost = '127.0.0.1',
+ [string]$EvidencePath
+)
+
+$ErrorActionPreference = 'Continue'
+try {
+ & (Join-Path $PSScriptRoot 'Operational-E2E.ps1') -Transport $Transport -HttpHost $HttpHost *>&1 | Tee-Object -FilePath $EvidencePath
+}
+catch {
+ $_ | Out-String | Tee-Object -FilePath $EvidencePath -Append
+ exit 1
+}
+if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
+exit 0