ResInsight/scripts/psClang/~advinst.tests.ps1
2018-10-18 16:32:37 +02:00

20 lines
452 B
PowerShell

. "$PsScriptRoot\io.ps1"
Describe "ai" {
It "Should build Advanced Installer" {
[string] $advinstRepo = $env:ADVINST
if ($advinstRepo)
{
Push-Location $advinstRepo
[string] $scriptLocation = Canonize-Path -base "$PSScriptRoot" -child "..\clang-build.ps1"
&"$scriptLocation" 2>&1 | Out-Default
[int] $exitCode = $LASTEXITCODE
Pop-Location
Write-Output "$PSScriptRoot"
$exitCode | Should -BeExactly 0
}
}
}