Skip to content

Commit 407f32f

Browse files
committed
tests: bsim: host: making tests runnable by twister
Adding necessary changes to testcase.yaml files in all Bsim host tests to make them directly runnable by twister's bsim harness. Signed-off-by: Artur Dobrynin <[email protected]>
1 parent ec1a488 commit 407f32f

File tree

84 files changed

+1418
-237
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1418
-237
lines changed
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
tests:
22
bluetooth.host.adv.chain:
3-
build_only: true
43
tags:
54
- bluetooth
65
platform_allow:
76
- nrf52_bsim/native
87
- nrf5340bsim/nrf5340/cpunet
98
harness: bsim
9+
timeout: 2
1010
harness_config:
11-
bsim_exe_name: tests_bsim_bluetooth_host_adv_chain_prj_conf
11+
bsim_exe_name:
12+
- tests_bsim_bluetooth_host_adv_chain_prj_conf
13+
bsim_verbosity: 2
14+
bsim_sim_length: 10e6
15+
bsim_test_ids:
16+
- adv
17+
- scan
Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
1+
common:
2+
tags:
3+
- bluetooth
4+
platform_allow:
5+
- nrf52_bsim/native
6+
harness: bsim
7+
timeout: 2
8+
harness_config:
9+
bsim_exe_name:
10+
- tests_bsim_bluetooth_host_adv_encrypted_css_sample_data_prj_conf
11+
bsim_verbosity: 2
12+
bsim_sim_length: 60e6
13+
bsim_test_ids:
14+
- central
15+
- peripheral
16+
bsim_options:
17+
- -RealEncryption=1
18+
- -argstest
19+
120
tests:
2-
bluetooth.host.adv.encrypted.css_sample_data:
21+
bluetooth.host.adv.encrypted.build_css_sample_data:
322
build_only: true
4-
tags:
5-
- bluetooth
6-
platform_allow:
7-
- nrf52_bsim/native
8-
harness: bsim
23+
bluetooth.host.adv.encrypted.css_sample_data_1:
24+
no_build: true
925
harness_config:
10-
bsim_exe_name: tests_bsim_bluetooth_host_adv_encrypted_css_sample_data_prj_conf
26+
bsim_options:
27+
- data-set=1
28+
bluetooth.host.adv.encrypted.css_sample_data_2:
29+
no_build: true
30+
harness_config:
31+
bsim_options:
32+
- data-set=2
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
tests:
22
bluetooth.host.adv.encrypted.ead_sample:
3-
build_only: true
43
tags:
54
- bluetooth
65
platform_allow:
76
- nrf52_bsim/native
87
harness: bsim
8+
timeout: 2
99
harness_config:
10-
bsim_exe_name: tests_bsim_bluetooth_host_adv_encrypted_ead_sample_prj_conf
10+
bsim_exe_name:
11+
- tests_bsim_bluetooth_host_adv_encrypted_ead_sample_prj_conf
12+
bsim_verbosity: 2
13+
bsim_sim_length: 60e6
14+
bsim_test_ids:
15+
- central
16+
- peripheral
17+
bsim_options:
18+
- -RealEncryption=0
Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,56 @@
11
common:
2-
build_only: true
32
tags:
43
- bluetooth
54
platform_allow:
65
- nrf52_bsim/native
76
- nrf5340bsim/nrf5340/cpunet
87
harness: bsim
8+
timeout: 2
9+
harness_config:
10+
bsim_verbosity: 2
11+
bsim_sim_length: 10e6
12+
bsim_options:
13+
- -RealEncryption=0
914

