param([string]$BaseUrl = 'http://localhost:8085') $ErrorActionPreference = 'Stop' Set-Location (Join-Path $PSScriptRoot '..') function Invoke-Check([string[]]$Arguments) { & py @Arguments if ($LASTEXITCODE -ne 0) { throw "Verification failed: $($Arguments[0])" } } Invoke-Check -Arguments @('scripts/check_contract.py') Invoke-Check -Arguments @('tests/smoke.py', '--base-url', $BaseUrl) Invoke-Check -Arguments @('scripts/verify-lab5.py', '--base-url', $BaseUrl) Invoke-Check -Arguments @('tests/resilience.py', '--mode', 'persistence', '--action-script', 'scripts/restart.cmd', '--base-url', $BaseUrl)