Skip to content

Commit

Permalink
tests/subsys/ipc/pbuf: Filter out partial native/posix arch builds
Browse files Browse the repository at this point in the history
Some AMP native simulator targets (like the nrf5340bsim net core)
will not produce a final executable if only one of the core images
is built, when IPC is enabled, as those images require the other
core image to be able to link.
So this test cannot be run when targetting that core alone
(without using sysbuild to build the other).

Let's filter out these targets to avoid twister building
but finding itself with no executable and error out badly
as it cannot run the test.

The filter condition is effectively:
If building for a native target, there must be an .exe being
produced.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
  • Loading branch information
aescolar committed Jul 6, 2024
1 parent 7826f7c commit a912bb6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/subsys/ipc/pbuf/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
tests:
ipc.icmsg_pbuf:
# For native(POSIX arch) targets, let's skip those which do not produce an executable
# (amp targets which need more images)
filter: not CONFIG_ARCH_POSIX or CONFIG_BUILD_OUTPUT_EXE
integration_platforms:
- native_sim
timeout: 120

0 comments on commit a912bb6

Please sign in to comment.