Skip to content

Commit e24c4ec

Browse files
committed
style: tests: apply coding style on CMakeLists.txt files
Apply the CMake style guidelines to CMakeList.txt files in tests/. Signed-off-by: Josuah Demangeon <me@josuah.net>
1 parent 0d2d4c7 commit e24c4ec

File tree

115 files changed

+619
-577
lines changed

Some content is hidden

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

115 files changed

+619
-577
lines changed

tests/application_development/code_relocation/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ zephyr_code_relocate(FILES ${ZEPHYR_BASE}/kernel/sem.c ${RAM_PHDR} LOCATION RAM
4343

4444
if(CONFIG_RELOCATE_TO_ITCM)
4545
zephyr_code_relocate(FILES ${ZEPHYR_BASE}/lib/libc/minimal/source/string/string.c
46-
LOCATION ITCM_TEXT)
46+
LOCATION ITCM_TEXT)
4747
endif()
4848

4949
zephyr_linker_sources(SECTIONS custom-sections.ld)

tests/bluetooth/addr/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
55
project(app)
66

77
target_sources(app PRIVATE
8-
src/test_bt_addr_le_eq.c
9-
src/test_bt_addr_from_str.c
8+
src/test_bt_addr_le_eq.c
9+
src/test_bt_addr_from_str.c
1010
)

tests/bluetooth/controller/ctrl_sw_privacy_unit/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
77
project(bluetooth_ctrl_sw_privacy)
88

99
zephyr_library_include_directories(
10-
${ZEPHYR_BASE}/subsys/bluetooth
11-
${ZEPHYR_BASE}/subsys/bluetooth/controller
12-
${ZEPHYR_BASE}/subsys/bluetooth/controller/include
13-
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
14-
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic/lll
10+
${ZEPHYR_BASE}/subsys/bluetooth
11+
${ZEPHYR_BASE}/subsys/bluetooth/controller
12+
${ZEPHYR_BASE}/subsys/bluetooth/controller/include
13+
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
14+
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic/lll
1515
)
1616

