@@ -95,5 +95,22 @@ $results += Test-SubscribeSeesChange `
|
||||
-DriverWriteArgs (@("write") + $commonAbLegacy + @("-a", $Address, "-t", "Int", "-v", $subValue)) `
|
||||
-ExpectedValue "$subValue"
|
||||
|
||||
# PR 7 — contiguous array read smoke. The default `--tag=N7[120]` in the Docker
|
||||
# fixture's docker-compose.yml has plenty of room for `,10`; against real hardware
|
||||
# the seeded N7 file just needs at least 10 words. Asserts the CLI exits 0 (the
|
||||
# driver issued one PCCC frame for the whole block) — the per-element values are
|
||||
# whatever the device currently holds.
|
||||
Write-Header "Array contiguous read"
|
||||
$arrayResult = Invoke-Cli -Cli $abLegacyCli `
|
||||
-Args (@("read") + $commonAbLegacy + @("-a", "N7:0,10", "-t", "Int"))
|
||||
if ($arrayResult.ExitCode -eq 0) {
|
||||
Write-Pass "array read N7:0,10 succeeded"
|
||||
$results += @{ Passed = $true }
|
||||
} else {
|
||||
Write-Fail "array read N7:0,10 exit=$($arrayResult.ExitCode)"
|
||||
Write-Host $arrayResult.Output
|
||||
$results += @{ Passed = $false; Reason = "array read exit $($arrayResult.ExitCode)" }
|
||||
}
|
||||
|
||||
Write-Summary -Title "AB Legacy e2e" -Results $results
|
||||
if ($results | Where-Object { -not $_.Passed }) { exit 1 }
|
||||
|
||||
Reference in New Issue
Block a user