Files
airdef/airdef-mod/tests/wasm_contract.toml
T
Codex 9370fd4ed4
build / mod (push) Failing after 49s
Check fixed radar profiles at the WASM boundary
Refs #144

Co-Authored-By: Codex <codex@openai.com>
2026-11-21 05:31:07 +00:00

123 lines
3.4 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Actual .hmod in the engine sandbox, with default fuel/memory limits.
# Missing render replies exercise fallback paths, not GPU correctness.
[[step]]
ticks = 2
frames = 2
expect.commands = ["airdef"]
[[step]]
command = "airdef capabilities"
[[step]]
command = "airdef deploy patriot"
[[step]]
command = "airdef deploy s400"
[[step]]
command = "airdef ground-cancel 2"
expect.error = "Нет ожидающей заявки RM48U"
# Exercise the typed inventory through the actual WASM command boundary.
[[step]]
command = "airdef ground-load 2"
expect.error = "Нет живого склада с RM48U рядом (60 блоков)"
[[step]]
command = "airdef deploy depot"
[[step]]
command = "airdef ground-load 2"
expect.error = "Склад №3 рядом, но RM48U: 0. Задайте запас: /airdef ground-stock 3 <количество>"
[[step]]
command = "airdef ground-stock 3 2"
expect.feedback = "Sandbox: задан начальный запас склада №3: RM48U 2"
[[step]]
command = "airdef ground-load 2"
expect.feedback = "С-400 №2: загружена RM48U (игровой профиль), ударных 1, ПВО 3; на складе RM48U 1, снятых ракет ПВО 1"
[[step]]
command = "airdef ground-unload 2"
expect.feedback = "С-400 №2: выгружена RM48U; ударных 0, ПВО 4"
# Split battery configuration crosses the same saved command boundary.
[[step]]
command = "airdef battery 2 launcher"
expect.feedback = "№2 С-400: режим launcher"
[[step]]
command = "airdef deploy radar_track"
# A deployed radar keeps its equipment profile; only its emissions can be switched.
[[step]]
command = "airdef radar 4 search"
expect.error = "Профиль РЛС задаётся при размещении (deploy radar_search|radar_track|radar_height); переключение в search не меняет оборудование. Доступно on/off."
[[step]]
command = "airdef radar 4 engagement"
expect.error = "Профиль РЛС задаётся при размещении (deploy radar_search|radar_track|radar_height); переключение в engagement не меняет оборудование. Доступно on/off."
[[step]]
command = "airdef radar 4 off"
expect.feedback = "№4 РЛС дальнего обнаружения: излучение РЛС off"
[[step]]
command = "airdef radar 4 on"
expect.feedback = "№4 РЛС дальнего обнаружения: излучение РЛС on"
[[step]]
command = "airdef radar 2 off"
expect.error = "У комплекса нет активной РЛС"
[[step]]
command = "airdef deploy s500_launcher"
# The wave screen's preset button through the command boundary; an empty wave cannot launch.
[[step]]
command = "airdef preset 0"
expect.feedback = "Готовый: Рой Шахедов"
[[step]]
command = "airdef preset 6"
expect.feedback = "Готовый: Пусто"
[[step]]
command = "airdef raid"
expect.error = "Налёт пуст: выберите типы и число"
[[step]]
command = "airdef wave mix 40 1500"
[[step]]
ticks = 240
frames = 120
[[step]]
command = "airdef clear"
[[step]]
ticks = 140
frames = 10
[[step]]
command = "airdef replay stop"
[[step]]
title-screen = true
ticks = 2
frames = 2
[[step]]
player = { x = 100.5, y = 64.0, z = 100.5 }
clock = { game-time = 500, day-time = 6000 }
ticks = 3
frames = 3
[[step]]
reload = true
ticks = 2
frames = 2
expect.commands = ["airdef"]