1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-14 13:40:39 +03:00
SoftEtherVPN/.ci/appveyor-vpntest.ps1

21 lines
376 B
PowerShell
Raw Normal View History

$ErrorActionPreference = 'Stop'
# ('s', 'c', 'b', 'sm', 'cm') ??
('s', 'c', 'b') | % {
[String] $mode = $_
Write-Host "testing: $mode"
2019-08-04 12:42:52 +03:00
$full = (Write-Output "q\n" | & .\build\vpntest.exe $mode)
$t = ($full | Select-String -Pattern 'NO MEMORY LEAKS' -CaseSensitive)
if( ($t).Count -ne 1){
2019-08-04 12:42:52 +03:00
$full
Write-Error 'failed'
return $false
}else{
Write-Host 'ok'
}
}