mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-02 11:55:56 +00:00
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
#include <Arduino.h>
|
|
#include <unity.h>
|
|
|
|
// Include modular test modules
|
|
#include "modules/test_encrypted.h"
|
|
#include "modules/test_nodeinfo.h"
|
|
#include "modules/test_position.h"
|
|
#include "modules/test_telemetry.h"
|
|
#include "modules/test_text_message.h"
|
|
#include "modules/test_waypoint.h"
|
|
|
|
void setup()
|
|
{
|
|
UNITY_BEGIN();
|
|
|
|
// Text message tests
|
|
RUN_TEST(test_text_message_serialization);
|
|
|
|
// Position tests
|
|
RUN_TEST(test_position_serialization);
|
|
|
|
// Nodeinfo tests
|
|
RUN_TEST(test_nodeinfo_serialization);
|
|
|
|
// Waypoint tests
|
|
RUN_TEST(test_waypoint_serialization);
|
|
|
|
// Telemetry tests
|
|
RUN_TEST(test_telemetry_device_metrics_serialization);
|
|
RUN_TEST(test_telemetry_environment_metrics_serialization);
|
|
RUN_TEST(test_telemetry_environment_metrics_comprehensive);
|
|
RUN_TEST(test_telemetry_environment_metrics_missing_fields);
|
|
RUN_TEST(test_telemetry_environment_metrics_complete_coverage);
|
|
RUN_TEST(test_telemetry_environment_metrics_unset_fields);
|
|
|
|
// Encrypted packet test
|
|
RUN_TEST(test_encrypted_packet_serialization);
|
|
|
|
UNITY_END();
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
delay(1000);
|
|
}
|