19 lines
665 B
PowerShell
19 lines
665 B
PowerShell
param(
|
|
[string]$FixturePath = (Join-Path $PSScriptRoot '..\ParkrobTrajplanner\PathSmoothing\Test\Fixtures\path-smoothing-fixtures.json')
|
|
)
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
$hostProject = Join-Path $PSScriptRoot 'PathSmoothingPngVerificationHost\PathSmoothingPngVerificationHost.csproj'
|
|
if (-not (Test-Path -LiteralPath $hostProject)) {
|
|
throw "Path smoothing PNG verification host was not found: $hostProject"
|
|
}
|
|
|
|
$resolvedFixturePath = (Resolve-Path -LiteralPath $FixturePath).Path
|
|
& dotnet run --project $hostProject --no-restore -- $resolvedFixturePath
|
|
if ($LASTEXITCODE -ne 0) {
|
|
exit $LASTEXITCODE
|
|
}
|
|
|
|
Write-Output 'Path smoothing PNG checks passed.'
|