option(BUILD_UNIT_TESTS "Build unit tests?" ON)
option(BUILD_INTEGRATION_TESTS "Build integration tests?" ON)
option(BUILD_SYSTEM_INTEGRATION_TESTS "Build system integration tests?" ON)
option(
USE_PLATFORM_GTEST_GMOCK
"Resolve dependency to gtest and gmock from the system?"
ON
)
include(AddGtestGmock)
### copy test resources and settings ##########################################
macro(CONFIGURE_TEST_FILES targetDirectory)
set(TEST_FILES
"AccessControlNoPermission.entries"
"AccessControlYesPermission.entries"
"AccessStoreTest.persist"
"AclRclJoynrClusterControllerRuntimeTest.settings"
"application1_ACL_RCL_Permissions.json"
"application2_ACL_RCL_Permissions.json"
"application3_ACL_RCL_Permissions.json"
"application4_ACL_RCL_Permissions.json"
"application5_ACL_RCL_Permissions.json"
"integrationtest.settings"
"websocket-cc-tls.settings"
"websocket-libjoynr-tls.settings"
"websocket-libjoynr-non-tls.settings"
"uds-libjoynr.settings"
"CCSettingsWithAccessControlDisabled.settings"
"CCSettingsWithAccessControlEnabled.settings"
"CCSettingsWithAccessControlEnabledAndAclFilePathSet.settings"
"CCSettingsWithGlobalDiscovery.settings"
"CCSettingsWithMessageQueueLimit.settings"
"CCSettingsWithUdsDisabled.settings"
"CCSettingsWithWebSocketDisabled.settings"
"MqttSenderTestWithMaxMessageSizeLimits1.settings"
"MqttSenderTestWithMaxMessageSizeLimits2.settings"
"MqttSystemIntegrationTest1.settings"
"MqttSystemIntegrationTest2.settings"
"MqttOverTLSSystemIntegrationTest1.settings"
"MqttOverTLSSystemIntegrationTest2.settings"
"MqttJoynrClusterControllerRuntimeTest.settings"
"MqttJoynrClusterControllerRuntimeTlsOnNoCertificatesTest.settings"
"MqttMB_JoynrClusterControllerRuntimeTest.settings"
"MqttMB_JoynrClusterControllerRuntimeEmptyGbid.settings"
"MqttMB_JoynrClusterControllerRuntimeMisconfiguredTest.settings"
"MqttMessagingSettingsTest.settings"
"MqttMessagingSettingsWithGbidTest.settings"
"MessagingSettingsDiscoveryEntryExpiryIntervalMs.settings"
"MessagingSettingsDiscardUnroutableRepliesAndPublications.settings"
"libjoynrSystemIntegration1.settings"
"libjoynrSystemIntegration2.settings"
"persistency-cc-disabled.settings"
"persistency-cc-enabled.settings"
"ca.crt"
"testclient.pem"
"LDAS_checkPermissionToAdd.json"
)
foreach(testFile ${TEST_FILES})
configure_file(
"resources/${testFile}"
"${targetDirectory}/test-resources/${testFile}"
@ONLY
)
endforeach()
endmacro(CONFIGURE_TEST_FILES)
if(${CMAKE_GENERATOR} MATCHES "Visual Studio")
CONFIGURE_TEST_FILES("${JOYNR_BINARY_DIR}/Debug")
CONFIGURE_TEST_FILES("${JOYNR_BINARY_DIR}/Release")
else()
CONFIGURE_TEST_FILES(${JOYNR_BINARY_DIR})
endif(${CMAKE_GENERATOR} MATCHES "Visual Studio")
file(COPY "resources/ListOfCapabilitiesToInject.json"
DESTINATION "${JOYNR_BINARY_DIR}/test-resources/")
set(MULTIPLE_ACL_RCL_TEST_FILES
"MasterAccessTable.json"
"MasterRegistrationTable.json"
"OwnerRegistrationTable.json"
"OwnerAccessTable.json"
)
foreach(testFile ${MULTIPLE_ACL_RCL_TEST_FILES})
file(COPY "resources/${testFile}"
DESTINATION "${JOYNR_BINARY_DIR}/test-resources/multiple-acl-rcl-resources/")
endforeach()
### set up stuff common for all test targets ##################################
if(${GENERATE_SOURCES})
JoynrGenerator(
OUTPUTPATH "${CMAKE_CURRENT_SOURCE_DIR}/gen"
MODELPATH "${CMAKE_CURRENT_SOURCE_DIR}/../../basemodel/src/test/franca"
GENERATION_LANGUAGE "cpp"
)
JoynrGenerator(
OUTPUTPATH "${CMAKE_CURRENT_SOURCE_DIR}/gen-with-version"
MODELPATH "${CMAKE_CURRENT_SOURCE_DIR}/../../basemodel/src/test/franca-with-version"
GENERATION_LANGUAGE "cpp"
ADD_VERSION_TO none
)
JoynrGenerator(
OUTPUTPATH "${CMAKE_CURRENT_SOURCE_DIR}/gen-with-version"
MODELPATH "${CMAKE_CURRENT_SOURCE_DIR}/../../basemodel/src/test/franca-with-version"
GENERATION_LANGUAGE "cpp"
ADD_VERSION_TO package
)
endif(${GENERATE_SOURCES})
file(
GLOB_RECURSE JoynrTest_GENSOURCES
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"gen*/*.cpp"
)
file(
GLOB_RECURSE JoynrTest_GENHEADERS
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"gen*/*.h"
)
add_library(TestGenerated SHARED
${JoynrTest_GENSOURCES}
${JoynrTest_GENHEADERS}
)
# add needed dependencies by linking to target Joynr
target_link_libraries(TestGenerated
PUBLIC Joynr::JoynrLib
)
target_include_directories(
TestGenerated
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/gen/include"
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/gen-with-version/include"
)
## Collect link targets for tests
set(test_TARGET_LIBRARIES)
# Visual Studio uses different directories for RELEASE and DEBUG
if(${CMAKE_GENERATOR} MATCHES "Visual Studio")
set(
GMOCK_LINK_LIBRARY
optimized ${googlemock_binary_dir}/Release/${CMAKE_FIND_LIBRARY_PREFIXES}gmock${CMAKE_FIND_LIBRARY_SUFFIXES}
debug ${googlemock_binary_dir}/Debug/${CMAKE_FIND_LIBRARY_PREFIXES}gmock${CMAKE_FIND_LIBRARY_SUFFIXES}
)
set(
GTEST_LINK_LIBRARY
optimized ${googletest_binary_dir}/Release/${CMAKE_FIND_LIBRARY_PREFIXES}gtest${CMAKE_FIND_LIBRARY_SUFFIXES}
debug ${googletest_binary_dir}/Debug/${CMAKE_FIND_LIBRARY_PREFIXES}gtest${CMAKE_FIND_LIBRARY_SUFFIXES}
)
list(
APPEND test_TARGET_LIBRARIES
${GTEST_LINK_LIBRARY}
${GMOCK_LINK_LIBRARY}
)
else()
list(
APPEND test_TARGET_LIBRARIES
${GTEST_LIBRARIES}
${GMOCK_LIBRARIES}
)
endif(${CMAKE_GENERATOR} MATCHES "Visual Studio")
# Add additional boost dependencies for tests
list(APPEND JOYNR_BOOST_REQUIRED_COMPONENTS regex)
find_package(Boost ${JOYNR_BOOST_REQUIRED_VERSION} REQUIRED
COMPONENTS ${JOYNR_BOOST_REQUIRED_COMPONENTS}
)
include(CheckBoostImportTargets)
list(
APPEND test_TARGET_LIBRARIES
Boost::regex # Used in "JoynrTest.cpp"
)
## Collect common header files for tests
set(
test_HEADERS
"JoynrTest.h"
"PrettyPrint.h"
"utils/PtrUtils.h"
"utils/TimeUtils.h"
"utils/TestRunnable.h"
"utils/TestLibJoynrWebSocketRuntime.h"
"utils/MyTestProvider.h"
)
## Collect common source files for tests
set(
test_SOURCES
"JoynrTest.cpp"
"PrettyPrint.cpp"
"utils/TestRunnable.cpp"
"TestMain.cpp"
)
################
# Mock objects #
################
if(${BUILD_UNIT_TESTS} OR ${BUILD_INTEGRATION_TESTS} OR ${BUILD_SYSTEM_INTEGRATION_TESTS})
set(
MOCK_SOURCES
mock/MockSubscriptionListener.h
mock/MockCallback.h
mock/MockCapabilitiesStorage.h
mock/MockDiscovery.h
mock/MockProvider.cpp
mock/MockProvider.h
mock/MockDispatcher.h
mock/MockMessagingStub.h
mock/MockMessagingStubFactory.h
mock/MockMessageRouter.h
mock/MockPublicationSender.h
mock/MockJoynrClusterControllerMqttConnectionData.h
mock/MockProxyBuilder.h
mock/MockGlobalCapabilitiesDirectoryClient.h
mock/MockGlobalCapabilitiesDirectoryProxy.h
mock/MockSubscriptionManager.h
mock/MockSubscriptionCallback.h
mock/MockParticipantIdStorage.h
mock/MockLocalDomainAccessController.h
mock/MockLocationUpdatedSelectiveFilter.h
mock/MockMqttMessagingSkeleton.h
mock/MockMosquittoConnection.h
mock/MockAccessController.h
mock/MockTransportStatus.h
mock/MockClusterControllerSignalHandler.h
mock/MockWebSocketSendInterface.h
mock/MockWebSocketClient.h
mock/MockLocalCapabilitiesDirectory.h
mock/MockLocalCapabilitiesD
没有合适的资源?快使用搜索试试~ 我知道了~
joynr:与传输协议无关的(MQTT,HTTP,WebSocket等),基于Franca IDL的通信框架,支持多种通信范例(...
共3482个文件
java:1264个
cpp:336个
h:314个
需积分: 49 11 下载量 88 浏览量
2021-02-03
19:51:08
上传
评论
收藏 7.94MB ZIP 举报
温馨提示
什么是joynr? joynr是一个Java,C ++和JavaScript应用程序的基于Web的通信框架,无论它们是部署在消费类设备,车辆,后端基础架构还是云中,它们都希望与其他应用程序进行交互。 joynr使编写分布式应用程序变得容易,因为它: 负责确定最合适的通信范例以与所需端点进行对话 为joynr框架提供了一个简单的应用程序编程接口 加快新应用程序的集成 ...让您专注于构建分布式应用程序。 我该怎么写joynr? joynr正确地写为“ joynr”。 它不是缩写,也不是单词的组合。 文献资料 请浏览我们的文档以获取更多信息: - 简介 有关joynr的常规信息 -用于
资源推荐
资源详情
资源评论
收起资源包目录
joynr:与传输协议无关的(MQTT,HTTP,WebSocket等),基于Franca IDL的通信框架,支持多种通信范例(RPC,Pub-Sub,广播等) (3482个子文件)
JoynrBinder.aidl 110B
gradlew.bat 3KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
capabilities 6KB
.clang-format 2KB
ObjectLibraryTargetUtils.cmake 10KB
JoynrGeneratorConfig.cmake 4KB
AddGtestGmock.cmake 4KB
CodeCoverage.cmake 4KB
AddClangTidy.cmake 3KB
AddExternalProject.cmake 3KB
CheckBoostImportTargets.cmake 3KB
Sanitizers.cmake 2KB
AddClangFormat.cmake 2KB
OutofdirTargetSources.cmake 1KB
LocateProgram.cmake 772B
AddIncludeWhatYouUse.cmake 758B
SetCppStandard.cmake 752B
CheckMOCOCRWImportTargets.cmake 677B
JoynrGeneratorConfigVersion.cmake 640B
CheckMosquittoImportTargets.cmake 605B
CheckMosquittoImportTargets.cmake 605B
Findmosquitto.cmake 492B
FindGMock.cmake 411B
cmake-registry-path-to-JoynrGeneratorConfig.cmake 36B
mosquitto.conf 36KB
openssl.conf 2KB
mosquitto.conf 458B
mosquitto-test.conf 49B
LocalCapabilitiesDirectoryTest.cpp 237KB
CcMessageRouterTest.cpp 92KB
ArbitratorTest.cpp 88KB
LocalCapabilitiesDirectory.cpp 68KB
PublicationManagerTest.cpp 66KB
LocalDomainAccessStoreTest.cpp 62KB
IltProvider.cpp 55KB
LibJoynrMessageRouterTest.cpp 49KB
PublicationManager.cpp 48KB
CombinedEnd2EndTest.cpp 47KB
JoynrClusterControllerRuntime.cpp 45KB
CcMessageRouter.cpp 41KB
GlobalCapabilitiesDirectoryClientTest.cpp 41KB
JsonSerializerTest.cpp 37KB
MosquittoConnection.cpp 36KB
IltConsumerAsyncMethodTest.cpp 35KB
ClusterControllerSettings.cpp 34KB
MessagingSettings.cpp 33KB
AbstractSyncAsyncTest.cpp 33KB
IltConsumerBroadcastSubscriptionTest.cpp 32KB
End2EndBroadcastTest.cpp 32KB
LibJoynrMessageRouter.cpp 29KB
SubscriptionTest.cpp 28KB
AbstractMessageRouter.cpp 28KB
JoynrClusterControllerRuntimeTest.cpp 28KB
LocalDomainAccessStore.cpp 27KB
PublicationManagerTtlUpliftTest.cpp 26KB
SubscriptionManager.cpp 26KB
Dispatcher.cpp 26KB
IltConsumerSyncMethodTest.cpp 24KB
LocalCapabilitiesDirectoryEmptyGbidTest.cpp 24KB
AccessControlListEditorTest.cpp 24KB
LocalCapabilitiesDirectoryStoreTest.cpp 22KB
UdsServerTest.cpp 21KB
CapabilitiesRegistrarTest.cpp 20KB
Arbitrator.cpp 20KB
MessageRouterTest.cpp 20KB
AccessControllerTest.cpp 19KB
GlobalCapabilitiesDirectoryClient.cpp 19KB
StdComplexDataTypeTest.cpp 19KB
MyRadioConsumerApplication.cpp 19KB
MqttMessagingSkeletonTest.cpp 19KB
DispatcherTest.cpp 19KB
LocalDomainAccessControllerTest.cpp 18KB
GlobalCapabilitiesDirectoryIntegrationTest.cpp 18KB
JoynrJsonSerializerTest.cpp 18KB
LocalDiscoveryAggregatorTest.cpp 18KB
ConsumerTest.cpp 17KB
RoutingTableTest.cpp 17KB
SubscriptionManagerTest.cpp 17KB
MessagingSettingsTest.cpp 17KB
LibJoynrRuntime.cpp 17KB
MosquittoConnectionTest.cpp 15KB
End2EndSubscriptionTest.cpp 15KB
RequestReplySerializerTest.cpp 15KB
IltConsumerGetterSetterTest.cpp 15KB
TaskSequencerTest.cpp 14KB
LCDUtilTest.cpp 14KB
MessageSender.cpp 14KB
RequestInterpreterTest.cpp 14KB
LocalCapabilitiesDirectoryStore.cpp 14KB
End2EndBroadcastTestBase.cpp 14KB
MessageQueueTest.cpp 14KB
SubscriptionManagerMulticastTest.cpp 13KB
UdsClientTest.cpp 13KB
共 3482 条
- 1
- 2
- 3
- 4
- 5
- 6
- 35
资源评论
人间发财树
- 粉丝: 27
- 资源: 4560
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功