Skip to content

Commit

Permalink
Merge pull request rdkcentral#5935 from ANANTHMARIMUTHU/sprint/24Q4 (r…
Browse files Browse the repository at this point in the history
…dkcentral#5994) (rdkcentral#6000)

RDK-52708 - Add Unit Tests for RDKServices (Thunder Plugins) - Phase 10

Co-authored-by: DamianoBaroneSky <[email protected]>
  • Loading branch information
ANANTHMARIMUTHU and DamianoBaroneSky authored Jan 13, 2025
1 parent 3a7b76a commit 5b98745
Show file tree
Hide file tree
Showing 8 changed files with 3,939 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/L1-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ jobs:
pkg.h
secure_wrapper.h
wpa_ctrl.h
btmgr.h
&&
cp -r /usr/include/gstreamer-1.0/gst /usr/include/glib-2.0/* /usr/lib/x86_64-linux-gnu/glib-2.0/include/* /usr/local/include/trower-base64/base64.h .
Expand Down Expand Up @@ -294,6 +295,7 @@ jobs:
-DPLUGIN_TEXTTOSPEECH=ON
-DPLUGIN_SYSTEMAUDIOPLAYER=ON
-DPLUGIN_MIRACAST=ON
-DPLUGIN_BLUETOOTH=ON
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
&&
cmake --build build/rdkservices -j8
Expand Down
2 changes: 2 additions & 0 deletions Bluetooth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)

set_source_files_properties(Bluetooth.cpp PROPERTIES COMPILE_FLAGS "-fexceptions")

list(APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/")

Expand Down
4 changes: 4 additions & 0 deletions Tests/L1Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ add_executable(${PROJECT_NAME}
../mocks/rdkshell.cpp
../mocks/opkgMock.cpp
../mocks/WpaCtrl.cpp
../mocks/BluetoothMocks.cpp
)

set_source_files_properties(
Expand Down Expand Up @@ -102,6 +103,7 @@ include_directories(../../LocationSync
../../Miracast/MiracastService/P2P
../../Miracast/MiracastPlayer
../../Miracast/MiracastPlayer/RTSP
../../Bluetooth
)
link_directories(../../LocationSync
../../SecurityAgent
Expand Down Expand Up @@ -141,6 +143,7 @@ link_directories(../../LocationSync
../../TextToSpeech
../../SystemAudioPlayer
../../Miracast
../../Bluetooth
)

target_link_libraries(${PROJECT_NAME}
Expand Down Expand Up @@ -184,6 +187,7 @@ target_link_libraries(${PROJECT_NAME}
${NAMESPACE}SystemAudioPlayer
${NAMESPACE}MiracastService
${NAMESPACE}MiracastPlayer
${NAMESPACE}Bluetooth
)

target_include_directories(${PROJECT_NAME}
Expand Down
2,413 changes: 2,413 additions & 0 deletions Tests/L1Tests/tests/test_Bluetooth.cpp

Large diffs are not rendered by default.

Loading

0 comments on commit 5b98745

Please sign in to comment.