tests: drivers: build_all: can: add build test for native posix linux
Add build-only test for the native POSIX Linux (SocketCAN) driver. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
c86f5c0f61
commit
0bf4efc780
7
tests/drivers/build_all/can/boards/native_posix.overlay
Normal file
7
tests/drivers/build_all/can/boards/native_posix.overlay
Normal file
|
@ -0,0 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2023 Vestas Wind Systems A/S
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "native_sim.overlay"
|
|
@ -0,0 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2023 Vestas Wind Systems A/S
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "native_posix.overlay"
|
13
tests/drivers/build_all/can/boards/native_sim.overlay
Normal file
13
tests/drivers/build_all/can/boards/native_sim.overlay
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Copyright (c) 2023 Vestas Wind Systems A/S
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&can_loopback0 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&can0 {
|
||||
status = "okay";
|
||||
};
|
7
tests/drivers/build_all/can/boards/native_sim_64.overlay
Normal file
7
tests/drivers/build_all/can/boards/native_sim_64.overlay
Normal file
|
@ -0,0 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2023 Vestas Wind Systems A/S
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "native_sim.overlay"
|
|
@ -19,3 +19,9 @@ tests:
|
|||
drivers.can.build_all.mcp251xfd:
|
||||
extra_args: SHIELD=mikroe_mcp2518fd_click
|
||||
platform_allow: lpcxpresso55s28
|
||||
drivers.can.build_all.native_posix_linux:
|
||||
platform_allow:
|
||||
- native_posix
|
||||
- native_posix_64
|
||||
- native_sim
|
||||
- native_sim_64
|
||||
|
|
Loading…
Reference in a new issue