/* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * * @brief Zephyr Testsuite */ #ifndef ZEPHYR_TESTSUITE_INCLUDE_ZTEST_H_ #define ZEPHYR_TESTSUITE_INCLUDE_ZTEST_H_ /** * @defgroup ztest Zephyr Testing Framework (ZTest) * @ingroup testing */ #if !defined(CONFIG_ZTEST) && !defined(ZTEST_UNITTEST) #error "You need to add CONFIG_ZTEST to your config file." #endif #ifndef KERNEL #define ARCH_STACK_PTR_ALIGN 8 /* FIXME: Properly integrate with Zephyr's arch specific code */ #ifdef __cplusplus extern "C" { #endif struct esf; typedef struct esf z_arch_esf_t; #ifdef __cplusplus } #endif #endif /* KERNEL */ #include #define PRINT printk #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif void test_main(void); #ifdef __cplusplus } #endif #endif /* ZEPHYR_TESTSUITE_INCLUDE_ZTEST_H_ */