test: fix more legacy #include paths

Add a bunch of missing "zephyr/" prefixes to #include statements in
various test and test framework files.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri
2022-07-19 14:16:24 +00:00
committed by Fabio Baltieri
parent 63c2347207
commit def230187b
758 changed files with 867 additions and 867 deletions

View File

@@ -1,4 +1,4 @@
#include <ztest.h>
#include <zephyr/ztest.h>
static void expect_two_parameters(int a, int b)
{

View File

@@ -6,7 +6,7 @@
#ifndef MODULES_FFF_TEST_INCLUDE_C_TEST_FRAMEWORK_H_
#define MODULES_FFF_TEST_INCLUDE_C_TEST_FRAMEWORK_H_
#include <ztest.h>
#include <zephyr/ztest.h>
#include <zephyr/sys/printk.h>
void setup(void);

View File

@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <ztest.h>
#include <zephyr/ztest.h>
ZTEST_SUITE(framework_tests, NULL, NULL, NULL, NULL, NULL);

View File

@@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <ztest.h>
#include <zephyr/ztest.h>
ZTEST_SUITE(test_pytest, NULL, NULL, NULL, NULL, NULL);

View File

@@ -6,7 +6,7 @@
#include <zephyr/drivers/entropy.h>
#include <zephyr/drivers/counter.h>
#include <zephyr/drivers/gpio.h>
#include "busy_sim.h"
#include <zephyr/busy_sim.h>
#include <zephyr/sys/ring_buffer.h>
#include <zephyr/random/rand32.h>

View File

@@ -32,7 +32,7 @@
#ifndef __TEST_UTILS_H__
#define __TEST_UTILS_H__
#include <tc_util.h>
#include <zephyr/tc_util.h>
#include <tinycrypt/constants.h>
static inline void show_str(const char *label, const uint8_t *s, size_t len)

View File

@@ -17,9 +17,9 @@
#include <limits.h>
#if defined(__GNUC__)
#include <test_asm_inline_gcc.h>
#include <zephyr/test_asm_inline_gcc.h>
#else
#include <test_asm_inline_other.h>
#include <zephyr/test_asm_inline_other.h>
#endif

View File

@@ -58,10 +58,10 @@ typedef struct esf z_arch_esf_t;
#include <zephyr/zephyr.h>
#include <ztest_assert.h>
#include <ztest_mock.h>
#include <ztest_test.h>
#include <tc_util.h>
#include <zephyr/ztest_assert.h>
#include <zephyr/ztest_mock.h>
#include <zephyr/ztest_test.h>
#include <zephyr/tc_util.h>
#ifdef __cplusplus
extern "C" {

View File

@@ -18,7 +18,7 @@
#include <stdio.h>
#include <string.h>
#include <ztest.h>
#include <zephyr/ztest.h>
#ifdef __cplusplus
extern "C" {

View File

@@ -9,9 +9,9 @@
#define ZEPHYR_TESTSUITE_INCLUDE_ZTEST_TEST_H_
#ifdef CONFIG_ZTEST_NEW_API
#include <ztest_test_new.h>
#include <zephyr/ztest_test_new.h>
#else
#include <ztest_test_deprecated.h>
#include <zephyr/ztest_test_deprecated.h>
#endif /* !CONFIG_ZTEST_NEW_API */
#ifdef __cplusplus

View File

@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <ztest.h>
#include <zephyr/ztest.h>
/**
* @brief Try to shorten a filename by removing the current directory

View File

@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/zephyr.h>
#include <ztest.h>
#include <zephyr/ztest.h>
#if defined(CONFIG_ZTEST_FATAL_HOOK)

View File

@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <ztest.h>
#include <zephyr/ztest.h>
#include <zephyr/app_memory/app_memdomain.h>
#ifdef CONFIG_USERSPACE

View File

@@ -9,8 +9,8 @@
#include <unistd.h>
#include "cmdline.h" /* native_posix command line options header */
#include "soc.h"
#include "tc_util.h"
#include "ztest_test_new.h"
#include <zephyr/tc_util.h>
#include <zephyr/ztest_test_new.h>
static const char *test_args;
static bool list_tests;

View File

@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <ztest.h>
#include <zephyr/ztest.h>
#ifdef CONFIG_ZTEST_RULE_1CPU
static void one_cpu_rule_before_each(const struct ztest_unit_test *test, void *data)

View File

@@ -3,8 +3,8 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <ztress.h>
#include <ztest_test.h>
#include <zephyr/ztress.h>
#include <zephyr/ztest_test.h>
#include <zephyr/sys/printk.h>
#include <zephyr/random/rand32.h>
#include <string.h>

View File

@@ -7,7 +7,7 @@
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <ztest.h>
#include <zephyr/ztest.h>
/* This function will allow execute from sram region.
* This is needed only for this sample because by default all soc will

View File

@@ -6,7 +6,7 @@
#include <zephyr/zephyr.h>
#include <zephyr/sys/printk.h>
#include <ztest.h>
#include <zephyr/ztest.h>
uint32_t var_sram2_data = 10U;
uint32_t var_sram2_bss;

View File

@@ -7,7 +7,7 @@
#include <zephyr/zephyr.h>
#include <zephyr/sys/printk.h>
#include <ztest.h>
#include <zephyr/ztest.h>
void function_in_sram(int32_t value)
{

View File

@@ -6,7 +6,7 @@
#include <zephyr/zephyr.h>
#include <zephyr/sys/printk.h>
#include <ztest.h>
#include <zephyr/ztest.h>
uint32_t var_file3_sram_data = 10U;
uint32_t var_file3_sram2_bss;

Some files were not shown because too many files have changed in this diff Show More