Skip to content

Commit

Permalink
CPPSDK: test case added for core (rdkcentral#209)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
HaseenaSainul authored Jan 12, 2024
1 parent abb7565 commit 12f0039
Show file tree
Hide file tree
Showing 21 changed files with 3,675 additions and 1,121 deletions.
3 changes: 2 additions & 1 deletion src/sdks/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"validate": "npx firebolt-openrpc validate --input ./dist/firebolt-core-open-rpc.json",
"sdk": "npx firebolt-openrpc sdk --input ./dist/firebolt-core-open-rpc.json --template ./src/js --output ./build/javascript/src --static-module Platform",
"native": "npx firebolt-openrpc sdk --input ./dist/firebolt-core-open-rpc.json --template ./src/cpp --output ./build/c/src --static-module Platform --language ../../../node_modules/@firebolt-js/openrpc/languages/c",
"cpp": "npx firebolt-openrpc sdk --input ./dist/firebolt-core-open-rpc.json --template ./src/cpp --output ./build/cpp/src --static-module Platform --language ../../../node_modules/@firebolt-js/openrpc/languages/cpp",
"compile": "cd ../../.. && npm run compile",
"slice": "npx firebolt-openrpc slice -i ../../../dist/firebolt-open-rpc.json --sdk ./sdk.config.json -o ./dist/firebolt-core-open-rpc.json",
"docs": "npx firebolt-openrpc docs --input ./dist/firebolt-core-open-rpc.json --output build/docs/markdown --as-path",
Expand Down Expand Up @@ -48,4 +49,4 @@
"sdk"
],
"license": "Apache-2.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ set(TESTAPP TestFireboltCore)

message("Setup ${TESTAPP}")

add_executable(${TESTAPP} main.c)
add_executable(${TESTAPP} CoreSDKTest.cpp Main.cpp)

target_link_libraries(${TESTAPP}
PRIVATE
Expand All @@ -61,6 +61,17 @@ target_include_directories(${TESTAPP}
$<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
Expand Down
Loading

0 comments on commit 12f0039

Please sign in to comment.