Skip to content

Commit

Permalink
Thunder R2 needs different 0001-Add-TextToSpeech-Interface.patch. So …
Browse files Browse the repository at this point in the history
…added to resolve the patch issue.
  • Loading branch information
Dosakaya committed Jun 20, 2024
1 parent c0ad175 commit 03db39f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/L2-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
run: >
cd "${{github.workspace}}/ThunderInterfaces"
&&
git apply "${{github.workspace}}/rdkservices/files/0001-Add-TextToSpeech-Interface.patch"
git apply "${{github.workspace}}/rdkservices/Tests/L2Tests/patches/0001-Add-TextToSpeech-Interface.patch"
- name: Build ThunderInterfaces
run: >
Expand Down
21 changes: 14 additions & 7 deletions Tests/L2Tests/L2TestsPlugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,27 @@ 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
L2TestsMock.cpp
tests/SystemService_L2Test.cpp
tests/UsbAccess_L2Test.cpp
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)

# 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 tests/VerifyContracts.cpp)
add_library(${MODULE_NAME} SHARED tests/Warehouse_L2Test.cpp)
endif(USE_THUNDER_R4)
endif(NOT USE_THUNDER_R4)

set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
Expand Down
12 changes: 12 additions & 0 deletions Tests/L2Tests/patches/0001-Add-TextToSpeech-Interface.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/interfaces/ITextToSpeech.h b/interfaces/ITextToSpeech.h
index d28359e..4d20ac9 100644
--- a/interfaces/ITextToSpeech.h
+++ b/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

0 comments on commit 03db39f

Please sign in to comment.