mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-07 16:25:01 +03:00
AppVeyor: renew github token, renamed APPVEYOR_REPO_TAG to upper case,
added vpntest.exe to test memory
This commit is contained in:
18
.ci/appveyor-vpntest.ps1
Normal file
18
.ci/appveyor-vpntest.ps1
Normal file
@ -0,0 +1,18 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
# ('s', 'c', 'b', 'sm', 'cm') ??
|
||||
('s', 'c', 'b') | % {
|
||||
|
||||
[String] $mode = $_
|
||||
Write-Host "testing: $mode"
|
||||
|
||||
$t = (Write-Output "q\n" | & .\build\vpntest.exe $mode | Select-String -Pattern 'NO MEMORY LEAKS' -CaseSensitive)
|
||||
|
||||
if( ($t).Count -ne 1){
|
||||
Write-Error 'failed'
|
||||
return $false
|
||||
}else{
|
||||
Write-Host 'ok'
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user