Zephyr API Documentation
4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ztest.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016 Intel Corporation
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
13
#ifndef ZEPHYR_TESTSUITE_INCLUDE_ZTEST_H_
14
#define ZEPHYR_TESTSUITE_INCLUDE_ZTEST_H_
15
21
#if !defined(CONFIG_ZTEST) && !defined(ZTEST_UNITTEST)
22
#error "You need to add CONFIG_ZTEST to your config file."
23
#endif
24
25
#ifndef KERNEL
26
#define ARCH_STACK_PTR_ALIGN 8
27
/* FIXME: Properly integrate with Zephyr's arch specific code */
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
struct
arch_esf
;
32
#ifdef __cplusplus
33
}
34
#endif
35
#endif
/* KERNEL */
36
37
#include <
zephyr/sys/printk.h
>
38
#define PRINT printk
39
40
#include <
zephyr/kernel.h
>
41
42
#include <
zephyr/ztest_assert.h
>
43
#include <
zephyr/ztest_mock.h
>
44
#include <
zephyr/ztest_test.h
>
45
#include <
zephyr/tc_util.h
>
46
47
#ifdef __cplusplus
48
extern
"C"
{
49
#endif
50
51
void
test_main
(
void
);
52
53
#ifdef __cplusplus
54
}
55
#endif
56
57
#endif
/* ZEPHYR_TESTSUITE_INCLUDE_ZTEST_H_ */
kernel.h
Public kernel APIs.
printk.h
arch_esf
Exception Stack Frame.
Definition
exception.h:60
tc_util.h
test_main
void test_main(void)
ztest_assert.h
Zephyr testing framework assertion macros.
ztest_mock.h
Ztest mocking support.
ztest_test.h
Zephyr testing framework _test.
subsys
testsuite
ztest
include
zephyr
ztest.h
Generated on Sat Dec 21 2024 12:02:36 for Zephyr API Documentation by
1.12.0