Skip to content

Commit

Permalink
tests: drivers: build_all: can: add build test for native posix linux
Browse files Browse the repository at this point in the history
Add build-only test for the native POSIX Linux (SocketCAN) driver.

Signed-off-by: Henrik Brix Andersen <[email protected]>
  • Loading branch information
henrikbrixandersen authored and aescolar committed Dec 10, 2023
1 parent c86f5c0 commit 0bf4efc
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/drivers/build_all/can/boards/native_posix.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (c) 2023 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "native_sim.overlay"
7 changes: 7 additions & 0 deletions tests/drivers/build_all/can/boards/native_posix_64.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (c) 2023 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "native_posix.overlay"
13 changes: 13 additions & 0 deletions tests/drivers/build_all/can/boards/native_sim.overlay
Original file line number Diff line number Diff line change
@@ -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 changes: 7 additions & 0 deletions tests/drivers/build_all/can/boards/native_sim_64.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (c) 2023 Vestas Wind Systems A/S
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "native_sim.overlay"
6 changes: 6 additions & 0 deletions tests/drivers/build_all/can/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0bf4efc

Please sign in to comment.