feat(harness): systemd-юниты + Lima-конфиг + E2E-харнесс (файлы)

systemd/ (target/data.mount/firstboot/machineid/power/settings/shell + dbus-policy + journald/zram/oomd):
ordering data.mount->firstboot->machineid->dbus->power+settings->shell; Requires+After firstboot; OOMScoreAdjust.
lima/shturman.yaml (vz, Ubuntu ARM64, /data loopback, провижининг). tests/e2e/run.sh (каркас приёмки).
justfile: vm-up/down/reset/shell, run, e2e, shell-frame. Валидация — часть 2 (поднятие Lima).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Alexander <akotenev2003@gmail.com>
This commit is contained in:
2026-06-24 13:26:45 +03:00
parent 9d0b5b5aa7
commit bc2c0b8cfd
14 changed files with 287 additions and 0 deletions
+32
View File
@@ -57,3 +57,35 @@ plugin-dev-run path:
# Vehicle Simulator (плейсхолдер; домен E, v2)
sim:
@echo "Vehicle Simulator — v2 (домен E): vcan + ELM327-emu; каркас в sim/."
# --- Lima-VM (часть 2 Плана 5: нужен limactl — brew install lima) ---
# поднять dev-VM (создание + провижининг)
vm-up:
limactl start --name=shturman lima/shturman.yaml
# остановить VM
vm-down:
limactl stop shturman
# шелл в VM
vm-shell:
limactl shell shturman
# пересоздать VM «с нуля» (сброс — ничего на хосте не ломаем)
vm-reset:
-limactl stop shturman
-limactl delete shturman
limactl start --name=shturman lima/shturman.yaml
# собрать + развернуть + поднять target в VM (boot → сервисы → кадр)
run:
limactl shell shturman -- bash -lc 'cd /shturman && bash tests/e2e/run.sh'
# сквозной E2E в VM (приёмка v0.1/v0.6 + шагающий скелет)
e2e:
limactl shell shturman -- bash -lc 'cd /shturman && bash tests/e2e/run.sh'
# ручная проверка кадра: на хосте — окно Slint (headless PNG-screenshot — часть 2/Lima)
shell-frame:
cargo run -p shturman-shell