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
Go to the documentation of this file.
1/**
2 * @file gpio_integration_test.h
3 * @brief Header for GPIO integration tests
4 *
5 * This file declares the GPIO integration test registration function
6 * for testing GPIO with elements, hosted mode, and KV Engine persistence.
7 *
8 * **Validates: Requirements 10.5-10.8**
9 *
10 * @author MeshX Team
11 * @date 2024
12 */
13
14#ifndef __GPIO_INTEGRATION_TEST_H__
15#define __GPIO_INTEGRATION_TEST_H__
16
17#include "unit_test.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#if CONFIG_ENABLE_UNIT_TEST
24
25/**
26 * @brief Register GPIO integration tests with the unit test framework.
27 *
28 * This function registers all GPIO integration tests including:
29 * - Element integration tests (IO interface, state changes)
30 * - Hosted/non-hosted mode switching tests
31 * - KV Engine persistence and recovery tests
32 *
33 * Test command IDs (use cmd_id 100+ to avoid conflict with unit tests):
34 * - 100: Run all integration tests
35 * - 101-103: Element integration tests
36 * - 104-106: Hosted mode tests
37 * - 107-113: KV Engine persistence tests
38 * - 114-115: Cross-subsystem tests
39 *
40 * @return meshx_err_t MESHX_SUCCESS on success, error code on failure
41 */
43
44#endif /* CONFIG_ENABLE_UNIT_TEST */
45
46#ifdef __cplusplus
47}
48#endif
49
50#endif /* __GPIO_INTEGRATION_TEST_H__ */
meshx_err_t register_gpio_integration_tests(void)
Register GPIO integration tests with the unit test framework.
Definition gpio_integration_test.c:1287
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:43
Header file for the production console unit test functionality.