Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuhammedrafi committed Aug 27, 2024
1 parent 5e4991f commit ca8ca91
Show file tree
Hide file tree
Showing 2 changed files with 206 additions and 243 deletions.
382 changes: 191 additions & 191 deletions Tests/L1Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,200 +1,200 @@
# If not stated otherwise in this file or this component's LICENSE file the
# following copyright and licenses apply:
#
# Copyright 2020 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# # If not stated otherwise in this file or this component's LICENSE file the
# # following copyright and licenses apply:
# #
# # Copyright 2020 RDK Management
# #
# # Licensed under the Apache License, Version 2.0 (the "License");
# # you may not use this file except in compliance with the License.
# # You may obtain a copy of the License at
# #
# # http://www.apache.org/licenses/LICENSE-2.0
# #
# # Unless required by applicable law or agreed to in writing, software
# # distributed under the License is distributed on an "AS IS" BASIS,
# # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# # See the License for the specific language governing permissions and
# # limitations under the License.

cmake_minimum_required(VERSION 3.8)
project(RdkServicesL1Test)
# cmake_minimum_required(VERSION 3.8)
# project(RdkServicesL1Test)

set(CMAKE_CXX_STANDARD 11)
# set(CMAKE_CXX_STANDARD 11)

find_package(${NAMESPACE}Plugins REQUIRED)
# find_package(${NAMESPACE}Plugins REQUIRED)

include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip
)
FetchContent_MakeAvailable(googletest)
file(GLOB TESTS tests/test_Network.cpp)
add_executable(${PROJECT_NAME}
${TESTS}
../mocks/Rfc.cpp
../mocks/Iarm.cpp
../mocks/RBus.cpp
../mocks/MotionDetection.cpp
../mocks/Telemetry.cpp
../mocks/Udev.cpp
../mocks/devicesettings.cpp
../mocks/HdmiCec.cpp
../mocks/thunder/Module.cpp
../mocks/Wraps.cpp
../mocks/Dobby.cpp
../mocks/rdkshell.cpp
../mocks/opkgMock.cpp
../mocks/WpaCtrl.cpp
)
# include(FetchContent)
# FetchContent_Declare(
# googletest
# URL https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip
# )
# FetchContent_MakeAvailable(googletest)
# file(GLOB TESTS tests/test_Network.cpp)
# add_executable(${PROJECT_NAME}
# ${TESTS}
# ../mocks/Rfc.cpp
# ../mocks/Iarm.cpp
# ../mocks/RBus.cpp
# ../mocks/MotionDetection.cpp
# ../mocks/Telemetry.cpp
# ../mocks/Udev.cpp
# ../mocks/devicesettings.cpp
# ../mocks/HdmiCec.cpp
# ../mocks/thunder/Module.cpp
# ../mocks/Wraps.cpp
# ../mocks/Dobby.cpp
# ../mocks/rdkshell.cpp
# ../mocks/opkgMock.cpp
# ../mocks/WpaCtrl.cpp
# )

set_source_files_properties(
tests/test_DeviceAudioCapabilities.cpp
tests/test_DeviceVideoCapabilities.cpp
tests/test_SystemServices.cpp
tests/test_Warehouse.cpp
tests/test_HdmiCec.cpp
tests/test_HdmiCec2.cpp
tests/test_HdmiCecSource.cpp
tests/test_FrontPanel.cpp
tests/test_HdmiCecSink.cpp
PROPERTIES COMPILE_FLAGS "-fexceptions")
# set_source_files_properties(
# tests/test_DeviceAudioCapabilities.cpp
# tests/test_DeviceVideoCapabilities.cpp
# tests/test_SystemServices.cpp
# tests/test_Warehouse.cpp
# tests/test_HdmiCec.cpp
# tests/test_HdmiCec2.cpp
# tests/test_HdmiCecSource.cpp
# tests/test_FrontPanel.cpp
# tests/test_HdmiCecSink.cpp
# PROPERTIES COMPILE_FLAGS "-fexceptions")

