Skip to content

Commit

Permalink
[nrf fromtree] tests: net: lwm2m: Remove unnecessary filtering
Browse files Browse the repository at this point in the history
Content-format tests do not require network or
Newlibc, so by removing these filters.
Defined a native_posix as the only integration platform
because all simulated arm-zephyr-eabi platforms are
filtered out by Twister.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
(cherry picked from commit a7498c3)
  • Loading branch information
SeppoTakalo authored and rlubos committed Aug 3, 2023
1 parent 8cb6e03 commit c9d01d0
Show file tree
Hide file tree
Showing 19 changed files with 46 additions and 53 deletions.
10 changes: 7 additions & 3 deletions tests/net/lib/lwm2m/block_transfer/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
common:
depends_on: netif
tests:
net.lwm2m.block_transfer:
tags: lwm2m net
platform_key:
- simulation
tags:
- lwm2m
- net
integration_platforms:
- native_posix
2 changes: 0 additions & 2 deletions tests/net/lib/lwm2m/content_json/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ CONFIG_ZTEST_NEW_API=y

CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NEWLIB_LIBC=y

CONFIG_LWM2M=y
CONFIG_LWM2M_COAP_MAX_MSG_SIZE=512
CONFIG_LWM2M_RW_JSON_SUPPORT=y
Expand Down
7 changes: 4 additions & 3 deletions tests/net/lib/lwm2m/content_json/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
common:
depends_on: netif
tests:
net.lwm2m.content_json:
filter: TOOLCHAIN_HAS_NEWLIB == 1
platform_key:
- simulation
tags:
- lwm2m
- net
integration_platforms:
- native_posix
2 changes: 0 additions & 2 deletions tests/net/lib/lwm2m/content_link_format/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ CONFIG_ZTEST_NEW_API=y

CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NEWLIB_LIBC=y

CONFIG_LWM2M=y
CONFIG_LWM2M_RW_JSON_SUPPORT=y
CONFIG_JSON_LIBRARY=y
7 changes: 4 additions & 3 deletions tests/net/lib/lwm2m/content_link_format/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
common:
depends_on: netif
tests:
net.lwm2m.content_link_format:
filter: TOOLCHAIN_HAS_NEWLIB == 1
platform_key:
- simulation
tags:
- lwm2m
- net
integration_platforms:
- native_posix
2 changes: 0 additions & 2 deletions tests/net/lib/lwm2m/content_oma_tlv/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ CONFIG_ZTEST_NEW_API=y

CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NEWLIB_LIBC=y

CONFIG_LWM2M=y
7 changes: 4 additions & 3 deletions tests/net/lib/lwm2m/content_oma_tlv/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
common:
depends_on: netif
tests:
net.lwm2m.content_oma_tlv:
filter: TOOLCHAIN_HAS_NEWLIB == 1
platform_key:
- simulation
tags:
- lwm2m
- net
integration_platforms:
- native_posix
2 changes: 0 additions & 2 deletions tests/net/lib/lwm2m/content_plain_text/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ CONFIG_ZTEST_NEW_API=y

CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NEWLIB_LIBC=y

CONFIG_LWM2M=y
7 changes: 4 additions & 3 deletions tests/net/lib/lwm2m/content_plain_text/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
common:
depends_on: netif
tests:
net.lwm2m.content_plain_text:
filter: TOOLCHAIN_HAS_NEWLIB == 1
platform_key:
- simulation
tags:
- lwm2m
- net
integration_platforms:
- native_posix
2 changes: 0 additions & 2 deletions tests/net/lib/lwm2m/content_raw_cbor/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ CONFIG_ZTEST_NEW_API=y

CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NEWLIB_LIBC=y

CONFIG_LWM2M=y
CONFIG_LWM2M_VERSION_1_1=y
CONFIG_LWM2M_RW_CBOR_SUPPORT=y
7 changes: 4 additions & 3 deletions tests/net/lib/lwm2m/content_raw_cbor/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
common:
depends_on: netif
tests:
net.lwm2m.content_raw_cbor:
platform_allow: native_posix
platform_key:
- simulation
tags:
- lwm2m
- net
integration_platforms:
- native_posix
2 changes: 0 additions & 2 deletions tests/net/lib/lwm2m/content_senml_cbor/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ CONFIG_ZTEST_NEW_API=y

CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NEWLIB_LIBC=y

CONFIG_LWM2M=y
CONFIG_LWM2M_VERSION_1_1=y
CONFIG_LWM2M_RW_CBOR_SUPPORT=y
Expand Down
7 changes: 4 additions & 3 deletions tests/net/lib/lwm2m/content_senml_cbor/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
common:
depends_on: netif
tests:
net.lwm2m.content_senml_cbor:
platform_allow: native_posix
platform_key:
- simulation
tags:
- lwm2m
- net
integration_platforms:
- native_posix
1 change: 0 additions & 1 deletion tests/net/lib/lwm2m/engine/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CONFIG_ZTEST_NEW_API=y

CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NEWLIB_LIBC=y

CONFIG_LWM2M=y
CONFIG_LWM2M_COAP_MAX_MSG_SIZE=512
7 changes: 4 additions & 3 deletions tests/net/lib/lwm2m/engine/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
common:
depends_on: netif
tests:
net.lwm2m.engine:
platform_allow: native_posix
platform_key:
- simulation
tags:
- lwm2m
- net
integration_platforms:
- native_posix
7 changes: 4 additions & 3 deletions tests/net/lib/lwm2m/lwm2m_engine/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
common:
depends_on: netif
tests:
net.lwm2m.lwm2m_engine:
platform_allow: native_posix
platform_key:
- simulation
tags:
- lwm2m
- net
integration_platforms:
- native_posix
11 changes: 3 additions & 8 deletions tests/net/lib/lwm2m/lwm2m_rd_client/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
common:
depends_on: netif
platform_key:
- simulation
tags:
- net
- lwm2m
platform_allow:
- native_posix
- qemu_x86
- qemu_x86_64
- net
integration_platforms:
- native_posix
- qemu_x86

tests:
net.lwm2m.lwm2m_rd_client:
extra_args: EXTRA_CFLAGS=""
Expand Down
2 changes: 0 additions & 2 deletions tests/net/lib/lwm2m/lwm2m_registry/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ CONFIG_NETWORKING=y
CONFIG_NET_TEST=y
CONFIG_ZTEST=y
CONFIG_ZTEST_NEW_API=y

CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_NEWLIB_LIBC=y

CONFIG_LWM2M=y
CONFIG_LWM2M_COAP_MAX_MSG_SIZE=512
Expand Down
7 changes: 4 additions & 3 deletions tests/net/lib/lwm2m/lwm2m_registry/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
common:
depends_on: netif
tests:
net.lwm2m.lwm2m_registry:
platform_key:
- simulation
tags:
- lwm2m
- net
filter: TOOLCHAIN_HAS_NEWLIB == 1
integration_platforms:
- native_posix

0 comments on commit c9d01d0

Please sign in to comment.