ЛР 5: очередь и асинхронная обработка изображений

This commit is contained in:
2026-11-11 19:59:42 +03:00
parent 276dbdad8a
commit af485c93d4
54 changed files with 1966 additions and 34 deletions
+11
View File
@@ -0,0 +1,11 @@
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)