#!/bin/sh # Собственные проверки уровня 4. Запускать на хосте (Linux/macOS/Git Bash) из корня репозитория. # Поднимает api-ttl (SESSION_TTL_SECONDS=2), запускает student-tests в контейнере tester, гасит api-ttl. set -eu cd "$(dirname "$0")/.." compose() { docker compose --env-file .env "$@"; } compose --profile test up -d --wait api-ttl status=0 MSYS_NO_PATHCONV=1 compose --profile tools run --rm tester python student-tests/test_grade4.py || status=$? compose --profile test stop api-ttl exit $status