Skip to content

Commit

Permalink
Merge pull request #5438 from Dosakaya/sprint/24Q2
Browse files Browse the repository at this point in the history
RDK-49561: RDKV - System Services Plugin unit Test compliance with Thunder 4.4.1
  • Loading branch information
anand-ky committed Jun 21, 2024
2 parents 2749189 + 552ecc6 commit c8eac4f
Show file tree
Hide file tree
Showing 10 changed files with 3,873 additions and 3 deletions.
404 changes: 404 additions & 0 deletions .github/workflows/L2-tests-R4-4-1.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/L2-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

jobs:
l2-tests:
name: Build and run L2 tests
name: Run L2 with Thunder R2
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
11 changes: 9 additions & 2 deletions Tests/L2Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,18 @@ set_source_files_properties(
target_link_libraries(${PROJECT_NAME}
gmock_main
${CMAKE_INSTALL_PREFIX}/lib/libWPEFrameworkCore.so
${CMAKE_INSTALL_PREFIX}/lib/libWPEFrameworkProtocols.so
${CMAKE_INSTALL_PREFIX}/lib/libWPEFrameworkTracing.so
${CMAKE_INSTALL_PREFIX}/lib/libTestMocklib.so
)

# Thudner R4 will not generate libWPEFrameworkProtocols.so, libWPEFrameworkTracing.so.
# Thudner R2 will not generate libWPEFrameworkWebSocket.so.
if (USE_THUNDER_R4)
target_link_libraries(${PROJECT_NAME} ${CMAKE_INSTALL_PREFIX}/lib/libWPEFrameworkWebSocket.so)
else ()
target_link_libraries(${PROJECT_NAME} ${CMAKE_INSTALL_PREFIX}/lib/libWPEFrameworkProtocols.so)
target_link_libraries(${PROJECT_NAME} ${CMAKE_INSTALL_PREFIX}/lib/libWPEFrameworkTracing.so)
endif (USE_THUNDER_R4)

target_compile_definitions(${PROJECT_NAME}
PRIVATE
CMAKE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}"
Expand Down
12 changes: 12 additions & 0 deletions Tests/L2Tests/L2TestsPlugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ set(MODULE_NAME ${NAMESPACE}${PLUGIN_NAME})
set(THUNDER_PORT 9998)
find_package(${NAMESPACE}Plugins REQUIRED)

# We are not running VerifyContracts,Warehouse_L2Test tests for Thunder R4 as
# this work is not in this scope. In future we will enable these tests for Thunder R4.
if(NOT USE_THUNDER_R4)
add_library(${MODULE_NAME} SHARED
Module.cpp
L2Tests.cpp
Expand All @@ -30,6 +33,15 @@ add_library(${MODULE_NAME} SHARED
tests/Telemetry_L2Test.cpp
tests/Warehouse_L2Test.cpp
tests/VerifyContracts.cpp)
else()
add_library(${MODULE_NAME} SHARED
Module.cpp
L2Tests.cpp
L2TestsMock.cpp
tests/SystemService_L2Test.cpp
tests/UsbAccess_L2Test.cpp
tests/Telemetry_L2Test.cpp)
endif(NOT USE_THUNDER_R4)

set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
Expand Down
29 changes: 29 additions & 0 deletions files/0001-Add-TextToSpeech-Interface.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Index: git/interfaces/ITextToSpeech.h
===================================================================
--- git.orig/interfaces/ITextToSpeech.h
+++ git/interfaces/ITextToSpeech.h
@@ -65,6 +65,7 @@ namespace Exchange {

virtual void Register(ITextToSpeech::INotification* sink) = 0;
virtual void Unregister(ITextToSpeech::INotification* sink) = 0;
+ virtual void RegisterWithCallsign(const string callsign,ITextToSpeech::INotification* sink) = 0;

// @property
// @brief Query the status/enable tts
@@ -80,6 +81,7 @@ namespace Exchange {
virtual uint32_t SetFallbackText(const string scenario,const string value) = 0;
virtual uint32_t SetAPIKey(const string apikey) = 0;
virtual uint32_t SetPrimaryVolDuck(const uint8_t prim) = 0;
+ virtual uint32_t SetACL(const string method,const string apps) = 0;

// @brief Retrieve tts configuration attributes
// @param config tts configuration
@@ -94,7 +96,7 @@ namespace Exchange {
// @param text for conversion
// @param speechid returns id for the text
// @param status return status
- virtual uint32_t Speak(const string text,uint32_t &speechid/* @out */,TTSErrorDetail &status/* @out */) = 0;
+ virtual uint32_t Speak(const string callsign,const string text,uint32_t &speechid/* @out */,TTSErrorDetail &status/* @out */) = 0;

// @brief Cancel the speech
// @param speechid id of text to be cancelled
Loading

0 comments on commit c8eac4f

Please sign in to comment.