param([Parameter(Mandatory)][string]$OutputDirectory) # One-command, firmware-free WPR qualification. Run in an elevated PowerShell. $ErrorActionPreference = 'Stop' $p1Repo = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '../..')) $p1Out = [IO.Path]::GetFullPath($(if ([IO.Path]::IsPathRooted($OutputDirectory)) { $OutputDirectory } else { Join-Path $p1Repo $OutputDirectory })) $p1Probe = Join-Path $p1Repo '.starlet_diag_p1/Binaries/Tests/TraceProbeP1.exe' $p1Network = Join-Path $p1Repo '.starlet_diag_p1/Binaries/Network' foreach ($p1Input in @($p1Probe, $p1Network)) { if (-not (Test-Path -LiteralPath $p1Input)) { throw "Missing local probe dependency: $p1Input" } } & (Join-Path $PSScriptRoot 'Capture-P1.ps1') ` -OutputDirectory $p1Out -Seconds 60 -ProbeExecutable $p1Probe ` -ProbeArguments @((Join-Path $p1Out 'synthetic.journal'), $p1Network)