Files
trail-mate/apps/nrf52_node/tests/nrf52_node_app_shell_smoke.cpp
T
vicliu bf7068b02b 0.1.26-alpha release
* refactor: render chat rows from presentation state

* Fix Meshtastic channel sync and add MeshCore CN preset

* Add granular chat notification settings

* Add SD settings backup and restore

* Prepare 0.1.26-alpha release

---------

Co-authored-by: vicliu624 <vicliu@outlook.com>
2026-05-19 16:04:42 +08:00

29 lines
1.2 KiB
C++

#include "nrf52_node_app_shell.h"
#include <cassert>
#include <cstring>
int main()
{
trailmate::apps::nrf52_node::Nrf52NodeAppShell shell;
assert(shell.validate());
const auto& config = shell.config();
assert(std::strcmp(config.target_id, "gat562_mesh_evb_pro") == 0);
assert(std::strcmp(shell.targetId(), "gat562_mesh_evb_pro") == 0);
assert(std::strcmp(config.target_family, "nrf52_node") == 0);
assert(std::strcmp(config.default_ux_pack_id, "tiny_node_status") == 0);
assert(std::strcmp(shell.activeUxPackId(), "tiny_node_status") == 0);
assert(shell.targetProfile() != nullptr);
assert(shell.targetProfile()->renderer == product_composition::TargetRenderer::Headless);
assert(std::strcmp(config.historical_generic_root_name,
"removed root esp_pio") == 0);
assert(std::strcmp(config.historical_board_root_name,
"removed root gat562_mesh_evb_pro") == 0);
assert(std::strcmp(config.historical_role,
"pre-refactor PlatformIO/nRF52 implementation roots") == 0);
assert(std::strcmp(config.replacement_owner,
"apps/nrf52_node + builds/pio_nrf52 + boards/gat562_mesh_evb_pro") == 0);
return 0;
}