Zephyr API 3.6.99
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
29extern "C" {
30#endif
31struct 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
48extern "C" {
49#endif
50
51void test_main(void);
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif /* ZEPHYR_TESTSUITE_INCLUDE_ZTEST_H_ */
Public kernel APIs.
Exception Stack Frame.
Definition exception.h:60
void test_main(void)
Zephyr testing framework assertion macros.
Ztest mocking support.
Zephyr testing framework _test.