Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
4.1.99
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
▼
Zephyr API Documentation
►
Introduction
Deprecated List
►
Topics
►
Data Structures
▼
Files
▼
File List
►
doc
►
kernel
►
lib
▼
subsys
►
fs
►
secure_storage
▼
testsuite
►
include
▼
ztest
▼
include
▼
zephyr
►
ztest.h
►
ztest_assert.h
ztest_error_hook.h
►
ztest_mock.h
►
ztest_test.h
►
ztress.h
►
zephyr
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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 Fri Mar 14 2025 09:05:36 for Zephyr API Documentation by
1.12.0