1015
tests:
11-
bluetooth.host.adv.extended.advertiser:
16+
bluetooth.host.adv.extended.build_advertiser:
17+
build_only: true
1218
harness_config:
13-
bsim_exe_name: tests_bsim_bluetooth_host_adv_extended_prj_advertiser_conf
19+
bsim_exe_name:
20+
- tests_bsim_bluetooth_host_adv_extended_prj_advertiser_conf
1421
extra_args:
1522
CONF_FILE=prj_advertiser.conf
16-
bluetooth.host.adv.extended.scanner:
23+
bluetooth.host.adv.extended.build_scanner:
24+
build_only: true
1725
harness_config:
18-
bsim_exe_name: tests_bsim_bluetooth_host_adv_extended_prj_scanner_conf
26+
bsim_exe_name:
27+
- tests_bsim_bluetooth_host_adv_extended_prj_scanner_conf
1928
extra_args:
2029
CONF_FILE=prj_scanner.conf
30+
bluetooth.host.adv.extended.ext_adv:
31+
no_build: true
32+
harness_config:
33+
bsim_exe_name:
34+
- tests_bsim_bluetooth_host_adv_extended_prj_advertiser_conf
35+
- tests_bsim_bluetooth_host_adv_extended_prj_scanner_conf
36+
bsim_test_ids:
37+
- ext_adv_advertiser
38+
- ext_adv_scanner
39+
bluetooth.host.adv.extended.ext_adv_conn:
40+
no_build: true
41+
harness_config:
42+
bsim_exe_name:
43+
- tests_bsim_bluetooth_host_adv_extended_prj_advertiser_conf
44+
- tests_bsim_bluetooth_host_adv_extended_prj_scanner_conf
45+
bsim_test_ids:
46+
- ext_adv_conn_advertiser
47+
- ext_adv_conn_scanner
48+
bluetooth.host.adv.extended.ext_adv_conn_x5:
49+
no_build: true
50+
harness_config:
51+
bsim_exe_name:
52+
- tests_bsim_bluetooth_host_adv_extended_prj_advertiser_conf
53+
- tests_bsim_bluetooth_host_adv_extended_prj_scanner_conf
54+
bsim_test_ids:
55+
- ext_adv_conn_advertiser_x5
56+
- ext_adv_conn_scanner_x5
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
tests:
22
bluetooth.host.adv.long_ad:
3-
build_only: true
43
tags:
54
- bluetooth
65
platform_allow:
76
- nrf52_bsim/native
87
harness: bsim
8+
timeout: 2
99
harness_config:
10-
bsim_exe_name: tests_bsim_bluetooth_host_adv_long_ad_prj_conf
10+
bsim_exe_name:
11+
- tests_bsim_bluetooth_host_adv_long_ad_prj_conf
12+
bsim_verbosity: 2
13+
bsim_sim_length: 2e6
14+
bsim_test_ids:
15+
- advertiser
16+
- scanner
Lines changed: 66 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,82 @@
11
common:
2-
build_only: true
32
tags:
43
- bluetooth
54
platform_allow:
65
- nrf52_bsim/native
76
- nrf5340bsim/nrf5340/cpunet
87
harness: bsim
8+
timeout: 2
9+
harness_config:
10+
bsim_verbosity: 2
11+
bsim_sim_length: 15e6
12+
bsim_options:
13+
- -RealEncryption=0
914

1015
tests:
11-
bluetooth.host.adv.periodic:
16+
bluetooth.host.adv.periodic.build:
17+
build_only: true
1218
harness_config:
13-
bsim_exe_name: tests_bsim_bluetooth_host_adv_periodic_prj_conf
14-
bluetooth.host.adv.periodic.coded:
19+
bsim_exe_name:
20+
- tests_bsim_bluetooth_host_adv_periodic_prj_conf
21+
bluetooth.host.adv.periodic.build_coded:
22+
build_only: true
1523
harness_config:
16-
bsim_exe_name: tests_bsim_bluetooth_host_adv_periodic_prj_coded_conf
24+
bsim_exe_name:
25+
- tests_bsim_bluetooth_host_adv_periodic_prj_coded_conf
1726
extra_args:
1827
EXTRA_CONF_FILE=prj_coded.conf
19-
bluetooth.host.adv.periodic.long_data:
28+
bluetooth.host.adv.periodic.build_long_data:
29+
build_only: true
2030
harness_config:
21-
bsim_exe_name: tests_bsim_bluetooth_host_adv_periodic_prj_long_data_conf
31+
bsim_exe_name:
32+
- tests_bsim_bluetooth_host_adv_periodic_prj_long_data_conf
2233
extra_args:
2334
EXTRA_CONF_FILE=prj_long_data.conf
35+
bluetooth.host.adv.periodic.per_adv:
36+
no_build: true
37+
harness_config:
38+
bsim_exe_name:
39+
- tests_bsim_bluetooth_host_adv_periodic_prj_conf
40+
bsim_test_ids:
41+
- per_adv_advertiser
42+
- per_adv_sync
43+
bluetooth.host.adv.periodic.per_adv_conn:
44+
no_build: true
45+
harness_config:
46+
bsim_exe_name:
47+
- tests_bsim_bluetooth_host_adv_periodic_prj_conf
48+
bsim_test_ids:
49+
- per_adv_conn_advertiser
50+
- per_adv_conn_sync
51+
bluetooth.host.adv.periodic.per_adv_long_data:
52+
no_build: true
53+
harness_config:
54+
bsim_exe_name:
55+
- tests_bsim_bluetooth_host_adv_periodic_prj_long_data_conf
56+
bsim_test_ids:
57+
- per_adv_long_data_advertiser
58+
- per_adv_long_data_sync
59+
bluetooth.host.adv.periodic.per_adv_conn_privacy:
60+
no_build: true
61+
harness_config:
62+
bsim_exe_name:
63+
- tests_bsim_bluetooth_host_adv_periodic_prj_conf
64+
bsim_test_ids:
65+
- per_adv_conn_privacy_advertiser
66+
- per_adv_conn_privacy_sync
67+
bluetooth.host.adv.periodic.per_adv_not_scanning:
68+
no_build: true
69+
harness_config:
70+
bsim_exe_name:
71+
- tests_bsim_bluetooth_host_adv_periodic_prj_conf
72+
bsim_test_ids:
73+
- per_adv_advertiser
74+
- per_adv_sync_app_not_scanning
75+
bluetooth.host.adv.periodic.per_adv_app_not_scanning_coded:
76+
no_build: true
77+
harness_config:
78+
bsim_exe_name:
79+
- tests_bsim_bluetooth_host_adv_periodic_prj_coded_conf
80+
bsim_test_ids:
81+
- per_adv_advertiser_coded_phy
82+
- per_adv_sync_app_not_scanning
Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,71 @@
11
common:
2-
build_only: true
32
tags:
43
- bluetooth
54
platform_allow:
65
- nrf52_bsim/native
76
harness: bsim
7+
timeout: 10
8+
harness_config:
9+
bsim_verbosity: 2
10+
bsim_sim_length: 60e6
11+
bsim_options:
12+
- -RealEncryption=1
813

