mirror of
https://github.com/microsoft/terminal.git
synced 2026-04-12 17:00:25 -04:00
This commit moves the unit and feature tests to a separate stage, which can be retried more easily. Closes #11858
28 lines
742 B
PowerShell
28 lines
742 B
PowerShell
[CmdLetBinding()]
|
|
Param(
|
|
[Parameter(Mandatory=$true, Position=0)][string]$MatchPattern,
|
|
[Parameter(Mandatory=$true, Position=1)][string]$Platform,
|
|
[Parameter(Mandatory=$true, Position=2)][string]$Configuration,
|
|
[Parameter(Mandatory=$false, Position=3)][string]$LogPath,
|
|
[Parameter(Mandatory=$false)][string]$Root = ".\bin\$Platform\$Configuration"
|
|
)
|
|
|
|
$testdlls = Get-ChildItem -Path "$Root" -Recurse -Filter $MatchPattern
|
|
|
|
|
|
$args = @();
|
|
|
|
if ($LogPath)
|
|
{
|
|
$args += '/enablewttlogging';
|
|
$args += '/appendwttlogging';
|
|
$args += "/logFile:$LogPath";
|
|
Write-Host "Wtt Logging Enabled";
|
|
}
|
|
|
|
&"$Root\te.exe" $args $testdlls.FullName
|
|
|
|
if ($lastexitcode -Ne 0) { Exit $lastexitcode }
|
|
|
|
Exit 0
|