1717
FILE(GLOB app_sources src/*.c)

tests/bluetooth/controller/uut/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ add_library(uut STATIC
2424

2525
if(CONFIG_BT_CTLR_PHY)
2626
target_sources(uut PRIVATE
27-
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp_phy.c
28-
)
27+
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp_phy.c
28+
)
2929
endif()
3030

3131
if(CONFIG_BT_CTLR_LE_ENC)
3232
target_sources(uut PRIVATE
33-
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp_enc.c
34-
)
33+
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp_enc.c
34+
)
3535
endif()
3636

3737
if(CONFIG_BT_CTLR_SYNC_TRANSFER_SENDER OR CONFIG_BT_CTLR_SYNC_TRANSFER_RECEIVER)
3838
target_sources(uut PRIVATE
3939
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp_past.c
40-
)
40+
)
4141
endif()
4242

4343

tests/bluetooth/df/connection_cte_req/CMakeLists.txt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,21 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
88
project(bluetooth_df_connection_cte_req)
99

1010
FILE(GLOB app_sources src/*.c)
11-
SET(common_sources ${CMAKE_CURRENT_SOURCE_DIR}/../common/src/bt_common.c
12-
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/bt_conn_common.c
13-
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/radio_df_stub.c)
11+
SET(common_sources
12+
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/bt_common.c
13+
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/bt_conn_common.c
14+
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/radio_df_stub.c
15+
)
1416

1517
target_sources(app PRIVATE ${common_sources} ${app_sources})
1618
target_include_directories(app PRIVATE
17-
${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
19+
${CMAKE_CURRENT_SOURCE_DIR}/../common/include
20+
)
1821

1922
zephyr_library_include_directories(
20-
${ZEPHYR_BASE}/subsys/bluetooth/
21-
${ZEPHYR_BASE}/subsys/bluetooth/controller/
22-
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
23+
${ZEPHYR_BASE}/subsys/bluetooth/
24+
${ZEPHYR_BASE}/subsys/bluetooth/controller/
25+
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
2326
)
2427

2528
if(CONFIG_SOC_COMPATIBLE_NRF)

tests/bluetooth/df/connection_cte_tx_params/CMakeLists.txt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,21 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
88
project(bluetooth_df_connection_cte_tx_params)
99

1010
FILE(GLOB app_sources src/*.c)
11-
SET(common_sources ${CMAKE_CURRENT_SOURCE_DIR}/../common/src/bt_common.c
12-
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/bt_conn_common.c
13-
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/radio_df_stub.c)
11+
SET(common_sources
12+
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/bt_common.c
13+
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/bt_conn_common.c
14+
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/radio_df_stub.c
15+
)
1416

1517
target_sources(app PRIVATE ${common_sources} ${app_sources})
1618
target_include_directories(app PRIVATE
17-
${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
19+
${CMAKE_CURRENT_SOURCE_DIR}/../common/include
20+
)
1821

1922
zephyr_library_include_directories(
20-
${ZEPHYR_BASE}/subsys/bluetooth/
21-
${ZEPHYR_BASE}/subsys/bluetooth/controller/
22-
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
23+
${ZEPHYR_BASE}/subsys/bluetooth/
24+
${ZEPHYR_BASE}/subsys/bluetooth/controller/
25+
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
2326
)
2427

2528
if(CONFIG_SOC_COMPATIBLE_NRF)

tests/bluetooth/df/connectionless_cte_chains/CMakeLists.txt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,20 @@ target_sources(app PRIVATE ${common_sources} ${app_sources})
1414

1515
# Include paths to allow access to functions implemented in Bluetooth LE controller
1616
target_include_directories(app PRIVATE
17-
${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
17+
${CMAKE_CURRENT_SOURCE_DIR}/../common/include
18+
)
1819
target_include_directories(app PRIVATE
19-
${ZEPHYR_BASE}/subsys/bluetooth/controller)
20+
${ZEPHYR_BASE}/subsys/bluetooth/controller
21+
)
2022
target_include_directories(app PRIVATE
21-
${ZEPHYR_BASE}/subsys/bluetooth/controller/include)
23+
${ZEPHYR_BASE}/subsys/bluetooth/controller/include
24+
)
2225
target_include_directories(app PRIVATE
23-
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw)
26+
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
27+
)
2428
target_include_directories(app PRIVATE
25-
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic)
29+
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
30+
)
2631
target_include_directories(app PRIVATE
27-
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic/lll)
32+
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic/lll
33+
)

tests/bluetooth/df/connectionless_cte_rx/CMakeLists.txt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,20 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
88
project(bluetooth_df_connectionless_cte_tx)
99

1010
FILE(GLOB app_sources src/*.c)
11-
SET(common_sources ${CMAKE_CURRENT_SOURCE_DIR}/../common/src/bt_common.c
12-
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/radio_df_stub.c)
11+
SET(common_sources
12+
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/bt_common.c
13+
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/radio_df_stub.c
14+
)
1315

1416
target_sources(app PRIVATE ${common_sources} ${app_sources})
1517
target_include_directories(app PRIVATE
16-
${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
18+
${CMAKE_CURRENT_SOURCE_DIR}/../common/include
19+
)
1720

1821
zephyr_library_include_directories(
19-
${ZEPHYR_BASE}/subsys/bluetooth/
20-
${ZEPHYR_BASE}/subsys/bluetooth/controller/
21-
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
22+
${ZEPHYR_BASE}/subsys/bluetooth/
23+
${ZEPHYR_BASE}/subsys/bluetooth/controller/
24+
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
2225
)
2326

2427
if(CONFIG_SOC_COMPATIBLE_NRF)

tests/bluetooth/df/connectionless_cte_tx/CMakeLists.txt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,20 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
88
project(bluetooth_df_connectionless_cte_tx)
99

1010
FILE(GLOB app_sources src/*.c)
11-
SET(common_sources ${CMAKE_CURRENT_SOURCE_DIR}/../common/src/bt_common.c
12-
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/radio_df_stub.c)
11+
SET(common_sources
12+
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/bt_common.c
13+
${CMAKE_CURRENT_SOURCE_DIR}/../common/src/radio_df_stub.c
14+
)
1315

1416
target_sources(app PRIVATE ${common_sources} ${app_sources})
1517
target_include_directories(app PRIVATE
16-
${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
18+
${CMAKE_CURRENT_SOURCE_DIR}/../common/include
19+
)
1720

1821
zephyr_library_include_directories(
19-
${ZEPHYR_BASE}/subsys/bluetooth/
20-
${ZEPHYR_BASE}/subsys/bluetooth/controller/
21-
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
22+
${ZEPHYR_BASE}/subsys/bluetooth/
23+
${ZEPHYR_BASE}/subsys/bluetooth/controller/
24+
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
2225
)
2326

2427
if(CONFIG_SOC_COMPATIBLE_NRF)

tests/bluetooth/host/conn/mocks/CMakeLists.txt

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@
22
# CMakeLists.txt file for creating of mocks library.
33
#
44

5-
add_library(mocks STATIC
6-
addr_internal.c
7-
att_internal.c
8-
bt_str.c
9-
buf_view.c
10-
hci_core.c
11-
id.c
12-
kernel.c
13-
l2cap_internal.c
14-
scan.c
15-
smp.c
16-
spinlock.c
17-
sys_clock.c
5+
add_library(mocks
6+
STATIC
7+
addr_internal.c
8+
att_internal.c
9+
bt_str.c
10+
buf_view.c
11+
hci_core.c
12+
id.c
13+
kernel.c
14+
l2cap_internal.c
15+
scan.c
16+
smp.c
17+
spinlock.c
18+
sys_clock.c
1819
)
1920

20-
target_include_directories(mocks PUBLIC
21-
${ZEPHYR_BASE}/tests/bluetooth/host/conn/mocks
22-
${ZEPHYR_BASE}/subsys/bluetooth
21+
target_include_directories(mocks
22+
PUBLIC
23+
${ZEPHYR_BASE}/tests/bluetooth/host/conn/mocks
24+
${ZEPHYR_BASE}/subsys/bluetooth
2325
)
2426

2527
target_compile_options(test_interface INTERFACE -include ztest.h)
2628
target_link_libraries(mocks PRIVATE test_interface)
27-
target_link_options(mocks PUBLIC
28-
"SHELL:-T ${ZEPHYR_BASE}/tests/bluetooth/host/conn/mocks/mock-sections.ld"
29+
target_link_options(mocks
30+
PUBLIC
31+
"SHELL:-T ${ZEPHYR_BASE}/tests/bluetooth/host/conn/mocks/mock-sections.ld"
2932
)
3033

31-
target_compile_options(mocks
32-
PRIVATE
33-
-DCONFIG_BT_ID_MAX=1
34-
)
34+
target_compile_options(mocks PRIVATE -DCONFIG_BT_ID_MAX=1)

0 commit comments

Comments
 (0)