Zephyr API Documentation
3.5.0
A Scalable Open Source RTOS
3.5.0
Toggle main menu visibility
Main Page
Related Pages
Modules
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
r
s
t
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
•
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
esf;
32
typedef
struct
esf z_arch_esf_t;
33
#ifdef __cplusplus
34
}
35
#endif
36
#endif
/* KERNEL */
37
38
#include <
zephyr/sys/printk.h
>
39
#define PRINT printk
40
41
#include <
zephyr/kernel.h
>
42
43
#include <
zephyr/ztest_assert.h
>
44
#include <
zephyr/ztest_mock.h
>
45
#include <
zephyr/ztest_test.h
>
46
#include <
zephyr/tc_util.h
>
47
48
#ifdef __cplusplus
49
extern
"C"
{
50
#endif
51
52
void
test_main
(
void
);
53
54
#ifdef __cplusplus
55
}
56
#endif
57
58
#endif
/* ZEPHYR_TESTSUITE_INCLUDE_ZTEST_H_ */
kernel.h
Public kernel APIs.
printk.h
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
subsys
testsuite
ztest
include
zephyr
ztest.h
Generated on Fri Oct 20 2023 10:27:12 for Zephyr API Documentation by
1.9.6