MeshX 0.4
This repository provides an implementation for Bluetooth Low Energy (BLE) Mesh network nodes. The project allows you to create BLE mesh nodes that can communicate with each other, enabling the development of smart home solutions or other IoT-based applications.
Loading...
Searching...
No Matches
gpio_integration_test.h File Reference

Header for GPIO integration tests. More...

#include "unit_test.h"

Go to the source code of this file.

Functions

meshx_err_t register_gpio_integration_tests (void)
 Register GPIO integration tests with the unit test framework.

Detailed Description

Header for GPIO integration tests.

This file declares the GPIO integration test registration function for testing GPIO with elements, hosted mode, and KV Engine persistence.

Validates: Requirements 10.5-10.8

Author
MeshX Team
Date
2024

Function Documentation

◆ register_gpio_integration_tests()

meshx_err_t register_gpio_integration_tests ( void )

Register GPIO integration tests with the unit test framework.

This function registers all GPIO integration tests including:

  • Element integration tests (IO interface, state changes)
  • Hosted/non-hosted mode switching tests
  • KV Engine persistence and recovery tests

Test command IDs (use cmd_id 100+ to avoid conflict with unit tests):

  • 100: Run all integration tests
  • 101-103: Element integration tests
  • 104-106: Hosted mode tests
  • 107-113: KV Engine persistence tests
  • 114-115: Cross-subsystem tests
Returns
meshx_err_t MESHX_SUCCESS on success, error code on failure

Register GPIO integration tests with the unit test framework.

Returns
meshx_err_t MESHX_SUCCESS on success, error code on failure
1288{
1289 MESHX_LOGD(MODULE_ID_GPIO_INTEGRATION_TEST, "Registering GPIO integration tests");
1291}
static meshx_err_t gpio_integration_test_handler(int cmd_id, int argc, char **argv)
Integration test command handler.
Definition gpio_integration_test.c:1250
#define MESHX_LOGD(module_id, format,...)
Definition meshx_log.h:132
@ MODULE_ID_GPIO_INTEGRATION_TEST
Definition module_id.h:47
meshx_err_t register_unit_test(module_id_t module_id, module_callback_t callback)
Register a unit test for a specific module.
Definition unit_test.c:137