include_directories(../../LocationSync
../../SecurityAgent
../../DeviceIdentification
../../DeviceDiagnostics
../../FrameRate
../../AVInput
../../Telemetry
../../ScreenCapture
../../DataCapture
../../UsbAccess
../../Timer
../../LoggingPreferences
../../UserPreferences
../../Messenger
../../DeviceInfo
../../helpers
../../SystemServices
../../HdmiInput
../../HdcpProfile
../../Network
../../WifiManager
../../TraceControl
../../Warehouse
../../ActivityMonitor
../../MotionDetection
../../CompositeInput
../../OCIContainer
../../HdmiCec
../../HdmiCec_2
../../HdmiCecSource
../../XCast
../../FrontPanel
../../HdmiCecSink
../../RDKShell
../../MaintenanceManager
../../Packager
../../TextToSpeech
../../SystemAudioPlayer
../../Miracast/common
../../Miracast/MiracastService
../../Miracast/MiracastService/P2P
../../Miracast/MiracastPlayer
../../Miracast/MiracastPlayer/RTSP
)
link_directories(../../LocationSync
../../SecurityAgent
../../DeviceIdentification
../../DeviceDiagnostics
../../FrameRate
../../AVInput
../../Telemetry
../../ScreenCapture
../../DataCapture
../../UsbAccess
../../Timer
../../LoggingPreferences
../../SystemServices
../../UserPreferences
../../Messenger
../../DeviceInfo
../../HdmiInput
../../HdcpProfile
../../Network
../../WifiManager
../../TraceControl
../../Warehouse
../../ActivityMonitor
../../MotionDetection
../../CompositeInput
../../OCIContainer
../../HdmiCec
../../HdmiCec_2
../../HdmiCecSource
../../XCast
../../FrontPanel
../../HdmiCecSink
../../RDKShell
../../MaintenanceManager
../../Packager
../../TextToSpeech
../../SystemAudioPlayer
../../Miracast
)
# include_directories(../../LocationSync
# ../../SecurityAgent
# ../../DeviceIdentification
# ../../DeviceDiagnostics
# ../../FrameRate
# ../../AVInput
# ../../Telemetry
# ../../ScreenCapture
# ../../DataCapture
# ../../UsbAccess
# ../../Timer
# ../../LoggingPreferences
# ../../UserPreferences
# ../../Messenger
# ../../DeviceInfo
# ../../helpers
# ../../SystemServices
# ../../HdmiInput
# ../../HdcpProfile
# ../../Network
# ../../WifiManager
# ../../TraceControl
# ../../Warehouse
# ../../ActivityMonitor
# ../../MotionDetection
# ../../CompositeInput
# ../../OCIContainer
# ../../HdmiCec
# ../../HdmiCec_2
# ../../HdmiCecSource
# ../../XCast
# ../../FrontPanel
# ../../HdmiCecSink
# ../../RDKShell
# ../../MaintenanceManager
# ../../Packager
# ../../TextToSpeech
# ../../SystemAudioPlayer
# ../../Miracast/common
# ../../Miracast/MiracastService
# ../../Miracast/MiracastService/P2P
# ../../Miracast/MiracastPlayer
# ../../Miracast/MiracastPlayer/RTSP
# )
# link_directories(../../LocationSync
# ../../SecurityAgent
# ../../DeviceIdentification
# ../../DeviceDiagnostics
# ../../FrameRate
# ../../AVInput
# ../../Telemetry
# ../../ScreenCapture
# ../../DataCapture
# ../../UsbAccess
# ../../Timer
# ../../LoggingPreferences
# ../../SystemServices
# ../../UserPreferences
# ../../Messenger
# ../../DeviceInfo
# ../../HdmiInput
# ../../HdcpProfile
# ../../Network
# ../../WifiManager
# ../../TraceControl
# ../../Warehouse
# ../../ActivityMonitor
# ../../MotionDetection
# ../../CompositeInput
# ../../OCIContainer
# ../../HdmiCec
# ../../HdmiCec_2
# ../../HdmiCecSource
# ../../XCast
# ../../FrontPanel
# ../../HdmiCecSink
# ../../RDKShell
# ../../MaintenanceManager
# ../../Packager
# ../../TextToSpeech
# ../../SystemAudioPlayer
# ../../Miracast
# )

