mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
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:
committed by
Fabio Baltieri
parent
63c2347207
commit
def230187b
@@ -1,4 +1,4 @@
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
|
||||
static void expect_two_parameters(int a, int b)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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" {
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user