914
tests:
10-
bluetooth.host.att.eatt.autoconnect:
15+
bluetooth.host.att.eatt.build_autoconnect:
16+
build_only: true
1117
harness_config:
12-
bsim_exe_name: tests_bsim_bluetooth_host_att_eatt_prj_autoconnect_conf
18+
bsim_exe_name:
19+
- tests_bsim_bluetooth_host_att_eatt_prj_autoconnect_conf
1320
extra_args:
1421
EXTRA_CONF_FILE=prj_autoconnect.conf
22+
bluetooth.host.att.eatt.build_lowres:
23+
build_only: true
24+
harness_config:
25+
bsim_exe_name:
26+
- tests_bsim_bluetooth_host_att_eatt_prj_lowres_conf
27+
extra_args:
28+
EXTRA_CONF_FILE=prj_lowres.conf
29+
bluetooth.host.att.eatt.autoconnect:
30+
no_build: true
31+
harness_config:
32+
bsim_exe_name:
33+
- tests_bsim_bluetooth_host_att_eatt_prj_autoconnect_conf
34+
bsim_test_ids:
35+
- central_autoconnect
36+
- peripheral_autoconnect
37+
bluetooth.host.att.eatt.reconfigure:
38+
no_build: true
39+
harness_config:
40+
bsim_exe_name:
41+
- tests_bsim_bluetooth_host_att_eatt_prj_autoconnect_conf
42+
bsim_test_ids:
43+
- central_reconfigure
44+
- peripheral_reconfigure
1545
bluetooth.host.adt.eatt.collision:
1646
harness_config:
17-
bsim_exe_name: tests_bsim_bluetooth_host_att_eatt_prj_collision_conf
47+
bsim_exe_name:
48+
- tests_bsim_bluetooth_host_att_eatt_prj_collision_conf
49+
bsim_test_ids:
50+
- central
51+
- peripheral
1852
bluetooth.host.att.eatt.lowres:
53+
no_build: true
1954
harness_config:
20-
bsim_exe_name: tests_bsim_bluetooth_host_att_eatt_prj_lowres_conf
55+
bsim_exe_name:
56+
- tests_bsim_bluetooth_host_att_eatt_prj_autoconnect_conf
57+
- tests_bsim_bluetooth_host_att_eatt_prj_lowres_conf
58+
bsim_test_ids:
59+
- central_lowres
60+
- peripheral_lowres
2161
extra_args:
2262
EXTRA_CONF_FILE=prj_lowres.conf
2363
bluetooth.host.att.eatt.multiple_conn:
2464
harness_config:
25-
bsim_exe_name: tests_bsim_bluetooth_host_att_eatt_prj_multiple_conn_conf
65+
bsim_exe_name:
66+
- tests_bsim_bluetooth_host_att_eatt_prj_multiple_conn_conf
67+
bsim_test_ids:
68+
- central
69+
- peripheral
2670
extra_args:
2771
EXTRA_CONF_FILE=prj_multiple_conn.conf
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
tests:
22
bluetooth.host.att.eatt_notif:
3-
build_only: true
43
tags:
54
- bluetooth
65
platform_allow:
76
- nrf52_bsim/native
87
- nrf5340bsim/nrf5340/cpunet
98
harness: bsim
9+
timeout: 2
1010
harness_config:
11-
bsim_exe_name: tests_bsim_bluetooth_host_att_eatt_notif_prj_conf
11+
bsim_exe_name:
12+
- tests_bsim_bluetooth_host_att_eatt_notif_prj_conf
13+
bsim_verbosity: 2
14+
bsim_sim_length: 30e6
15+
bsim_test_ids:
16+
- client
17+
- server
18+
bsim_options:
19+
- -RealEncryption=1
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
tests:
22
bluetooth.host.att.long_read:
3-
build_only: true
43
tags:
54
- bluetooth
65
platform_allow:
76
- nrf52_bsim/native
87
harness: bsim
8+
timeout: 2
99
harness_config:
10-
bsim_exe_name: tests_bsim_bluetooth_host_att_long_read_prj_conf
10+
bsim_exe_name:
11+
- tests_bsim_bluetooth_host_att_long_read_prj_conf
12+
bsim_verbosity: 2
13+
bsim_sim_length: 60e6
14+
bsim_test_ids:
15+
- the_test
16+
- the_test
17+
bsim_options:
18+
- -RealEncryption=1
19+
- -D=2

0 commit comments

Comments
 (0)