Skip to content

Commit 0ce0b52

Browse files
committed
samples: lora: validate LBM build
Add testcases for `CONFIG_LORA_MODULE_BACKEND_LORA_BASICS_MODEM` in the LoRa API samples. Signed-off-by: Jordan Yates <jordan@embeint.com>
1 parent 823b077 commit 0ce0b52

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed
Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
common:
22
tags: lora
33
depends_on: lora
4+
harness: console
5+
harness_config:
6+
type: one_line
7+
regex:
8+
- "<inf> lora_receive: Synchronous reception"
49
sample:
510
description: Demonstration of LoRa Receive functionality
611
name: LoRa Receive Sample
712
tests:
813
sample.driver.lora.receive:
9-
harness: console
10-
harness_config:
11-
type: one_line
12-
regex:
13-
- "<inf> lora_receive: Synchronous reception"
1414
integration_platforms:
1515
- b_l072z_lrwan1
16+
sample.driver.lora.receive.lbm:
17+
filter: dt_compat_enabled("semtech,sx1261") or
18+
dt_compat_enabled("semtech,sx1262") or
19+
dt_compat_enabled("semtech,sx1272") or
20+
dt_compat_enabled("semtech,sx1276")
21+
integration_platforms:
22+
- b_l072z_lrwan1
23+
- rak11720
24+
extra_configs:
25+
- CONFIG_LORA_MODULE_BACKEND_LORA_BASICS_MODEM=y

samples/drivers/lora/send/sample.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
common:
22
tags: lora
33
depends_on: lora
4+
harness: console
5+
harness_config:
6+
type: one_line
7+
regex:
8+
- "<inf> lora_send: Data sent 0!"
49
sample:
510
description: Demonstration of LoRa Send functionality
611
name: LoRa Send Sample
712
tests:
813
sample.driver.lora.send:
9-
harness: console
10-
harness_config:
11-
type: one_line
12-
regex:
13-
- "<inf> lora_send: Data sent 0!"
1414
integration_platforms:
1515
- b_l072z_lrwan1
16+
sample.driver.lora.send.lbm:
17+
filter: dt_compat_enabled("semtech,sx1261") or
18+
dt_compat_enabled("semtech,sx1262") or
19+
dt_compat_enabled("semtech,sx1272") or
20+
dt_compat_enabled("semtech,sx1276")
21+
integration_platforms:
22+
- b_l072z_lrwan1
23+
- rak11720
24+
extra_configs:
25+
- CONFIG_LORA_MODULE_BACKEND_LORA_BASICS_MODEM=y

0 commit comments

Comments
 (0)