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:
Henrik Brix Andersen 2023-11-30 10:28:12 +01:00 committed by Alberto Escolar
parent c86f5c0f61
commit 0bf4efc780
5 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,7 @@
/*
* Copyright (c) 2023 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "native_sim.overlay"

View file

@ -0,0 +1,7 @@
/*
* Copyright (c) 2023 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "native_posix.overlay"

View 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";
};

View file

@ -0,0 +1,7 @@
/*
* Copyright (c) 2023 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "native_sim.overlay"

View file

@ -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