ResInsight/scripts/psClang/~advinst.tests.ps1

20 lines
452 B
PowerShell
Raw Permalink Normal View History

2018-10-14 11:15:34 -05:00
. "$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
}
}
}