forked from rdkcentral/firebolt-apis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CPPSDK: manage test added (rdkcentral#189) * CPPSDK: standalone cpp test case added (rdkcentral#190) * CPPTest: CXX compilor target added (rdkcentral#191) * CPPSDK: test event sample test added (rdkcentral#192) * CPPSDK: test event sample test added * CPPSDK: more event test added * CPPSDK: test updates based on interface name changes + disable rpc-only based methods/events (rdkcentral#205) * CPPSDK: test case added for core (rdkcentral#209) * CPPSDK: test case added for core * Manage Test update based on provider integration * Manage Test update based on provider integration * Core test update to add more test case to link with provider sequence * Core/Manage test app updates * CPPSDK: templates added for metrics calls-metrics methods * CPPSDK: test updates * CPPSDK: Core test app updated with discovery.launch and watchNext * CPPSDK: Core test cases added for discovery and capabilities * CPPSDK: Core test cases updated based on openrpc generation support in features/cpp branch * CPPSDK: install command added (rdkcentral#218) * CoreTest: use has_value() check before accessing optional field (rdkcentral#222) * use cpp header for strtok (rdkcentral#228) * CPPSDK: use cpp header for strtok and cleanup (rdkcentral#230) * CPP: update based on merge with next branch (rdkcentral#237) * CPPSDK: updated Core test app to align with next branch merge changes (rdkcentral#238) * CPPSDK: Async test case updates (rdkcentral#249) * Pointed openrpc to cpp branch * Pointed openrpc to cpp branch * fix: Upgrade to latest firebolt-openrpc next build --------- Co-authored-by: Santhosh Ramani <[email protected]> Co-authored-by: Shah, Kevin <[email protected]> Co-authored-by: Jeremy LaCivita <[email protected]>
- Loading branch information
1 parent
7c6ca7e
commit 5ea5d4e
Showing
34 changed files
with
4,751 additions
and
994 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Copyright 2023 Comcast Cable Communications Management, LLC | ||
# | ||
# 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. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
cmake_minimum_required(VERSION 3.3) | ||
|
||
project(FireboltCoreSDKTests) | ||
|
||
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) | ||
set(CMAKE_INSTALL_PREFIX "${SYSROOT_PATH}/usr" CACHE INTERNAL "" FORCE) | ||
set(CMAKE_PREFIX_PATH ${SYSROOT_PATH}/usr/lib/cmake CACHE INTERNAL "" FORCE) | ||
endif() | ||
|
||
list(APPEND CMAKE_MODULE_PATH | ||
"${SYSROOT_PATH}/usr/lib/cmake" | ||
"${SYSROOT_PATH}/tools/cmake") | ||
message("FIREBOLT_PATH inside cmake " ${FIREBOLT_PATH}) | ||
if (FIREBOLT_PATH) | ||
set(CMAKE_FIREBOLT_PATH | ||
"${FIREBOLT_PATH}/usr/lib/cmake/Firebolt" | ||
"${FIREBOLT_PATH}/usr/lib/cmake/FireboltSDK") | ||
list(APPEND CMAKE_PREFIX_PATH ${CMAKE_FIREBOLT_PATH}) | ||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_FIREBOLT_PATH}) | ||
else () | ||
set(FIREBOLT_PATH "${SYSROOT_PATH}" CACHE INTERNAL "" FORCE) | ||
endif () | ||
|
||
find_package(WPEFramework CONFIG REQUIRED) | ||
find_package(${NAMESPACE}Core CONFIG REQUIRED) | ||
find_package(Firebolt CONFIG REQUIRED) | ||
find_package(${FIREBOLT_NAMESPACE}SDK CONFIG REQUIRED) | ||
|
||
set(TESTAPP TestFireboltCore) | ||
|
||
message("Setup ${TESTAPP}") | ||
|
||
add_executable(${TESTAPP} CoreSDKTest.cpp Main.cpp) | ||
|
||
target_link_libraries(${TESTAPP} | ||
PRIVATE | ||
${NAMESPACE}Core::${NAMESPACE}Core | ||
${FIREBOLT_NAMESPACE}SDK::${FIREBOLT_NAMESPACE}SDK | ||
) | ||
|
||
target_include_directories(${TESTAPP} | ||
PRIVATE | ||
$<BUILD_INTERFACE:${FIREBOLT_PATH}/usr/include/${FIREBOLT_NAMESPACE}SDK> | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SRC_DIR}/> | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SRC_DIR}/../> | ||
) | ||
|
||
if (POLYMORPHICS_REDUCER_METHODS) | ||
target_compile_definitions(${TESTAPP} | ||
PUBLIC | ||
POLYMORPHICS_REDUCER_METHODS=1) | ||
endif() | ||
|
||
set_target_properties(${TESTAPP} PROPERTIES | ||
CXX_STANDARD 17 | ||
CXX_STANDARD_REQUIRED YES | ||
) | ||
|
||
add_custom_command( | ||
TARGET ${TESTAPP} | ||
POST_BUILD | ||
COMMENT "=================== Installing TestApp ======================" | ||
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/${FIREBOLT_NAMESPACE}/usr/bin | ||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/${TESTAPP} ${CMAKE_BINARY_DIR}/${FIREBOLT_NAMESPACE}/usr/bin | ||
) |
Oops, something went wrong.