mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 06:26:14 -05:00
8 lines
487 B
PowerShell
8 lines
487 B
PowerShell
[CmdletBinding()]
|
|
param([string]$MsysRoot = 'C:\msys64', [string]$Prefix = $env:OPENCONNECT_WINDOWS_PREFIX,
|
|
[ValidateSet('mingw64','ucrt64','clangarm64')][string]$MsysSubsystem = 'mingw64')
|
|
$repo = Split-Path $PSScriptRoot -Parent
|
|
if (!$Prefix) { $Prefix = Join-Path $repo 'target\native-windows' }
|
|
& "$MsysRoot\usr\bin\bash.exe" "$PSScriptRoot/test-openconnect-windows.sh" $repo $Prefix $MsysSubsystem
|
|
if ($LASTEXITCODE -ne 0) { throw 'Native OpenConnect packet-pipe tests failed.' }
|