target_link_libraries(${PROJECT_NAME}
gmock_main
${NAMESPACE}Plugins::${NAMESPACE}Plugins
${NAMESPACE}DataCapture
${NAMESPACE}DeviceDiagnostics
${NAMESPACE}LocationSync
${NAMESPACE}SecurityAgent
${NAMESPACE}DeviceIdentification
${NAMESPACE}FrameRate
${NAMESPACE}AVInput
${NAMESPACE}ScreenCapture
${NAMESPACE}Telemetry
${NAMESPACE}UsbAccess
${NAMESPACE}Timer
${NAMESPACE}LoggingPreferences
${NAMESPACE}SystemServices
${NAMESPACE}UserPreferences
${NAMESPACE}Messenger
${NAMESPACE}DeviceInfo
${NAMESPACE}HdmiInput
${NAMESPACE}HdcpProfile
${NAMESPACE}Network
${NAMESPACE}WifiManager
${NAMESPACE}TraceControl
${NAMESPACE}Warehouse
${NAMESPACE}ActivityMonitor
${NAMESPACE}MotionDetection
${NAMESPACE}CompositeInput
${NAMESPACE}OCIContainer
${NAMESPACE}HdmiCec
${NAMESPACE}HdmiCec_2
${NAMESPACE}HdmiCecSource
${NAMESPACE}XCast
${NAMESPACE}FrontPanel
${NAMESPACE}HdmiCecSink
${NAMESPACE}RDKShell
${NAMESPACE}MaintenanceManager
${NAMESPACE}Packager
${NAMESPACE}TextToSpeech
${NAMESPACE}SystemAudioPlayer
${NAMESPACE}MiracastService
${NAMESPACE}MiracastPlayer
)
# target_link_libraries(${PROJECT_NAME}
# gmock_main
# ${NAMESPACE}Plugins::${NAMESPACE}Plugins
# ${NAMESPACE}DataCapture
# ${NAMESPACE}DeviceDiagnostics
# ${NAMESPACE}LocationSync
# ${NAMESPACE}SecurityAgent
# ${NAMESPACE}DeviceIdentification
# ${NAMESPACE}FrameRate
# ${NAMESPACE}AVInput
# ${NAMESPACE}ScreenCapture
# ${NAMESPACE}Telemetry
# ${NAMESPACE}UsbAccess
# ${NAMESPACE}Timer
# ${NAMESPACE}LoggingPreferences
# ${NAMESPACE}SystemServices
# ${NAMESPACE}UserPreferences
# ${NAMESPACE}Messenger
# ${NAMESPACE}DeviceInfo
# ${NAMESPACE}HdmiInput
# ${NAMESPACE}HdcpProfile
# ${NAMESPACE}Network
# ${NAMESPACE}WifiManager
# ${NAMESPACE}TraceControl
# ${NAMESPACE}Warehouse
# ${NAMESPACE}ActivityMonitor
# ${NAMESPACE}MotionDetection
# ${NAMESPACE}CompositeInput
# ${NAMESPACE}OCIContainer
# ${NAMESPACE}HdmiCec
# ${NAMESPACE}HdmiCec_2
# ${NAMESPACE}HdmiCecSource
# ${NAMESPACE}XCast
# ${NAMESPACE}FrontPanel
# ${NAMESPACE}HdmiCecSink
# ${NAMESPACE}RDKShell
# ${NAMESPACE}MaintenanceManager
# ${NAMESPACE}Packager
# ${NAMESPACE}TextToSpeech
# ${NAMESPACE}SystemAudioPlayer
# ${NAMESPACE}MiracastService
# ${NAMESPACE}MiracastPlayer
# )

target_include_directories(${PROJECT_NAME}
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
../mocks
../mocks/devicesettings
../mocks/thunder
${CMAKE_CURRENT_SOURCE_DIR}/../../OCIContainer/stubs
)
# target_include_directories(${PROJECT_NAME}
# PUBLIC
# $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
# $<INSTALL_INTERFACE:include>
# ../mocks
# ../mocks/devicesettings
# ../mocks/thunder
# ${CMAKE_CURRENT_SOURCE_DIR}/../../OCIContainer/stubs
# )

install(TARGETS ${PROJECT_NAME} DESTINATION bin)
# install(TARGETS ${PROJECT_NAME} DESTINATION bin)
Loading

0 comments on commit ca8ca91

Please sign in to comment.