doc: ztest: Include ztress to API reference
Include ztress documentation to ztest API section. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
0239a2cf88
commit
86f48609fb
2 changed files with 25 additions and 0 deletions
|
@ -481,6 +481,11 @@ Example output for a failed macro from
|
||||||
|
|
||||||
.. _mocking-fff:
|
.. _mocking-fff:
|
||||||
|
|
||||||
|
Ztress
|
||||||
|
======
|
||||||
|
|
||||||
|
.. doxygengroup:: ztest_ztress
|
||||||
|
|
||||||
Mocking via FFF
|
Mocking via FFF
|
||||||
===============
|
===============
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,13 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Zephyr testing framework ztress macros
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef TESTSUITE_ZTEST_INCLUDE_ZTRESS_H__
|
#ifndef TESTSUITE_ZTEST_INCLUDE_ZTRESS_H__
|
||||||
#define TESTSUITE_ZTEST_INCLUDE_ZTRESS_H__
|
#define TESTSUITE_ZTEST_INCLUDE_ZTRESS_H__
|
||||||
|
|
||||||
|
@ -17,6 +24,15 @@ extern "C" {
|
||||||
#define ZTRESS_ID_THREAD 0
|
#define ZTRESS_ID_THREAD 0
|
||||||
#define ZTRESS_ID_K_TIMER 1
|
#define ZTRESS_ID_K_TIMER 1
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @defgroup ztest_ztress Ztest ztress macros
|
||||||
|
* @ingroup ztest
|
||||||
|
*
|
||||||
|
* This module provides test stress when using Ztest.
|
||||||
|
*
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
/** @brief Descriptor of a k_timer handler execution context.
|
/** @brief Descriptor of a k_timer handler execution context.
|
||||||
*
|
*
|
||||||
* The handler is executed in the k_timer handler context which typically means
|
* The handler is executed in the k_timer handler context which typically means
|
||||||
|
@ -237,6 +253,10 @@ int ztress_preempt_count(uint32_t id);
|
||||||
*/
|
*/
|
||||||
uint32_t ztress_optimized_ticks(uint32_t id);
|
uint32_t ztress_optimized_ticks(uint32_t id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue