returned lab1

This commit is contained in:
Khakimov Dmitrij
2026-10-06 19:51:28 +03:00
parent 65003b6119
commit 47a3cd582d
44 changed files with 1863 additions and 2 deletions
+10 -2
View File
@@ -1,10 +1,13 @@
PYTHON ?= python3
PYTHON ?= $(if $(wildcard .venv/bin/python),.venv/bin/python,python3)
GO ?= go
PORT ?= 8080
BASE_URL ?= http://localhost:8080
IMAGE ?= mtusi-messenger:lab1
CA_FILE ?=
ACTION_SCRIPT ?=
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
.PHONY: help check validate test load test-persistence
.PHONY: help run docker-build docker-run check validate test test-own test-all load test-persistence
help:
@echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
@@ -18,6 +21,11 @@ validate:
test:
$(PYTHON) tests/smoke.py --base-url "$(BASE_URL)" $(TLS_ARGS)
test-own:
$(GO) test -race ./...
test-all: check validate test-own
load:
$(PYTHON) tests/load.py --base-url "$(BASE_URL)" $(TLS_ARGS)