summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt3832
-rw-r--r--test/benchmark_tests/CMakeLists.txt30
-rw-r--r--test/benchmark_tests/main.cpp8
-rw-r--r--test/benchmark_tests/security_tests/bm_check_credentials.cpp106
-rw-r--r--test/benchmark_tests/security_tests/bm_check_routing_credentials.cpp99
-rw-r--r--test/benchmark_tests/security_tests/bm_get_client_to_sec_client_mapping.cpp61
-rw-r--r--test/benchmark_tests/security_tests/bm_get_clients.cpp52
-rw-r--r--test/benchmark_tests/security_tests/bm_get_sec_client_to_clients_mapping.cpp60
-rw-r--r--test/benchmark_tests/security_tests/bm_is_client_allowed.cpp195
-rw-r--r--test/benchmark_tests/security_tests/bm_is_offer_allowed.cpp167
-rw-r--r--test/benchmark_tests/security_tests/bm_is_policy_update_allowed.cpp358
-rw-r--r--test/benchmark_tests/security_tests/bm_load_policies.cpp98
-rw-r--r--test/benchmark_tests/security_tests/bm_load_security_update_whitelist.cpp144
-rw-r--r--test/benchmark_tests/security_tests/bm_remove_client_to_sec_client_mapping.cpp52
-rw-r--r--test/benchmark_tests/security_tests/bm_remove_security_policy.cpp61
-rw-r--r--test/common/examples_policies/vsomeip/0_0/vsomeip_security.json255
-rw-r--r--test/common/examples_policies/vsomeip/4002200_4002200/vsomeip_security.json1556
-rw-r--r--test/common/examples_policies/vsomeip/4002201_4002201/vsomeip_security.json122
-rw-r--r--test/common/examples_policies/vsomeip/4002205_4002205/vsomeip_security.json54
-rw-r--r--test/common/examples_policies/vsomeip/4003013_4003011/vsomeip_security.json64
-rw-r--r--test/common/examples_policies/vsomeip/4003014_4003014/vsomeip_security.json1306
-rw-r--r--test/common/examples_policies/vsomeip/4003015_4003015/vsomeip_security.json82
-rw-r--r--test/common/examples_policies/vsomeip/4003016_4003016/vsomeip_security.json63
-rw-r--r--test/common/examples_policies/vsomeip/vsomeip_policy_extensions.json1
-rw-r--r--test/common/examples_policies/vsomeip/vsomeip_security.json25
-rw-r--r--test/common/utility.cpp235
-rw-r--r--test/common/utility.hpp77
-rw-r--r--test/internal_routing_disabled_acceptance_test/CMakeLists.txt37
-rw-r--r--test/internal_routing_disabled_acceptance_test/applet.cpp44
-rw-r--r--test/internal_routing_disabled_acceptance_test/applet.hpp22
-rw-r--r--test/internal_routing_disabled_acceptance_test/client.cpp152
-rw-r--r--test/internal_routing_disabled_acceptance_test/client.hpp24
-rw-r--r--test/internal_routing_disabled_acceptance_test/config.hpp12
-rw-r--r--test/internal_routing_disabled_acceptance_test/main.cpp43
-rw-r--r--test/internal_routing_disabled_acceptance_test/server.cpp132
-rw-r--r--test/internal_routing_disabled_acceptance_test/server.hpp24
-rw-r--r--test/internal_routing_disabled_acceptance_test/vsomeip.json35
-rw-r--r--test/network_tests/CMakeLists.txt4391
-rw-r--r--test/network_tests/application_tests/application_test.cpp (renamed from test/application_tests/application_test.cpp)2
-rw-r--r--test/network_tests/application_tests/application_test_availability.cpp (renamed from test/application_tests/application_test_availability.cpp)2
-rwxr-xr-xtest/network_tests/application_tests/application_test_availability_starter.sh (renamed from test/application_tests/application_test_availability_starter.sh)0
-rw-r--r--test/network_tests/application_tests/application_test_client.cpp (renamed from test/application_tests/application_test_client.cpp)0
-rw-r--r--test/network_tests/application_tests/application_test_client_availability.cpp (renamed from test/application_tests/application_test_client_availability.cpp)0
-rw-r--r--test/network_tests/application_tests/application_test_daemon.cpp (renamed from test/application_tests/application_test_daemon.cpp)0
-rw-r--r--test/network_tests/application_tests/application_test_globals.hpp (renamed from test/application_tests/application_test_globals.hpp)0
-rw-r--r--test/network_tests/application_tests/application_test_service.cpp (renamed from test/application_tests/application_test_service.cpp)0
-rw-r--r--test/network_tests/application_tests/application_test_single_process.cpp (renamed from test/application_tests/application_test_single_process.cpp)2
-rw-r--r--test/network_tests/application_tests/application_test_single_process.json (renamed from test/application_tests/application_test_single_process.json)0
-rwxr-xr-xtest/network_tests/application_tests/application_test_single_process_starter.sh (renamed from test/application_tests/application_test_single_process_starter.sh)0
-rwxr-xr-xtest/network_tests/application_tests/application_test_starter.sh (renamed from test/application_tests/application_test_starter.sh)4
-rw-r--r--test/network_tests/application_tests/conf/application_test.json.in (renamed from test/application_tests/conf/application_test.json.in)0
-rw-r--r--test/network_tests/application_tests/conf/application_test_daemon.json.in (renamed from test/application_tests/conf/application_test_daemon.json.in)0
-rw-r--r--test/network_tests/application_tests/conf/application_test_no_dispatch_threads.json.in (renamed from test/application_tests/conf/application_test_no_dispatch_threads.json.in)0
-rw-r--r--test/network_tests/application_tests/conf/application_test_no_dispatch_threads_daemon.json.in (renamed from test/application_tests/conf/application_test_no_dispatch_threads_daemon.json.in)0
-rw-r--r--test/network_tests/big_payload_tests/big_payload_test_client.cpp (renamed from test/big_payload_tests/big_payload_test_client.cpp)2
-rw-r--r--test/network_tests/big_payload_tests/big_payload_test_client.hpp (renamed from test/big_payload_tests/big_payload_test_client.hpp)0
-rwxr-xr-xtest/network_tests/big_payload_tests/big_payload_test_client_local_start.sh (renamed from test/big_payload_tests/big_payload_test_client_local_start.sh)0
-rwxr-xr-xtest/network_tests/big_payload_tests/big_payload_test_external_client_start.sh (renamed from test/big_payload_tests/big_payload_test_client_start.sh)0
-rwxr-xr-xtest/network_tests/big_payload_tests/big_payload_test_external_service_start.sh (renamed from test/big_payload_tests/big_payload_test_service_external_start.sh)0
-rwxr-xr-xtest/network_tests/big_payload_tests/big_payload_test_external_starter.sh (renamed from test/big_payload_tests/big_payload_test_external_starter.sh)18
-rw-r--r--test/network_tests/big_payload_tests/big_payload_test_globals.hpp (renamed from test/big_payload_tests/big_payload_test_globals.hpp)0
-rw-r--r--test/network_tests/big_payload_tests/big_payload_test_local.json (renamed from test/big_payload_tests/big_payload_test_local.json)0
-rw-r--r--test/network_tests/big_payload_tests/big_payload_test_local_limited.json (renamed from test/big_payload_tests/big_payload_test_local_limited.json)0
-rw-r--r--test/network_tests/big_payload_tests/big_payload_test_local_queue_limited.json (renamed from test/big_payload_tests/big_payload_test_local_queue_limited.json)2
-rw-r--r--test/network_tests/big_payload_tests/big_payload_test_local_random.json (renamed from test/big_payload_tests/big_payload_test_local_random.json)0
-rwxr-xr-xtest/network_tests/big_payload_tests/big_payload_test_local_starter.sh (renamed from test/big_payload_tests/big_payload_test_local_starter.sh)0
-rwxr-xr-xtest/network_tests/big_payload_tests/big_payload_test_local_tcp_client_start.sh10
-rwxr-xr-xtest/network_tests/big_payload_tests/big_payload_test_local_tcp_service_start.sh24
-rwxr-xr-xtest/network_tests/big_payload_tests/big_payload_test_local_tcp_starter.sh74
-rw-r--r--test/network_tests/big_payload_tests/big_payload_test_service.cpp (renamed from test/big_payload_tests/big_payload_test_service.cpp)2
-rw-r--r--test/network_tests/big_payload_tests/big_payload_test_service.hpp (renamed from test/big_payload_tests/big_payload_test_service.hpp)0
-rwxr-xr-xtest/network_tests/big_payload_tests/big_payload_test_service_local_start.sh (renamed from test/big_payload_tests/big_payload_test_service_local_start.sh)0
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client.json.in64
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client_limited.json.in52
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client_queue_limited.json.in52
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client_random.json.in52
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service.json.in68
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service_limited.json.in56
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service_queue_limited.json.in56
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service_random.json.in56
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client.json.in (renamed from test/big_payload_tests/conf/big_payload_test_tcp_client.json.in)0
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client_limited_general.json.in (renamed from test/big_payload_tests/conf/big_payload_test_tcp_client_limited_general.json.in)0
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client_queue_limited_general.json.in (renamed from test/big_payload_tests/conf/big_payload_test_tcp_client_queue_limited_general.json.in)0
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client_queue_limited_specific.json.in (renamed from test/big_payload_tests/conf/big_payload_test_tcp_client_queue_limited_specific.json.in)0
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client_random.json.in (renamed from test/big_payload_tests/conf/big_payload_test_tcp_client_random.json.in)0
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service.json.in (renamed from test/big_payload_tests/conf/big_payload_test_tcp_service.json.in)0
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service_limited_general.json.in (renamed from test/big_payload_tests/conf/big_payload_test_tcp_service_limited_general.json.in)0
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service_queue_limited_general.json.in (renamed from test/big_payload_tests/conf/big_payload_test_tcp_service_queue_limited_general.json.in)0
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service_queue_limited_specific.json.in (renamed from test/big_payload_tests/conf/big_payload_test_tcp_service_queue_limited_specific.json.in)0
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service_random.json.in (renamed from test/big_payload_tests/conf/big_payload_test_tcp_service_random.json.in)0
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_udp_client.json.in (renamed from test/big_payload_tests/conf/big_payload_test_udp_client.json.in)0
-rw-r--r--test/network_tests/big_payload_tests/conf/big_payload_test_udp_service.json.in (renamed from test/big_payload_tests/conf/big_payload_test_udp_service.json.in)0
-rw-r--r--test/network_tests/client_id_tests/client_id_test_globals.hpp (renamed from test/client_id_tests/client_id_test_globals.hpp)0
-rwxr-xr-xtest/network_tests/client_id_tests/client_id_test_master_starter.sh (renamed from test/client_id_tests/client_id_test_master_starter.sh)7
-rw-r--r--test/network_tests/client_id_tests/client_id_test_service.cpp (renamed from test/client_id_tests/client_id_test_service.cpp)2
-rwxr-xr-xtest/network_tests/client_id_tests/client_id_test_slave_starter.sh (renamed from test/client_id_tests/client_id_test_slave_starter.sh)0
-rw-r--r--test/network_tests/client_id_tests/client_id_test_utility.cpp (renamed from test/client_id_tests/client_id_test_utility.cpp)30
-rw-r--r--test/network_tests/client_id_tests/client_id_test_utility.json (renamed from test/client_id_tests/client_id_test_utility.json)0
-rw-r--r--test/network_tests/client_id_tests/client_id_test_utility_discontinuous_masked_511.json (renamed from test/client_id_tests/client_id_test_utility_discontinuous_masked_511.json)0
-rw-r--r--test/network_tests/client_id_tests/client_id_test_utility_masked_127.json (renamed from test/client_id_tests/client_id_test_utility_masked_127.json)0
-rw-r--r--test/network_tests/client_id_tests/client_id_test_utility_masked_4095.json (renamed from test/client_id_tests/client_id_test_utility_masked_4095.json)0
-rw-r--r--test/network_tests/client_id_tests/client_id_test_utility_masked_511.json (renamed from test/client_id_tests/client_id_test_utility_masked_511.json)0
-rw-r--r--test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_diff_ports_master.json.in (renamed from test/client_id_tests/conf/client_id_test_diff_client_ids_diff_ports_master.json.in)0
-rw-r--r--test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_diff_ports_slave.json.in (renamed from test/client_id_tests/conf/client_id_test_diff_client_ids_diff_ports_slave.json.in)0
-rw-r--r--test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_partial_same_ports_master.json.in (renamed from test/client_id_tests/conf/client_id_test_diff_client_ids_partial_same_ports_master.json.in)0
-rw-r--r--test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_partial_same_ports_slave.json.in (renamed from test/client_id_tests/conf/client_id_test_diff_client_ids_partial_same_ports_slave.json.in)0
-rw-r--r--test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_same_ports_master.json.in (renamed from test/client_id_tests/conf/client_id_test_diff_client_ids_same_ports_master.json.in)0
-rw-r--r--test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_same_ports_slave.json.in (renamed from test/client_id_tests/conf/client_id_test_diff_client_ids_same_ports_slave.json.in)0
-rw-r--r--test/network_tests/client_id_tests/conf/client_id_test_same_client_ids_diff_ports_master.json.in (renamed from test/client_id_tests/conf/client_id_test_same_client_ids_diff_ports_master.json.in)0
-rw-r--r--test/network_tests/client_id_tests/conf/client_id_test_same_client_ids_diff_ports_slave.json.in (renamed from test/client_id_tests/conf/client_id_test_same_client_ids_diff_ports_slave.json.in)0
-rw-r--r--test/network_tests/client_id_tests/conf/client_id_test_same_client_ids_same_ports_master.json.in (renamed from test/client_id_tests/conf/client_id_test_same_client_ids_same_ports_master.json.in)0
-rw-r--r--test/network_tests/client_id_tests/conf/client_id_test_same_client_ids_same_ports_slave.json.in (renamed from test/client_id_tests/conf/client_id_test_same_client_ids_same_ports_slave.json.in)0
-rw-r--r--test/network_tests/configuration_tests/configuration-test-deprecated.json (renamed from test/configuration_tests/configuration-test-deprecated.json)0
-rw-r--r--test/network_tests/configuration_tests/configuration-test.cpp (renamed from test/configuration_tests/configuration-test.cpp)183
-rw-r--r--test/network_tests/configuration_tests/configuration-test.json (renamed from test/configuration_tests/configuration-test.json)0
-rw-r--r--test/network_tests/cpu_load_tests/conf/cpu_load_test_client_master.json.in (renamed from test/cpu_load_tests/conf/cpu_load_test_client_master.json.in)0
-rw-r--r--test/network_tests/cpu_load_tests/conf/cpu_load_test_client_slave.json.in (renamed from test/cpu_load_tests/conf/cpu_load_test_client_slave.json.in)0
-rw-r--r--test/network_tests/cpu_load_tests/conf/cpu_load_test_service_master.json.in (renamed from test/cpu_load_tests/conf/cpu_load_test_service_master.json.in)0
-rw-r--r--test/network_tests/cpu_load_tests/conf/cpu_load_test_service_slave.json.in (renamed from test/cpu_load_tests/conf/cpu_load_test_service_slave.json.in)0
-rw-r--r--test/network_tests/cpu_load_tests/cpu_load_measurer.cpp (renamed from test/cpu_load_tests/cpu_load_measurer.cpp)0
-rw-r--r--test/network_tests/cpu_load_tests/cpu_load_measurer.hpp (renamed from test/cpu_load_tests/cpu_load_measurer.hpp)0
-rw-r--r--test/network_tests/cpu_load_tests/cpu_load_test_client.cpp (renamed from test/cpu_load_tests/cpu_load_test_client.cpp)2
-rw-r--r--test/network_tests/cpu_load_tests/cpu_load_test_globals.hpp (renamed from test/cpu_load_tests/cpu_load_test_globals.hpp)0
-rwxr-xr-xtest/network_tests/cpu_load_tests/cpu_load_test_master_starter.sh (renamed from test/cpu_load_tests/cpu_load_test_master_starter.sh)7
-rw-r--r--test/network_tests/cpu_load_tests/cpu_load_test_service.cpp (renamed from test/cpu_load_tests/cpu_load_test_service.cpp)2
-rwxr-xr-xtest/network_tests/cpu_load_tests/cpu_load_test_slave_starter.sh (renamed from test/cpu_load_tests/cpu_load_test_slave_starter.sh)0
-rw-r--r--test/network_tests/debounce_tests/conf/debounce_test_client.json.in (renamed from test/debounce_tests/debounce_test_client.json)4
-rw-r--r--test/network_tests/debounce_tests/conf/debounce_test_service.json.in (renamed from test/debounce_tests/debounce_test_service.json)4
-rw-r--r--test/network_tests/debounce_tests/debounce_test_client.cpp402
-rw-r--r--test/network_tests/debounce_tests/debounce_test_client.hpp56
-rw-r--r--test/network_tests/debounce_tests/debounce_test_common.hpp29
-rwxr-xr-xtest/network_tests/debounce_tests/debounce_test_master_starter.sh52
-rw-r--r--test/network_tests/debounce_tests/debounce_test_service.cpp286
-rw-r--r--test/network_tests/debounce_tests/debounce_test_service.hpp48
-rwxr-xr-xtest/network_tests/debounce_tests/debounce_test_slave_starter.sh31
-rw-r--r--test/network_tests/e2e_tests/conf/e2e_profile_04_test_client_external.json.in (renamed from test/e2e_tests/conf/e2e_profile_04_test_client_external.json.in)0
-rw-r--r--test/network_tests/e2e_tests/conf/e2e_profile_04_test_service_external.json.in (renamed from test/e2e_tests/conf/e2e_profile_04_test_service_external.json.in)0
-rw-r--r--test/network_tests/e2e_tests/conf/e2e_test_client_external.json.in (renamed from test/e2e_tests/conf/e2e_test_client_external.json.in)0
-rw-r--r--test/network_tests/e2e_tests/conf/e2e_test_service_external.json.in (renamed from test/e2e_tests/conf/e2e_test_service_external.json.in)0
-rw-r--r--test/network_tests/e2e_tests/e2e_profile_04_test_client.cpp (renamed from test/e2e_tests/e2e_profile_04_test_client.cpp)2
-rw-r--r--test/network_tests/e2e_tests/e2e_profile_04_test_client.hpp (renamed from test/e2e_tests/e2e_profile_04_test_client.hpp)0
-rw-r--r--test/network_tests/e2e_tests/e2e_profile_04_test_common.hpp (renamed from test/e2e_tests/e2e_profile_04_test_common.hpp)0
-rwxr-xr-xtest/network_tests/e2e_tests/e2e_profile_04_test_external_master_start.sh (renamed from test/e2e_tests/e2e_profile_04_test_external_master_start.sh)5
-rwxr-xr-xtest/network_tests/e2e_tests/e2e_profile_04_test_external_slave_start.sh (renamed from test/e2e_tests/e2e_profile_04_test_external_slave_start.sh)0
-rw-r--r--test/network_tests/e2e_tests/e2e_profile_04_test_service.cpp (renamed from test/e2e_tests/e2e_profile_04_test_service.cpp)2
-rw-r--r--test/network_tests/e2e_tests/e2e_profile_04_test_service.hpp (renamed from test/e2e_tests/e2e_profile_04_test_service.hpp)0
-rw-r--r--test/network_tests/e2e_tests/e2e_test_client.cpp (renamed from test/e2e_tests/e2e_test_client.cpp)0
-rw-r--r--test/network_tests/e2e_tests/e2e_test_client.hpp (renamed from test/e2e_tests/e2e_test_client.hpp)0
-rwxr-xr-xtest/network_tests/e2e_tests/e2e_test_external_master_start.sh (renamed from test/e2e_tests/e2e_test_external_master_start.sh)5
-rwxr-xr-xtest/network_tests/e2e_tests/e2e_test_external_slave_start.sh (renamed from test/e2e_tests/e2e_test_external_slave_start.sh)0
-rw-r--r--test/network_tests/e2e_tests/e2e_test_service.cpp (renamed from test/e2e_tests/e2e_test_service.cpp)2
-rw-r--r--test/network_tests/e2e_tests/e2e_test_service.hpp (renamed from test/e2e_tests/e2e_test_service.hpp)0
-rw-r--r--test/network_tests/event_tests/conf/event_test_master.json.in (renamed from test/event_tests/conf/event_test_master.json.in)0
-rw-r--r--test/network_tests/event_tests/conf/event_test_slave_tcp.json.in (renamed from test/event_tests/conf/event_test_slave_tcp.json.in)0
-rw-r--r--test/network_tests/event_tests/conf/event_test_slave_udp.json.in (renamed from test/event_tests/conf/event_test_slave_udp.json.in)0
-rw-r--r--test/network_tests/event_tests/event_test_client.cpp (renamed from test/event_tests/event_test_client.cpp)80
-rw-r--r--test/network_tests/event_tests/event_test_globals.hpp (renamed from test/event_tests/event_test_globals.hpp)0
-rwxr-xr-xtest/network_tests/event_tests/event_test_master_starter.sh (renamed from test/event_tests/event_test_master_starter.sh)7
-rw-r--r--test/network_tests/event_tests/event_test_service.cpp (renamed from test/event_tests/event_test_service.cpp)2
-rwxr-xr-xtest/network_tests/event_tests/event_test_slave_starter.sh (renamed from test/event_tests/event_test_slave_starter.sh)2
-rw-r--r--test/network_tests/header_factory_tests/header_factory_test.cpp (renamed from test/header_factory_tests/header_factory_test.cpp)2
-rw-r--r--test/network_tests/header_factory_tests/header_factory_test_client.cpp (renamed from test/header_factory_tests/header_factory_test_client.cpp)2
-rw-r--r--test/network_tests/header_factory_tests/header_factory_test_client.hpp (renamed from test/header_factory_tests/header_factory_test_client.hpp)0
-rw-r--r--test/network_tests/header_factory_tests/header_factory_test_client.json (renamed from test/header_factory_tests/header_factory_test_client.json)0
-rwxr-xr-xtest/network_tests/header_factory_tests/header_factory_test_client_start.sh (renamed from test/header_factory_tests/header_factory_test_client_start.sh)0
-rwxr-xr-xtest/network_tests/header_factory_tests/header_factory_test_send_receive_starter.sh (renamed from test/header_factory_tests/header_factory_test_send_receive_starter.sh)0
-rw-r--r--test/network_tests/header_factory_tests/header_factory_test_service.cpp (renamed from test/header_factory_tests/header_factory_test_service.cpp)2
-rw-r--r--test/network_tests/header_factory_tests/header_factory_test_service.hpp (renamed from test/header_factory_tests/header_factory_test_service.hpp)0
-rw-r--r--test/network_tests/header_factory_tests/header_factory_test_service.json (renamed from test/header_factory_tests/header_factory_test_service.json)0
-rwxr-xr-xtest/network_tests/header_factory_tests/header_factory_test_service_start.sh (renamed from test/header_factory_tests/header_factory_test_service_start.sh)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master_tcp.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master_tcp.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master_udp.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master_udp.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_same_service_id_master.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_same_service_id_master.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_same_service_id_slave.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_same_service_id_slave.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave_tcp.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave_tcp.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave_udp.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave_udp.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_partial_same_ports_master.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_partial_same_ports_master.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_partial_same_ports_slave.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_partial_same_ports_slave.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master_tcp.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master_tcp.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master_udp.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master_udp.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave_tcp.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave_tcp.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave_udp.json.in (renamed from test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave_udp.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_same_client_ids_diff_ports_master.json.in (renamed from test/initial_event_tests/conf/initial_event_test_same_client_ids_diff_ports_master.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_same_client_ids_diff_ports_slave.json.in (renamed from test/initial_event_tests/conf/initial_event_test_same_client_ids_diff_ports_slave.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_same_client_ids_same_ports_master.json.in (renamed from test/initial_event_tests/conf/initial_event_test_same_client_ids_same_ports_master.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/conf/initial_event_test_same_client_ids_same_ports_slave.json.in (renamed from test/initial_event_tests/conf/initial_event_test_same_client_ids_same_ports_slave.json.in)0
-rw-r--r--test/network_tests/initial_event_tests/initial_event_test_availability_checker.cpp (renamed from test/initial_event_tests/initial_event_test_availability_checker.cpp)2
-rw-r--r--test/network_tests/initial_event_tests/initial_event_test_client.cpp (renamed from test/initial_event_tests/initial_event_test_client.cpp)11
-rw-r--r--test/network_tests/initial_event_tests/initial_event_test_globals.hpp (renamed from test/initial_event_tests/initial_event_test_globals.hpp)0
-rwxr-xr-xtest/network_tests/initial_event_tests/initial_event_test_master_starter.sh (renamed from test/initial_event_tests/initial_event_test_master_starter.sh)13
-rw-r--r--test/network_tests/initial_event_tests/initial_event_test_service.cpp (renamed from test/initial_event_tests/initial_event_test_service.cpp)2
-rwxr-xr-xtest/network_tests/initial_event_tests/initial_event_test_slave_starter.sh (renamed from test/initial_event_tests/initial_event_test_slave_starter.sh)2
-rw-r--r--test/network_tests/initial_event_tests/initial_event_test_stop_service.cpp (renamed from test/initial_event_tests/initial_event_test_stop_service.cpp)15
-rw-r--r--test/network_tests/magic_cookies_tests/conf/magic_cookies_test_client.json.in (renamed from test/magic_cookies_tests/conf/magic_cookies_test_client.json.in)0
-rw-r--r--test/network_tests/magic_cookies_tests/conf/magic_cookies_test_service.json.in (renamed from test/magic_cookies_tests/conf/magic_cookies_test_service.json.in)0
-rw-r--r--test/network_tests/magic_cookies_tests/magic_cookies_test_client.cpp (renamed from test/magic_cookies_tests/magic_cookies_test_client.cpp)2
-rwxr-xr-xtest/network_tests/magic_cookies_tests/magic_cookies_test_client_start.sh (renamed from test/magic_cookies_tests/magic_cookies_test_client_start.sh)0
-rw-r--r--test/network_tests/magic_cookies_tests/magic_cookies_test_service.cpp (renamed from test/magic_cookies_tests/magic_cookies_test_service.cpp)0
-rwxr-xr-xtest/network_tests/magic_cookies_tests/magic_cookies_test_service_start.sh (renamed from test/magic_cookies_tests/magic_cookies_test_service_start.sh)0
-rwxr-xr-xtest/network_tests/magic_cookies_tests/magic_cookies_test_starter.sh (renamed from test/magic_cookies_tests/magic_cookies_test_starter.sh)7
-rw-r--r--test/network_tests/malicious_data_tests/conf/malicious_data_test_master.json.in (renamed from test/malicious_data_tests/conf/malicious_data_test_master.json.in)0
-rwxr-xr-xtest/network_tests/malicious_data_tests/conf/malicious_data_test_master_starter.sh.in (renamed from test/malicious_data_tests/conf/malicious_data_test_master_starter.sh.in)8
-rw-r--r--test/network_tests/malicious_data_tests/malicious_data_test_globals.hpp (renamed from test/malicious_data_tests/malicious_data_test_globals.hpp)0
-rw-r--r--test/network_tests/malicious_data_tests/malicious_data_test_msg_sender.cpp (renamed from test/malicious_data_tests/malicious_data_test_msg_sender.cpp)8
-rw-r--r--test/network_tests/malicious_data_tests/malicious_data_test_service.cpp (renamed from test/malicious_data_tests/malicious_data_test_service.cpp)2
-rw-r--r--test/network_tests/npdu_tests/conf/npdu_test_client_no_npdu.json.in (renamed from test/npdu_tests/conf/npdu_test_client_no_npdu.json.in)0
-rw-r--r--test/network_tests/npdu_tests/conf/npdu_test_client_npdu.json.in (renamed from test/npdu_tests/conf/npdu_test_client_npdu.json.in)0
-rw-r--r--test/network_tests/npdu_tests/conf/npdu_test_service_no_npdu.json.in (renamed from test/npdu_tests/conf/npdu_test_service_no_npdu.json.in)0
-rw-r--r--test/network_tests/npdu_tests/conf/npdu_test_service_npdu.json.in (renamed from test/npdu_tests/conf/npdu_test_service_npdu.json.in)0
-rw-r--r--test/network_tests/npdu_tests/npdu_test_client.cpp (renamed from test/npdu_tests/npdu_test_client.cpp)4
-rw-r--r--test/network_tests/npdu_tests/npdu_test_client.hpp (renamed from test/npdu_tests/npdu_test_client.hpp)0
-rwxr-xr-xtest/network_tests/npdu_tests/npdu_test_client_no_npdu_start.sh (renamed from test/npdu_tests/npdu_test_client_no_npdu_start.sh)0
-rwxr-xr-xtest/network_tests/npdu_tests/npdu_test_client_npdu_start.sh (renamed from test/npdu_tests/npdu_test_client_npdu_start.sh)0
-rw-r--r--test/network_tests/npdu_tests/npdu_test_globals.hpp (renamed from test/npdu_tests/npdu_test_globals.hpp)0
-rw-r--r--test/network_tests/npdu_tests/npdu_test_rmd.cpp (renamed from test/npdu_tests/npdu_test_rmd.cpp)2
-rw-r--r--test/network_tests/npdu_tests/npdu_test_rmd.hpp (renamed from test/npdu_tests/npdu_test_rmd.hpp)0
-rw-r--r--test/network_tests/npdu_tests/npdu_test_service.cpp (renamed from test/npdu_tests/npdu_test_service.cpp)6
-rw-r--r--test/network_tests/npdu_tests/npdu_test_service.hpp (renamed from test/npdu_tests/npdu_test_service.hpp)0
-rwxr-xr-xtest/network_tests/npdu_tests/npdu_test_service_no_npdu_start.sh (renamed from test/npdu_tests/npdu_test_service_no_npdu_start.sh)0
-rwxr-xr-xtest/network_tests/npdu_tests/npdu_test_service_npdu_start.sh (renamed from test/npdu_tests/npdu_test_service_npdu_start.sh)0
-rwxr-xr-xtest/network_tests/npdu_tests/npdu_test_starter.sh (renamed from test/npdu_tests/npdu_test_starter.sh)6
-rw-r--r--test/network_tests/offer_tests/conf/offer_test_big_sd_msg_master.json.in (renamed from test/offer_tests/conf/offer_test_big_sd_msg_master.json.in)0
-rwxr-xr-xtest/network_tests/offer_tests/conf/offer_test_big_sd_msg_master_starter.sh.in (renamed from test/offer_tests/conf/offer_test_big_sd_msg_master_starter.sh.in)8
-rw-r--r--test/network_tests/offer_tests/conf/offer_test_big_sd_msg_slave.json.in (renamed from test/offer_tests/conf/offer_test_big_sd_msg_slave.json.in)0
-rw-r--r--test/network_tests/offer_tests/conf/offer_test_external_master.json.in (renamed from test/offer_tests/conf/offer_test_external_master.json.in)0
-rwxr-xr-xtest/network_tests/offer_tests/conf/offer_test_external_master_starter.sh.in (renamed from test/offer_tests/conf/offer_test_external_master_starter.sh.in)40
-rw-r--r--test/network_tests/offer_tests/conf/offer_test_external_slave.json.in (renamed from test/offer_tests/conf/offer_test_external_slave.json.in)0
-rw-r--r--test/network_tests/offer_tests/offer_test_big_sd_msg_client.cpp (renamed from test/offer_tests/offer_test_big_sd_msg_client.cpp)2
-rw-r--r--test/network_tests/offer_tests/offer_test_big_sd_msg_service.cpp (renamed from test/offer_tests/offer_test_big_sd_msg_service.cpp)2
-rwxr-xr-xtest/network_tests/offer_tests/offer_test_big_sd_msg_slave_starter.sh (renamed from test/offer_tests/offer_test_big_sd_msg_slave_starter.sh)2
-rw-r--r--test/network_tests/offer_tests/offer_test_client.cpp (renamed from test/offer_tests/offer_test_client.cpp)6
-rw-r--r--test/network_tests/offer_tests/offer_test_external_sd_msg_sender.cpp (renamed from test/offer_tests/offer_test_external_sd_msg_sender.cpp)32
-rwxr-xr-xtest/network_tests/offer_tests/offer_test_external_slave_starter.sh (renamed from test/offer_tests/offer_test_external_slave_starter.sh)2
-rw-r--r--test/network_tests/offer_tests/offer_test_globals.hpp (renamed from test/offer_tests/offer_test_globals.hpp)0
-rw-r--r--test/network_tests/offer_tests/offer_test_local.json (renamed from test/offer_tests/offer_test_local.json)0
-rwxr-xr-xtest/network_tests/offer_tests/offer_test_local_starter.sh (renamed from test/offer_tests/offer_test_local_starter.sh)8
-rw-r--r--test/network_tests/offer_tests/offer_test_service.cpp (renamed from test/offer_tests/offer_test_service.cpp)2
-rw-r--r--test/network_tests/offer_tests/offer_test_service_external.cpp (renamed from test/offer_tests/offer_test_service_external.cpp)2
-rw-r--r--test/network_tests/offered_services_info_test/offered_services_info_test_client.cpp (renamed from test/offered_services_info_test/offered_services_info_test_client.cpp)6
-rw-r--r--test/network_tests/offered_services_info_test/offered_services_info_test_globals.hpp (renamed from test/offered_services_info_test/offered_services_info_test_globals.hpp)0
-rw-r--r--test/network_tests/offered_services_info_test/offered_services_info_test_local.json (renamed from test/offered_services_info_test/offered_services_info_test_local.json)0
-rwxr-xr-xtest/network_tests/offered_services_info_test/offered_services_info_test_local_starter.sh (renamed from test/offered_services_info_test/offered_services_info_test_local_starter.sh)0
-rw-r--r--test/network_tests/offered_services_info_test/offered_services_info_test_service.cpp (renamed from test/offered_services_info_test/offered_services_info_test_service.cpp)6
-rw-r--r--test/network_tests/payload_tests/conf/external_local_payload_test_client_external.json.in (renamed from test/payload_tests/conf/external_local_payload_test_client_external.json.in)0
-rw-r--r--test/network_tests/payload_tests/conf/external_local_payload_test_client_local.json.in (renamed from test/payload_tests/conf/external_local_payload_test_client_local.json.in)0
-rw-r--r--test/network_tests/payload_tests/conf/external_local_payload_test_service.json.in (renamed from test/payload_tests/conf/external_local_payload_test_service.json.in)0
-rwxr-xr-xtest/network_tests/payload_tests/external_local_payload_test_client_external_start.sh (renamed from test/payload_tests/external_local_payload_test_client_external_start.sh)0
-rwxr-xr-xtest/network_tests/payload_tests/external_local_payload_test_client_external_starter.sh (renamed from test/payload_tests/external_local_payload_test_client_external_starter.sh)13
-rwxr-xr-xtest/network_tests/payload_tests/external_local_payload_test_client_local_and_external_starter.sh (renamed from test/payload_tests/external_local_payload_test_client_local_and_external_starter.sh)13
-rwxr-xr-xtest/network_tests/payload_tests/external_local_payload_test_client_local_start.sh (renamed from test/payload_tests/external_local_payload_test_client_local_start.sh)0
-rwxr-xr-xtest/network_tests/payload_tests/external_local_payload_test_client_local_starter.sh (renamed from test/payload_tests/external_local_payload_test_client_local_starter.sh)0
-rwxr-xr-xtest/network_tests/payload_tests/external_local_payload_test_service_client_external_start.sh (renamed from test/payload_tests/external_local_payload_test_service_client_external_start.sh)0
-rwxr-xr-xtest/network_tests/payload_tests/external_local_payload_test_service_start.sh (renamed from test/payload_tests/external_local_payload_test_service_start.sh)0
-rw-r--r--test/network_tests/payload_tests/local_payload_test_client.json (renamed from test/payload_tests/local_payload_test_client.json)0
-rwxr-xr-xtest/network_tests/payload_tests/local_payload_test_client_start.sh (renamed from test/payload_tests/local_payload_test_client_start.sh)0
-rwxr-xr-xtest/network_tests/payload_tests/local_payload_test_huge_payload_starter.sh (renamed from test/payload_tests/local_payload_test_huge_payload_starter.sh)0
-rw-r--r--test/network_tests/payload_tests/local_payload_test_service.json (renamed from test/payload_tests/local_payload_test_service.json)0
-rwxr-xr-xtest/network_tests/payload_tests/local_payload_test_service_start.sh (renamed from test/payload_tests/local_payload_test_service_start.sh)0
-rwxr-xr-xtest/network_tests/payload_tests/local_payload_test_starter.sh (renamed from test/payload_tests/local_payload_test_starter.sh)0
-rw-r--r--test/network_tests/payload_tests/payload_test_client.cpp (renamed from test/payload_tests/payload_test_client.cpp)2
-rw-r--r--test/network_tests/payload_tests/payload_test_client.hpp (renamed from test/payload_tests/payload_test_client.hpp)0
-rw-r--r--test/network_tests/payload_tests/payload_test_service.cpp (renamed from test/payload_tests/payload_test_service.cpp)2
-rw-r--r--test/network_tests/payload_tests/payload_test_service.hpp (renamed from test/payload_tests/payload_test_service.hpp)0
-rw-r--r--test/network_tests/payload_tests/stopwatch.cpp (renamed from test/payload_tests/stopwatch.cpp)0
-rw-r--r--test/network_tests/payload_tests/stopwatch.hpp (renamed from test/payload_tests/stopwatch.hpp)0
-rw-r--r--test/network_tests/pending_subscription_tests/conf/pending_subscription_test_master.json.in (renamed from test/pending_subscription_tests/conf/pending_subscription_test_master.json.in)0
-rwxr-xr-xtest/network_tests/pending_subscription_tests/conf/pending_subscription_test_master_starter.sh.in (renamed from test/pending_subscription_tests/conf/pending_subscription_test_master_starter.sh.in)7
-rw-r--r--test/network_tests/pending_subscription_tests/pending_subscription_test_globals.hpp (renamed from test/pending_subscription_tests/pending_subscription_test_globals.hpp)0
-rw-r--r--test/network_tests/pending_subscription_tests/pending_subscription_test_sd_msg_sender.cpp (renamed from test/pending_subscription_tests/pending_subscription_test_sd_msg_sender.cpp)8
-rw-r--r--test/network_tests/pending_subscription_tests/pending_subscription_test_service.cpp (renamed from test/pending_subscription_tests/pending_subscription_test_service.cpp)2
-rw-r--r--test/network_tests/readme.txt (renamed from test/readme.txt)0
-rw-r--r--test/network_tests/restart_routing_tests/restart_routing_test_autoconfig.json (renamed from test/restart_routing_tests/restart_routing_test_autoconfig.json)0
-rw-r--r--test/network_tests/restart_routing_tests/restart_routing_test_client.cpp (renamed from test/restart_routing_tests/restart_routing_test_client.cpp)0
-rw-r--r--test/network_tests/restart_routing_tests/restart_routing_test_client.hpp (renamed from test/restart_routing_tests/restart_routing_test_client.hpp)0
-rw-r--r--test/network_tests/restart_routing_tests/restart_routing_test_client.json (renamed from test/restart_routing_tests/restart_routing_test_client.json)0
-rwxr-xr-xtest/network_tests/restart_routing_tests/restart_routing_test_client_start.sh (renamed from test/restart_routing_tests/restart_routing_test_client_start.sh)0
-rw-r--r--test/network_tests/restart_routing_tests/restart_routing_test_service.cpp (renamed from test/restart_routing_tests/restart_routing_test_service.cpp)2
-rw-r--r--test/network_tests/restart_routing_tests/restart_routing_test_service.hpp (renamed from test/restart_routing_tests/restart_routing_test_service.hpp)0
-rw-r--r--test/network_tests/restart_routing_tests/restart_routing_test_service.json (renamed from test/restart_routing_tests/restart_routing_test_service.json)0
-rwxr-xr-xtest/network_tests/restart_routing_tests/restart_routing_test_service_start.sh (renamed from test/restart_routing_tests/restart_routing_test_service_start.sh)0
-rwxr-xr-xtest/network_tests/restart_routing_tests/restart_routing_test_starter.sh (renamed from test/restart_routing_tests/restart_routing_test_starter.sh)12
-rw-r--r--test/network_tests/routing_tests/conf/external_local_routing_test_client_external.json.in (renamed from test/routing_tests/conf/external_local_routing_test_client_external.json.in)5
-rw-r--r--test/network_tests/routing_tests/conf/external_local_routing_test_service.json.in (renamed from test/routing_tests/conf/external_local_routing_test_service.json.in)0
-rwxr-xr-xtest/network_tests/routing_tests/conf/local_routing_test_starter.sh.bat.in (renamed from test/routing_tests/conf/local_routing_test_starter.sh.bat.in)0
-rwxr-xr-xtest/network_tests/routing_tests/conf/local_routing_test_starter.sh.in (renamed from test/routing_tests/conf/local_routing_test_starter.sh.in)8
-rwxr-xr-xtest/network_tests/routing_tests/external_local_routing_test_client_external_start.sh (renamed from test/routing_tests/external_local_routing_test_client_external_start.sh)12
-rw-r--r--test/network_tests/routing_tests/external_local_routing_test_service.cpp (renamed from test/routing_tests/external_local_routing_test_service.cpp)2
-rw-r--r--test/network_tests/routing_tests/external_local_routing_test_service.hpp (renamed from test/routing_tests/external_local_routing_test_service.hpp)0
-rwxr-xr-xtest/network_tests/routing_tests/external_local_routing_test_service_start.sh (renamed from test/routing_tests/external_local_routing_test_service_start.sh)0
-rwxr-xr-xtest/network_tests/routing_tests/external_local_routing_test_starter.sh (renamed from test/routing_tests/external_local_routing_test_starter.sh)15
-rw-r--r--test/network_tests/routing_tests/local_routing_test_client.cpp (renamed from test/routing_tests/local_routing_test_client.cpp)2
-rw-r--r--test/network_tests/routing_tests/local_routing_test_client.hpp (renamed from test/routing_tests/local_routing_test_client.hpp)0
-rw-r--r--test/network_tests/routing_tests/local_routing_test_client.json (renamed from test/routing_tests/local_routing_test_client.json)0
-rwxr-xr-xtest/network_tests/routing_tests/local_routing_test_client_start.sh (renamed from test/routing_tests/local_routing_test_client_start.sh)0
-rw-r--r--test/network_tests/routing_tests/local_routing_test_service.cpp (renamed from test/routing_tests/local_routing_test_service.cpp)2
-rw-r--r--test/network_tests/routing_tests/local_routing_test_service.hpp (renamed from test/routing_tests/local_routing_test_service.hpp)0
-rw-r--r--test/network_tests/routing_tests/local_routing_test_service.json (renamed from test/routing_tests/local_routing_test_service.json)0
-rwxr-xr-xtest/network_tests/routing_tests/local_routing_test_service_start.sh (renamed from test/routing_tests/local_routing_test_service_start.sh)0
-rw-r--r--test/network_tests/second_address_tests/conf/second_address_test_master_client.json.in (renamed from test/second_address_tests/conf/second_address_test_master_client.json.in)0
-rw-r--r--test/network_tests/second_address_tests/conf/second_address_test_master_service_udp.json.in (renamed from test/second_address_tests/conf/second_address_test_master_service_udp.json.in)0
-rw-r--r--test/network_tests/second_address_tests/conf/second_address_test_slave_client.json.in (renamed from test/second_address_tests/conf/second_address_test_slave_client.json.in)0
-rw-r--r--test/network_tests/second_address_tests/conf/second_address_test_slave_service_udp.json.in (renamed from test/second_address_tests/conf/second_address_test_slave_service_udp.json.in)0
-rwxr-xr-xtest/network_tests/second_address_tests/conf/second_address_test_slave_starter.sh.in (renamed from test/second_address_tests/conf/second_address_test_slave_starter.sh.in)4
-rw-r--r--test/network_tests/second_address_tests/second_address_test_client.cpp (renamed from test/second_address_tests/second_address_test_client.cpp)2
-rw-r--r--test/network_tests/second_address_tests/second_address_test_globals.hpp (renamed from test/second_address_tests/second_address_test_globals.hpp)2
-rwxr-xr-xtest/network_tests/second_address_tests/second_address_test_master_starter.sh (renamed from test/second_address_tests/second_address_test_master_starter.sh)9
-rw-r--r--test/network_tests/second_address_tests/second_address_test_service.cpp (renamed from test/second_address_tests/second_address_test_service.cpp)2
-rw-r--r--test/network_tests/security_tests/conf/security_test_config_client_external_allow.json.in (renamed from test/security_tests/conf/security_test_config_client_external_allow.json.in)0
-rw-r--r--test/network_tests/security_tests/conf/security_test_config_client_external_deny.json.in (renamed from test/security_tests/conf/security_test_config_client_external_deny.json.in)0
-rw-r--r--test/network_tests/security_tests/conf/security_test_config_service_external_allow.json.in (renamed from test/security_tests/conf/security_test_config_service_external_allow.json.in)0
-rw-r--r--test/network_tests/security_tests/conf/security_test_config_service_external_deny.json.in (renamed from test/security_tests/conf/security_test_config_service_external_deny.json.in)0
-rw-r--r--test/network_tests/security_tests/conf/security_test_local_config.json.in (renamed from test/security_tests/conf/security_test_local_config.json.in)0
-rw-r--r--test/network_tests/security_tests/security_test_client.cpp (renamed from test/security_tests/security_test_client.cpp)0
-rw-r--r--test/network_tests/security_tests/security_test_client.hpp (renamed from test/security_tests/security_test_client.hpp)0
-rwxr-xr-xtest/network_tests/security_tests/security_test_external_master_start.sh (renamed from test/security_tests/security_test_external_master_start.sh)9
-rwxr-xr-xtest/network_tests/security_tests/security_test_external_slave_start.sh (renamed from test/security_tests/security_test_external_slave_start.sh)4
-rwxr-xr-xtest/network_tests/security_tests/security_test_local_start.sh (renamed from test/security_tests/security_test_local_start.sh)2
-rw-r--r--test/network_tests/security_tests/security_test_service.cpp (renamed from test/security_tests/security_test_service.cpp)2
-rw-r--r--test/network_tests/security_tests/security_test_service.hpp (renamed from test/security_tests/security_test_service.hpp)0
-rw-r--r--test/network_tests/someip_test_globals.hpp (renamed from test/someip_test_globals.hpp)0
-rw-r--r--test/network_tests/someip_tp_tests/conf/someip_tp_test_master.json.in (renamed from test/someip_tp_tests/conf/someip_tp_test_master.json.in)0
-rwxr-xr-xtest/network_tests/someip_tp_tests/conf/someip_tp_test_master_starter.sh.in (renamed from test/someip_tp_tests/conf/someip_tp_test_master_starter.sh.in)8
-rw-r--r--test/network_tests/someip_tp_tests/someip_tp_test_globals.hpp (renamed from test/someip_tp_tests/someip_tp_test_globals.hpp)0
-rw-r--r--test/network_tests/someip_tp_tests/someip_tp_test_msg_sender.cpp (renamed from test/someip_tp_tests/someip_tp_test_msg_sender.cpp)10
-rw-r--r--test/network_tests/someip_tp_tests/someip_tp_test_service.cpp (renamed from test/someip_tp_tests/someip_tp_test_service.cpp)2
-rw-r--r--test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master.json.in (renamed from test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master_tcp.json.in (renamed from test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master_tcp.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master_udp.json.in (renamed from test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master_udp.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave.json.in (renamed from test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave_tcp.json.in (renamed from test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave_tcp.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave_udp.json.in (renamed from test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave_udp.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_one_tests/subscribe_notify_one_test_globals.hpp (renamed from test/subscribe_notify_one_tests/subscribe_notify_one_test_globals.hpp)0
-rwxr-xr-xtest/network_tests/subscribe_notify_one_tests/subscribe_notify_one_test_master_starter.sh (renamed from test/subscribe_notify_one_tests/subscribe_notify_one_test_master_starter.sh)7
-rw-r--r--test/network_tests/subscribe_notify_one_tests/subscribe_notify_one_test_service.cpp (renamed from test/subscribe_notify_one_tests/subscribe_notify_one_test_service.cpp)2
-rwxr-xr-xtest/network_tests/subscribe_notify_one_tests/subscribe_notify_one_test_slave_starter.sh (renamed from test/subscribe_notify_one_tests/subscribe_notify_one_test_slave_starter.sh)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_master.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_master.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_master_local_tcp.json.in68
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_slave.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_slave.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_slave_local_tcp.json.in68
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_local_tcp.json.in83
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_tcp.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_tcp.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_tcp_local_tcp.json.in80
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_udp.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_udp.json.in)2
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_udp_local_tcp.json.in68
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_master_udp.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_master_udp.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_master_udp_local_tcp.json.in68
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_slave_udp.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_slave_udp.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_slave_udp_local_tcp.json.in68
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_local_tcp.json.in83
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_tcp.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_tcp.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_tcp_local_tcp.json.in85
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_udp.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_udp.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_udp_local_tcp.json.in68
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_master.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_master.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_master_local_tcp.json.in83
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_slave.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_slave.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_slave_local_tcp.json.in83
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_local_tcp.json.in83
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_tcp.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_tcp.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_tcp_local_tcp.json.in80
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_udp.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_udp.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_udp_local_tcp.json.in68
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_local_tcp.json.in83
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_tcp.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_tcp.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_tcp_local_tcp.json.in80
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_udp.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_udp.json.in)2
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_udp_local_tcp.json.in68
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_master.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_master.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_master_local_tcp.json.in38
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_tcp_slave.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_tcp_slave.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_tcp_slave_local_tcp.json.in46
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_udp_slave.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_udp_slave.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_udp_slave_local_tcp.json.in46
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_master.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_master.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_master_local_tcp.json.in83
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_slave.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_slave.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_slave_local_tcp.json.in83
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_master.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_master.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_master_local_tcp.json.in83
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_slave.json.in (renamed from test/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_slave.json.in)0
-rw-r--r--test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_slave_local_tcp.json.in83
-rw-r--r--test/network_tests/subscribe_notify_tests/subscribe_notify_test_globals.hpp (renamed from test/subscribe_notify_tests/subscribe_notify_test_globals.hpp)0
-rwxr-xr-xtest/network_tests/subscribe_notify_tests/subscribe_notify_test_master_starter.sh (renamed from test/subscribe_notify_tests/subscribe_notify_test_master_starter.sh)11
-rw-r--r--test/network_tests/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_client.cpp (renamed from test/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_client.cpp)2
-rwxr-xr-xtest/network_tests/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_master_starter.sh (renamed from test/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_master_starter.sh)10
-rw-r--r--test/network_tests/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_service.cpp (renamed from test/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_service.cpp)2
-rwxr-xr-xtest/network_tests/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_slave_starter.sh (renamed from test/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_slave_starter.sh)6
-rw-r--r--test/network_tests/subscribe_notify_tests/subscribe_notify_test_service.cpp (renamed from test/subscribe_notify_tests/subscribe_notify_test_service.cpp)8
-rwxr-xr-xtest/network_tests/subscribe_notify_tests/subscribe_notify_test_slave_starter.sh (renamed from test/subscribe_notify_tests/subscribe_notify_test_slave_starter.sh)0
-rw-r--r--test/network_tests/suspend_resume_tests/conf/suspend_resume_test_client.json.in (renamed from test/suspend_resume_tests/conf/suspend_resume_test_client.json.in)0
-rw-r--r--test/network_tests/suspend_resume_tests/conf/suspend_resume_test_service.json.in (renamed from test/suspend_resume_tests/conf/suspend_resume_test_service.json.in)0
-rw-r--r--test/network_tests/suspend_resume_tests/suspend_resume_test.hpp (renamed from test/suspend_resume_tests/suspend_resume_test.hpp)0
-rw-r--r--test/network_tests/suspend_resume_tests/suspend_resume_test_client.cpp (renamed from test/suspend_resume_tests/suspend_resume_test_client.cpp)4
-rwxr-xr-xtest/network_tests/suspend_resume_tests/suspend_resume_test_master_starter.sh (renamed from test/suspend_resume_tests/suspend_resume_test_master_starter.sh)13
-rw-r--r--test/network_tests/suspend_resume_tests/suspend_resume_test_service.cpp (renamed from test/suspend_resume_tests/suspend_resume_test_service.cpp)4
-rwxr-xr-xtest/network_tests/suspend_resume_tests/suspend_resume_test_slave_starter.sh (renamed from test/suspend_resume_tests/suspend_resume_test_slave_starter.sh)0
-rwxr-xr-xtest/offer_tests/offer_test_external_slave_sd_starter.sh38
-rw-r--r--test/offer_tests/offer_test_service_availability_checker.cpp118
-rw-r--r--test/unit_tests/CMakeLists.txt29
-rw-r--r--test/unit_tests/main.cpp16
-rw-r--r--test/unit_tests/security_tests/ut_check_credentials.cpp122
-rw-r--r--test/unit_tests/security_tests/ut_check_routing_credentials.cpp85
-rw-r--r--test/unit_tests/security_tests/ut_get_client_to_sec_client_mapping.cpp62
-rw-r--r--test/unit_tests/security_tests/ut_get_clients.cpp56
-rw-r--r--test/unit_tests/security_tests/ut_get_sec_client_to_clients_mapping.cpp61
-rw-r--r--test/unit_tests/security_tests/ut_is_client_allowed.cpp149
-rw-r--r--test/unit_tests/security_tests/ut_is_offer_allowed.cpp153
-rw-r--r--test/unit_tests/security_tests/ut_is_policy_update_allowed.cpp221
-rw-r--r--test/unit_tests/security_tests/ut_load_policies.cpp100
-rw-r--r--test/unit_tests/security_tests/ut_load_security_update_whitelist.cpp218
-rw-r--r--test/unit_tests/security_tests/ut_remove_client_to_sec_client_mapping.cpp41
-rw-r--r--test/unit_tests/security_tests/ut_remove_security_policy.cpp61
420 files changed, 15316 insertions, 4422 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index b4f63c7..2121715 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,3839 +1,25 @@
-# Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+# Copyright (C) 2015-2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-cmake_minimum_required (VERSION 2.8.1)
-
-# Add the gtest header files to the include files
-include_directories(
- .
- ${gtest_SOURCE_DIR}/include
-)
-
-set(TEST_LINK_LIBRARIES gtest)
-
-# Function to copy files into the build directory (or anywhere else)
-# On unixoid systems this function will create symlinks instead
-# SOURCE_PATH: Path to the file which should be copied
-# DESTINATION_PATH: destination file
-# TARGET_TO_DEPEND: The copying of the file will be added as
-# a dependency to this target
-function(copy_to_builddir SOURCE_PATH DESTINATION_PATH TARGET_TO_DEPEND)
- if(${CMAKE_SYSTEM_NAME} MATCHES "Windows" OR NOT ${TEST_SYMLINK_CONFIG_FILES})
- ADD_CUSTOM_COMMAND(
- OUTPUT "${DESTINATION_PATH}"
- COMMAND ${CMAKE_COMMAND} -E copy "${SOURCE_PATH}" "${DESTINATION_PATH}"
- DEPENDS "${SOURCE_PATH}"
- COMMENT "Copying \"${SOURCE_PATH}\" into build directory"
- )
- else()
- if(${TEST_SYMLINK_CONFIG_FILES_RELATIVE})
- ADD_CUSTOM_COMMAND(
- OUTPUT "${DESTINATION_PATH}"
- # Create a relative link
- COMMAND ln -s -r "${SOURCE_PATH}" "${DESTINATION_PATH}"
- DEPENDS "${SOURCE_PATH}"
- COMMENT "Symlinking \"${SOURCE_PATH}\" into build directory"
- )
- else()
- ADD_CUSTOM_COMMAND(
- OUTPUT "${DESTINATION_PATH}"
- # Create an absolute link
- COMMAND ${CMAKE_COMMAND} -E create_symlink "${SOURCE_PATH}" "${DESTINATION_PATH}"
- DEPENDS "${SOURCE_PATH}"
- COMMENT "Symlinking \"${SOURCE_PATH}\" into build directory"
- )
- endif()
- endif()
- # Add a random number to the end of the string to avoid problems with
- # duplicate filenames
- set(FILENAME "")
- get_filename_component(FILENAME ${SOURCE_PATH} NAME )
- string(RANDOM LENGTH 4 ALPHABET 0123456789 RANDOMNUMBER)
- if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
- ADD_CUSTOM_TARGET(copy_${FILENAME}_${RANDOMNUMBER}
- DEPENDS "${DESTINATION_PATH}"
- )
- ADD_DEPENDENCIES(${TARGET_TO_DEPEND} copy_${FILENAME}_${RANDOMNUMBER})
- else()
- ADD_CUSTOM_TARGET(symlink_${FILENAME}_${RANDOMNUMBER}
- DEPENDS "${DESTINATION_PATH}"
- )
- ADD_DEPENDENCIES(${TARGET_TO_DEPEND} symlink_${FILENAME}_${RANDOMNUMBER})
- endif()
-endfunction()
-
-##############################################################################
-# configuration-test
-##############################################################################
-if(NOT ${TESTS_BAT})
- set(TEST_CONFIGURATION configuration-test)
-
- add_executable(${TEST_CONFIGURATION}
- configuration_tests/configuration-test.cpp
- ${PROJECT_SOURCE_DIR}/implementation/plugin/src/plugin_manager_impl.cpp
- )
- target_link_libraries(${TEST_CONFIGURATION}
- vsomeip3
- vsomeip3-cfg
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # The following will make sure that ${TEST_CONFIGURATION_CONFIG_FILE} is copied
- # from the config folder into the test folder in the builddirectory
- # This makes it possible to call the configuration test within the build directory
- set(TEST_CONFIGURATION_CONFIG_FILE configuration-test.json)
- set(TEST_CONFIGURATION_DEPRECATED_CONFIG_FILE configuration-test-deprecated.json)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/configuration_tests/${TEST_CONFIGURATION_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CONFIGURATION_CONFIG_FILE}
- ${TEST_CONFIGURATION}
- )
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/configuration_tests/${TEST_CONFIGURATION_DEPRECATED_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CONFIGURATION_DEPRECATED_CONFIG_FILE}
- ${TEST_CONFIGURATION}
- )
-endif()
-##############################################################################
-# application test
-##############################################################################
-if(NOT ${TESTS_BAT})
- set(TEST_APPLICATION application_test)
-
- add_executable(${TEST_APPLICATION} application_tests/${TEST_APPLICATION}.cpp)
- target_link_libraries(${TEST_APPLICATION}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_APPLICATION_SINGLE_PROCESS_NAME ${TEST_APPLICATION}_single_process)
- add_executable(${TEST_APPLICATION_SINGLE_PROCESS_NAME} application_tests/${TEST_APPLICATION_SINGLE_PROCESS_NAME}.cpp)
- target_link_libraries(${TEST_APPLICATION_SINGLE_PROCESS_NAME}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_APPLICATION_AVAILABILITY_NAME ${TEST_APPLICATION}_availability)
- add_executable(${TEST_APPLICATION_AVAILABILITY_NAME} application_tests/${TEST_APPLICATION_AVAILABILITY_NAME}.cpp)
- target_link_libraries(${TEST_APPLICATION_AVAILABILITY_NAME}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_APPLICATION_SINGLE_PROCESS_CONFIGURATION_FILE ${TEST_APPLICATION}_single_process.json)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/application_tests/${TEST_APPLICATION_SINGLE_PROCESS_CONFIGURATION_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_APPLICATION_SINGLE_PROCESS_CONFIGURATION_FILE}
- ${TEST_APPLICATION}_single_process
- )
-
- set(TEST_APPLICATION_CONFIGURATION_FILE ${TEST_APPLICATION}.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/application_tests/conf/${TEST_APPLICATION_CONFIGURATION_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/application_tests/${TEST_APPLICATION_CONFIGURATION_FILE}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/application_tests/${TEST_APPLICATION_CONFIGURATION_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_APPLICATION_CONFIGURATION_FILE}
- ${TEST_APPLICATION}
- )
-
- set(TEST_APPLICATION_CONFIGURATION_FILE_DAEMON ${TEST_APPLICATION}_daemon.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/application_tests/conf/${TEST_APPLICATION_CONFIGURATION_FILE_DAEMON}.in
- ${PROJECT_SOURCE_DIR}/test/application_tests/${TEST_APPLICATION_CONFIGURATION_FILE_DAEMON}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/application_tests/${TEST_APPLICATION_CONFIGURATION_FILE_DAEMON}
- ${PROJECT_BINARY_DIR}/test/${TEST_APPLICATION_CONFIGURATION_FILE_DAEMON}
- ${TEST_APPLICATION}
- )
-
- set(TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE ${TEST_APPLICATION}_no_dispatch_threads.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/application_tests/conf/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/application_tests/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/application_tests/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE}
- ${TEST_APPLICATION}
- )
-
- set(TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE_DAEMON ${TEST_APPLICATION}_no_dispatch_threads_daemon.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/application_tests/conf/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE_DAEMON}.in
- ${PROJECT_SOURCE_DIR}/test/application_tests/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE_DAEMON}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/application_tests/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE_DAEMON}
- ${PROJECT_BINARY_DIR}/test/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE_DAEMON}
- ${TEST_APPLICATION}
- )
-
- set(TEST_APPLICATION_STARTER ${TEST_APPLICATION}_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/application_tests/${TEST_APPLICATION_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_APPLICATION_STARTER}
- ${TEST_APPLICATION}
- )
-
- set(TEST_APPLICATION_SINGLE_PROCESS_STARTER ${TEST_APPLICATION}_single_process_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/application_tests/${TEST_APPLICATION_SINGLE_PROCESS_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_APPLICATION_SINGLE_PROCESS_STARTER}
- ${TEST_APPLICATION}_single_process
- )
-
- set(TEST_APPLICATION_AVAILABILITY_STARTER ${TEST_APPLICATION_AVAILABILITY_NAME}_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/application_tests/${TEST_APPLICATION_AVAILABILITY_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_APPLICATION_AVAILABILITY_STARTER}
- ${TEST_APPLICATION_SINGLE_PROCESS_NAME}
- )
-endif()
-##############################################################################
-# magic-cookies-test-client
-##############################################################################
-if(NOT ${TESTS_BAT})
- set(TEST_MAGIC_COOKIES_NAME magic_cookies_test)
-
- set(TEST_MAGIC_COOKIES_CLIENT ${TEST_MAGIC_COOKIES_NAME}_client)
- add_executable(${TEST_MAGIC_COOKIES_CLIENT} magic_cookies_tests/${TEST_MAGIC_COOKIES_CLIENT}.cpp)
- target_link_libraries(${TEST_MAGIC_COOKIES_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${CMAKE_THREAD_LIBS_INIT}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_MAGIC_COOKIES_SERVICE ${TEST_MAGIC_COOKIES_NAME}_service)
- add_executable(${TEST_MAGIC_COOKIES_SERVICE} magic_cookies_tests/${TEST_MAGIC_COOKIES_SERVICE}.cpp)
- target_link_libraries(${TEST_MAGIC_COOKIES_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${CMAKE_THREAD_LIBS_INIT}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for client into $BUILDDIR/test
- set(TEST_MAGIC_COOKIES_CLIENT_CONFIG_FILE ${TEST_MAGIC_COOKIES_CLIENT}.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/magic_cookies_tests/conf/${TEST_MAGIC_COOKIES_CLIENT_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/magic_cookies_tests/${TEST_MAGIC_COOKIES_CLIENT_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/magic_cookies_tests/${TEST_MAGIC_COOKIES_CLIENT_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_MAGIC_COOKIES_CLIENT_CONFIG_FILE}
- ${TEST_MAGIC_COOKIES_CLIENT}
- )
-
- # Copy bashscript to start client into $BUILDDIR/test
- set(TEST_MAGIC_COOKIES_CLIENT_START_SCRIPT ${TEST_MAGIC_COOKIES_CLIENT}_start.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/magic_cookies_tests/${TEST_MAGIC_COOKIES_CLIENT_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_MAGIC_COOKIES_CLIENT_START_SCRIPT}
- ${TEST_MAGIC_COOKIES_CLIENT}
- )
-
- set(TEST_MAGIC_COOKIES_SERVICE magic_cookies_test_service)
- # Copy config file for service into $BUILDDIR/test
- set(TEST_MAGIC_COOKIES_SERVICE_CONFIG_FILE ${TEST_MAGIC_COOKIES_SERVICE}.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/magic_cookies_tests/conf/${TEST_MAGIC_COOKIES_SERVICE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/magic_cookies_tests/${TEST_MAGIC_COOKIES_SERVICE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/magic_cookies_tests/${TEST_MAGIC_COOKIES_SERVICE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_MAGIC_COOKIES_SERVICE_CONFIG_FILE}
- ${TEST_MAGIC_COOKIES_SERVICE}
- )
-
- # Copy bashscript to start service into $BUILDDIR/test
- set(TEST_MAGIC_COOKIES_SERVICE_START_SCRIPT ${TEST_MAGIC_COOKIES_SERVICE}_start.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/magic_cookies_tests/${TEST_MAGIC_COOKIES_SERVICE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_MAGIC_COOKIES_SERVICE_START_SCRIPT}
- ${TEST_MAGIC_COOKIES_CLIENT}
- )
-
- # Copy bashscript to start client and server $BUILDDIR/test
- set(TEST_MAGIC_COOKIES_STARTER ${TEST_MAGIC_COOKIES_NAME}_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/magic_cookies_tests/${TEST_MAGIC_COOKIES_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_MAGIC_COOKIES_STARTER}
- ${TEST_MAGIC_COOKIES_CLIENT}
- )
-endif()
-##############################################################################
-# someip-header-factory-test
-##############################################################################
-if(NOT ${TESTS_BAT})
- set(TEST_HEADER_FACTORY_NAME header_factory_test)
-
- set(TEST_HEADER_FACTORY header_factory_test)
- add_executable(${TEST_HEADER_FACTORY} header_factory_tests/header_factory_test.cpp)
- target_link_libraries(${TEST_HEADER_FACTORY}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${CMAKE_THREAD_LIBS_INIT}
- ${TEST_LINK_LIBRARIES}
- )
-
- ##############################################################################
- # Now comes the second part of the header factory test which consists of ouf
- # a client and a service both with settings file and bash scripts to start them
- set(TEST_HEADER_FACTORY_CLIENT header_factory_test_client)
- add_executable(${TEST_HEADER_FACTORY_CLIENT} header_factory_tests/${TEST_HEADER_FACTORY_CLIENT}.cpp)
- target_link_libraries(${TEST_HEADER_FACTORY_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${CMAKE_THREAD_LIBS_INIT}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for client into $BUILDDIR/test
- set(TEST_HEADER_FACTORY_CLIENT_CONFIG_FILE ${TEST_HEADER_FACTORY_CLIENT}.json)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/header_factory_tests/${TEST_HEADER_FACTORY_CLIENT_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_HEADER_FACTORY_CLIENT_CONFIG_FILE}
- ${TEST_HEADER_FACTORY_CLIENT}
- )
-
- # Copy bashscript to start client into $BUILDDIR/test
- set(TEST_HEADER_FACTORY_CLIENT_START_SCRIPT ${TEST_HEADER_FACTORY_CLIENT}_start.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/header_factory_tests/${TEST_HEADER_FACTORY_CLIENT_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_HEADER_FACTORY_CLIENT_START_SCRIPT}
- ${TEST_HEADER_FACTORY_CLIENT}
- )
-
- set(TEST_HEADER_FACTORY_SERVICE header_factory_test_service)
- add_executable(${TEST_HEADER_FACTORY_SERVICE} header_factory_tests/${TEST_HEADER_FACTORY_SERVICE}.cpp)
- target_link_libraries(${TEST_HEADER_FACTORY_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${CMAKE_THREAD_LIBS_INIT}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for service into $BUILDDIR/test
- set(TEST_HEADER_FACTORY_SERVICE_CONFIG_FILE ${TEST_HEADER_FACTORY_SERVICE}.json)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/header_factory_tests/${TEST_HEADER_FACTORY_SERVICE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_HEADER_FACTORY_SERVICE_CONFIG_FILE}
- ${TEST_HEADER_FACTORY_SERVICE}
- )
-
- # Copy bashscript to start service into $BUILDDIR/test
- set(TEST_HEADER_FACTORY_SERVICE_START_SCRIPT ${TEST_HEADER_FACTORY_SERVICE}_start.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/header_factory_tests/${TEST_HEADER_FACTORY_SERVICE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_HEADER_FACTORY_SERVICE_START_SCRIPT}
- ${TEST_HEADER_FACTORY_SERVICE}
- )
-
- # Copy bashscript to start client and server $BUILDDIR/test
- set(TEST_HEADER_FACTORY_STARTER header_factory_test_send_receive_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/header_factory_tests/${TEST_HEADER_FACTORY_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_HEADER_FACTORY_STARTER}
- ${TEST_HEADER_FACTORY_CLIENT}
- )
-endif()
-##############################################################################
-# routing-test
-##############################################################################
-
-if(NOT ${TESTS_BAT})
- set(TEST_LOCAL_ROUTING_NAME local_routing_test)
-
- set(TEST_LOCAL_ROUTING_SERVICE local_routing_test_service)
- add_executable(${TEST_LOCAL_ROUTING_SERVICE} routing_tests/${TEST_LOCAL_ROUTING_SERVICE}.cpp)
- target_link_libraries(${TEST_LOCAL_ROUTING_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for service into $BUILDDIR/test
- set(TEST_LOCAL_ROUTING_SERVICE_CONFIG_FILE ${TEST_LOCAL_ROUTING_SERVICE}.json)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_LOCAL_ROUTING_SERVICE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_ROUTING_SERVICE_CONFIG_FILE}
- ${TEST_LOCAL_ROUTING_SERVICE}
- )
-
- # Copy bashscript to start service into $BUILDDIR/test
- set(TEST_LOCAL_ROUTING_SERVICE_START_SCRIPT ${TEST_LOCAL_ROUTING_SERVICE}_start.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_LOCAL_ROUTING_SERVICE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_ROUTING_SERVICE_START_SCRIPT}
- ${TEST_LOCAL_ROUTING_SERVICE}
- )
-
- set(TEST_LOCAL_ROUTING_CLIENT local_routing_test_client)
- add_executable(${TEST_LOCAL_ROUTING_CLIENT} routing_tests/${TEST_LOCAL_ROUTING_CLIENT}.cpp)
- target_link_libraries(${TEST_LOCAL_ROUTING_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for client into $BUILDDIR/test
- set(TEST_LOCAL_ROUTING_CLIENT_CONFIG_FILE ${TEST_LOCAL_ROUTING_CLIENT}.json)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_LOCAL_ROUTING_CLIENT_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_ROUTING_CLIENT_CONFIG_FILE}
- ${TEST_LOCAL_ROUTING_CLIENT}
- )
-
- # Copy bashscript to start client into $BUILDDIR/test
- set(TEST_LOCAL_ROUTING_CLIENT_START_SCRIPT ${TEST_LOCAL_ROUTING_CLIENT}_start.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_LOCAL_ROUTING_CLIENT_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_ROUTING_CLIENT_START_SCRIPT}
- ${TEST_LOCAL_ROUTING_CLIENT}
- )
-
- # Copy bashscript to start client and server $BUILDDIR/test
- set(TEST_LOCAL_ROUTING_STARTER local_routing_test_starter.sh)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/routing_tests/conf/${TEST_LOCAL_ROUTING_STARTER}.in
- ${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_LOCAL_ROUTING_STARTER}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_LOCAL_ROUTING_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_ROUTING_STARTER}
- ${TEST_LOCAL_ROUTING_CLIENT}
- )
-
- ##############################################################################
- set(TEST_EXTERNAL_LOCAL_ROUTING_NAME external_local_routing_test)
- set(TEST_EXTERNAL_LOCAL_ROUTING_SERVICE external_local_routing_test_service)
- add_executable(${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE} routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}.cpp)
- target_link_libraries(${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for service into $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_CONFIG_FILE ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/routing_tests/conf/${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_CONFIG_FILE}
- ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}
- )
-
- # Copy bashscript to start service into $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_START_SCRIPT ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_START_SCRIPT}
- ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}
- )
-
- # Copy bashscript to start external client into $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_ROUTING_CLIENT external_local_routing_test_client_external)
- set(TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_START_SCRIPT ${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT}_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_START_SCRIPT}
- ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}
- )
-
- # Copy config file for client into $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_CONFIG_FILE ${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT}.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/routing_tests/conf/${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_CONFIG_FILE}
- ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}
- )
-
- # Copy bashscript to start client and server $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_ROUTING_STARTER external_local_routing_test_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_ROUTING_STARTER}
- ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}
- )
-else()
- set(TEST_LOCAL_ROUTING_NAME local_routing_test)
-
- set(TEST_LOCAL_ROUTING_SERVICE local_routing_test_service)
- add_executable(${TEST_LOCAL_ROUTING_SERVICE} routing_tests/${TEST_LOCAL_ROUTING_SERVICE}.cpp)
- target_link_libraries(${TEST_LOCAL_ROUTING_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for service into $BUILDDIR/test
- set(TEST_LOCAL_ROUTING_SERVICE_CONFIG_FILE ${TEST_LOCAL_ROUTING_SERVICE}.json)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_LOCAL_ROUTING_SERVICE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_ROUTING_SERVICE_CONFIG_FILE}
- ${TEST_LOCAL_ROUTING_SERVICE}
- )
-
- # Copy bashscript to start service into $BUILDDIR/test
- set(TEST_LOCAL_ROUTING_SERVICE_START_SCRIPT ${TEST_LOCAL_ROUTING_SERVICE}_start.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_LOCAL_ROUTING_SERVICE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_ROUTING_SERVICE_START_SCRIPT}
- ${TEST_LOCAL_ROUTING_SERVICE}
- )
-
- set(TEST_LOCAL_ROUTING_CLIENT local_routing_test_client)
- add_executable(${TEST_LOCAL_ROUTING_CLIENT} routing_tests/${TEST_LOCAL_ROUTING_CLIENT}.cpp)
- target_link_libraries(${TEST_LOCAL_ROUTING_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for client into $BUILDDIR/test
- set(TEST_LOCAL_ROUTING_CLIENT_CONFIG_FILE ${TEST_LOCAL_ROUTING_CLIENT}.json)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_LOCAL_ROUTING_CLIENT_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_ROUTING_CLIENT_CONFIG_FILE}
- ${TEST_LOCAL_ROUTING_CLIENT}
- )
-
- # Copy bashscript to start client into $BUILDDIR/test
- set(TEST_LOCAL_ROUTING_CLIENT_START_SCRIPT ${TEST_LOCAL_ROUTING_CLIENT}_start.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_LOCAL_ROUTING_CLIENT_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_ROUTING_CLIENT_START_SCRIPT}
- ${TEST_LOCAL_ROUTING_CLIENT}
- )
-
- # Copy bashscript to start client and server $BUILDDIR/test
- set(TEST_LOCAL_ROUTING_STARTER local_routing_test_starter.sh)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/routing_tests/conf/${TEST_LOCAL_ROUTING_STARTER}.bat.in
- ${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_LOCAL_ROUTING_STARTER}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/routing_tests/${TEST_LOCAL_ROUTING_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_ROUTING_STARTER}
- ${TEST_LOCAL_ROUTING_CLIENT}
- )
-endif()
-##############################################################################
-# restart_routing-test
-##############################################################################
-
-if(NOT ${TESTS_BAT})
- set(TEST_RESTART_ROUTING_NAME restart_routing_test)
-
- set(TEST_RESTART_ROUTING_SERVICE restart_routing_test_service)
- add_executable(${TEST_RESTART_ROUTING_SERVICE} restart_routing_tests/${TEST_RESTART_ROUTING_SERVICE}.cpp)
- target_link_libraries(${TEST_RESTART_ROUTING_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for service into $BUILDDIR/test
- set(TEST_RESTART_ROUTING_SERVICE_CONFIG_FILE ${TEST_RESTART_ROUTING_SERVICE}.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/restart_routing_tests/${TEST_RESTART_ROUTING_SERVICE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_RESTART_ROUTING_SERVICE_CONFIG_FILE}
- ${TEST_RESTART_ROUTING_SERVICE}
- )
-
- # Copy bashscript to start service into $BUILDDIR/test
- set(TEST_RESTART_ROUTING_SERVICE_START_SCRIPT ${TEST_RESTART_ROUTING_SERVICE}_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/restart_routing_tests/${TEST_RESTART_ROUTING_SERVICE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_RESTART_ROUTING_SERVICE_START_SCRIPT}
- ${TEST_RESTART_ROUTING_SERVICE}
- )
-
- set(TEST_RESTART_ROUTING_CLIENT restart_routing_test_client)
- add_executable(${TEST_RESTART_ROUTING_CLIENT}
- restart_routing_tests/${TEST_RESTART_ROUTING_CLIENT}.cpp
- )
- target_link_libraries(${TEST_RESTART_ROUTING_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for client into $BUILDDIR/test
- set(TEST_RESTART_ROUTING_CLIENT_CONFIG_FILE ${TEST_RESTART_ROUTING_CLIENT}.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/restart_routing_tests/${TEST_RESTART_ROUTING_CLIENT_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_RESTART_ROUTING_CLIENT_CONFIG_FILE}
- ${TEST_RESTART_ROUTING_CLIENT}
- )
-
- # Copy bashscript to start client into $BUILDDIR/test
- set(TEST_RESTART_ROUTING_CLIENT_START_SCRIPT ${TEST_RESTART_ROUTING_CLIENT}_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/restart_routing_tests/${TEST_RESTART_ROUTING_CLIENT_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_RESTART_ROUTING_CLIENT_START_SCRIPT}
- ${TEST_RESTART_ROUTING_CLIENT}
- )
-
- # Copy bashscript to start client and server $BUILDDIR/test
- set(TEST_RESTART_ROUTING_STARTER restart_routing_test_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/restart_routing_tests/${TEST_RESTART_ROUTING_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_RESTART_ROUTING_STARTER}
- ${TEST_RESTART_ROUTING_CLIENT}
- )
-
- # Copy config file for autoconfig into $BUILDDIR/test
- set(TEST_RESTART_ROUTING_AUTO_CONFIG_FILE ${TEST_RESTART_ROUTING_NAME}_autoconfig.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/restart_routing_tests/${TEST_RESTART_ROUTING_AUTO_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_RESTART_ROUTING_AUTO_CONFIG_FILE}
- ${TEST_RESTART_ROUTING_CLIENT}
- )
-endif()
-
-##############################################################################
-# security test
-##############################################################################
-
-if (${TEST_SECURITY})
- if(NOT ${TESTS_BAT})
- set(TEST_SECURITY_NAME security_test)
- set(TEST_SECURITY_SERVICE security_test_service)
- set(TEST_SECURITY_CLIENT security_test_client)
-
- add_executable(${TEST_SECURITY_SERVICE} security_tests/${TEST_SECURITY_SERVICE}.cpp)
- target_link_libraries(${TEST_SECURITY_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for service into $BUILDDIR/test
- set(TEST_SECURITY_LOCAL_CONFIG_FILE ${TEST_SECURITY_NAME}_local_config.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/security_tests/conf/${TEST_SECURITY_LOCAL_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/security_tests/${TEST_SECURITY_LOCAL_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/security_tests/${TEST_SECURITY_LOCAL_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SECURITY_LOCAL_CONFIG_FILE}
- ${TEST_SECURITY_SERVICE}
- )
-
- # Copy service config file for external allow tests into $BUILDDIR/test
- set(TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL ${TEST_SECURITY_NAME}_config_service_external_allow.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/security_tests/conf/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL}.in
- ${PROJECT_SOURCE_DIR}/test/security_tests/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/security_tests/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL}
- ${PROJECT_BINARY_DIR}/test/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL}
- ${TEST_SECURITY_SERVICE}
- )
-
- # Copy client config file for external allow tests into $BUILDDIR/test
- set(TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL ${TEST_SECURITY_NAME}_config_client_external_allow.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/security_tests/conf/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL}.in
- ${PROJECT_SOURCE_DIR}/test/security_tests/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/security_tests/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL}
- ${PROJECT_BINARY_DIR}/test/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL}
- ${TEST_SECURITY_SERVICE}
- )
-
- # Copy service config file for external deny tests into $BUILDDIR/test
- set(TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL_DENY ${TEST_SECURITY_NAME}_config_service_external_deny.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/security_tests/conf/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL_DENY}.in
- ${PROJECT_SOURCE_DIR}/test/security_tests/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL_DENY}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/security_tests/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL_DENY}
- ${PROJECT_BINARY_DIR}/test/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL_DENY}
- ${TEST_SECURITY_SERVICE}
- )
-
- # Copy client config file for external deny tests into $BUILDDIR/test
- set(TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL_DENY ${TEST_SECURITY_NAME}_config_client_external_deny.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/security_tests/conf/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL_DENY}.in
- ${PROJECT_SOURCE_DIR}/test/security_tests/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL_DENY}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/security_tests/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL_DENY}
- ${PROJECT_BINARY_DIR}/test/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL_DENY}
- ${TEST_SECURITY_SERVICE}
- )
-
- # Copy bashscript to start local test into $BUILDDIR/test
- set(TEST_SECURITY_SERVICE_LOCAL_START_SCRIPT ${TEST_SECURITY_NAME}_local_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/security_tests/${TEST_SECURITY_SERVICE_LOCAL_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_SECURITY_SERVICE_LOCAL_START_SCRIPT}
- ${TEST_SECURITY_SERVICE}
- )
-
- # Copy bashscript to start external tests (master) into $BUILDDIR/test
- set(TEST_SECURITY_EXTERNAL_MASTER_START_SCRIPT ${TEST_SECURITY_NAME}_external_master_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/security_tests/${TEST_SECURITY_EXTERNAL_MASTER_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_SECURITY_EXTERNAL_MASTER_START_SCRIPT}
- ${TEST_SECURITY_SERVICE}
- )
-
- # Copy bashscript to start external tests (slave) into $BUILDDIR/test
- set(TEST_SECURITY_EXTERNAL_SLAVE_START_SCRIPT ${TEST_SECURITY_NAME}_external_slave_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/security_tests/${TEST_SECURITY_EXTERNAL_SLAVE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_SECURITY_EXTERNAL_SLAVE_START_SCRIPT}
- ${TEST_SECURITY_SERVICE}
- )
-
- add_executable(${TEST_SECURITY_CLIENT}
- security_tests/${TEST_SECURITY_CLIENT}.cpp
- )
- target_link_libraries(${TEST_SECURITY_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
- endif()
-endif()
-
-##############################################################################
-# payload-test
-##############################################################################
-
-if(NOT ${TESTS_BAT})
- set(TEST_LOCAL_PAYLOAD_NAME local_payload_test)
-
- set(TEST_PAYLOAD_SERVICE payload_test_service)
- add_executable(${TEST_PAYLOAD_SERVICE} payload_tests/${TEST_PAYLOAD_SERVICE}.cpp)
- target_link_libraries(${TEST_PAYLOAD_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for service into $BUILDDIR/test
- set(TEST_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE local_${TEST_PAYLOAD_SERVICE}.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE}
- ${TEST_PAYLOAD_SERVICE}
- )
-
- # Copy bashscript to start service into $BUILDDIR/test
- set(TEST_LOCAL_PAYLOAD_SERVICE_START_SCRIPT local_${TEST_PAYLOAD_SERVICE}_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_LOCAL_PAYLOAD_SERVICE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_PAYLOAD_SERVICE_START_SCRIPT}
- ${TEST_PAYLOAD_SERVICE}
- )
-
- set(TEST_PAYLOAD_CLIENT payload_test_client)
- add_executable(${TEST_PAYLOAD_CLIENT}
- payload_tests/${TEST_PAYLOAD_CLIENT}.cpp
- payload_tests/stopwatch.cpp
- )
- target_link_libraries(${TEST_PAYLOAD_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for client into $BUILDDIR/test
- set(TEST_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE local_${TEST_PAYLOAD_CLIENT}.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE}
- ${TEST_PAYLOAD_CLIENT}
- )
-
- # Copy bashscript to start client into $BUILDDIR/test
- set(TEST_LOCAL_PAYLOAD_CLIENT_START_SCRIPT local_${TEST_PAYLOAD_CLIENT}_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_LOCAL_PAYLOAD_CLIENT_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_PAYLOAD_CLIENT_START_SCRIPT}
- ${TEST_PAYLOAD_CLIENT}
- )
-
- # Copy bashscript to start client and server $BUILDDIR/test
- set(TEST_LOCAL_PAYLOAD_STARTER local_payload_test_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_LOCAL_PAYLOAD_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_PAYLOAD_STARTER}
- ${TEST_PAYLOAD_CLIENT}
- )
-
- ##############################################################################
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_NAME external_local_payload_test)
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE external_local_payload_test_service)
-
- # Copy config file for service into $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE ${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE}.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/payload_tests/conf/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE}
- ${TEST_PAYLOAD_SERVICE}
- )
-
- # Copy bashscript to start service into $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_START_SCRIPT ${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE}_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_START_SCRIPT}
- ${TEST_PAYLOAD_SERVICE}
- )
-
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL external_local_payload_test_client_local)
-
- # Copy config file for client into $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL}.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/payload_tests/conf/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE}
- ${TEST_PAYLOAD_CLIENT}
- )
-
- # Copy bashscript to start client into $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_START_SCRIPT ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL}_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_START_SCRIPT}
- ${TEST_PAYLOAD_CLIENT}
- )
-
- # Copy bashscript to start client and server $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_NAME external_local_payload_test_client_local)
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_STARTER ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_NAME}_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_STARTER}
- ${TEST_PAYLOAD_CLIENT}
- )
- ##############################################################################
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_NAME external_local_payload_test_client_external)
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL external_local_payload_test_client_external)
-
- # Copy config file for client into $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_CONFIG_FILE ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL}.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/payload_tests/conf/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_CONFIG_FILE}
- ${TEST_PAYLOAD_CLIENT}
- )
-
- # Copy bashscript to start client into $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_START_SCRIPT ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL}_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_START_SCRIPT}
- ${TEST_PAYLOAD_CLIENT}
- )
-
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CLIENT_EXTERNAL external_local_payload_test_service_client_external)
-
- # Copy bashscript to start service into $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CLIENTT_EXTERNAL_START_SCRIPT ${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CLIENT_EXTERNAL}_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CLIENTT_EXTERNAL_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CLIENTT_EXTERNAL_START_SCRIPT}
- ${TEST_PAYLOAD_SERVICE}
- )
-
- # Copy bashscript to start client and server $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_STARTER ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_NAME}_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_STARTER}
- ${TEST_PAYLOAD_CLIENT}
- )
-
- ##############################################################################
- # Copy bashscript to start client and server $BUILDDIR/test
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_AND_EXTERNAL_NAME external_local_payload_test_client_local_and_external)
- set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_AND_EXTERNAL_STARTER ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_AND_EXTERNAL_NAME}_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_AND_EXTERNAL_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_AND_EXTERNAL_STARTER}
- ${TEST_PAYLOAD_CLIENT}
- )
-
- ##############################################################################
- set(TEST_LOCAL_PAYLOAD_HUGE_NAME local_payload_test_huge_payload)
- # Copy bashscript to start client and server $BUILDDIR/test
- set(TEST_LOCAL_PAYLOAD_HUGE_STARTER ${TEST_LOCAL_PAYLOAD_HUGE_NAME}_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/payload_tests/${TEST_LOCAL_PAYLOAD_HUGE_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_PAYLOAD_HUGE_STARTER}
- ${TEST_PAYLOAD_CLIENT}
- )
-endif()
-
-##############################################################################
-# big_payload_test
-##############################################################################
-if(NOT ${TESTS_BAT})
- set(TEST_BIG_PAYLOAD_NAME big_payload_test)
-
- set(TEST_BIG_PAYLOAD_SERVICE big_payload_test_service)
- add_executable(${TEST_BIG_PAYLOAD_SERVICE} big_payload_tests/${TEST_BIG_PAYLOAD_SERVICE}.cpp)
- target_link_libraries(${TEST_BIG_PAYLOAD_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_BIG_PAYLOAD_CLIENT big_payload_test_client)
- add_executable(${TEST_BIG_PAYLOAD_CLIENT} big_payload_tests/${TEST_BIG_PAYLOAD_CLIENT}.cpp)
- target_link_libraries(${TEST_BIG_PAYLOAD_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for client and service into $BUILDDIR/test
- set(TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE ${TEST_BIG_PAYLOAD_NAME}_local.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE}
- ${TEST_BIG_PAYLOAD_SERVICE}
- )
-
- # Copy config file for client and service into $BUILDDIR/test
- set(TEST_QUEUE_LIMITED_LOCAL_BIG_PAYLOAD_CONFIG_FILE ${TEST_BIG_PAYLOAD_NAME}_local_queue_limited.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_QUEUE_LIMITED_LOCAL_BIG_PAYLOAD_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_QUEUE_LIMITED_LOCAL_BIG_PAYLOAD_CONFIG_FILE}
- ${TEST_BIG_PAYLOAD_SERVICE}
- )
-
- # Copy config file for client and service into $BUILDDIR/test
- set(TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE_RANDOM ${TEST_BIG_PAYLOAD_NAME}_local_random.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE_RANDOM}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE_RANDOM}
- ${TEST_BIG_PAYLOAD_SERVICE}
- )
-
- # Copy config file for client and service into $BUILDDIR/test
- set(TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE_LIMITED ${TEST_BIG_PAYLOAD_NAME}_local_limited.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE_LIMITED}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE_LIMITED}
- ${TEST_BIG_PAYLOAD_SERVICE}
- )
-
- # Copy config file for client and service into $BUILDDIR/test
- set(TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE ${TEST_BIG_PAYLOAD_NAME}_tcp_client.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE}
- ${TEST_BIG_PAYLOAD_CLIENT}
- )
-
- # Copy config file for client and service into $BUILDDIR/test
- set(TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE ${TEST_BIG_PAYLOAD_NAME}_tcp_service.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE}
- ${TEST_BIG_PAYLOAD_SERVICE}
- )
-
- # Copy config file for client and service into $BUILDDIR/test
- set(TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED ${TEST_BIG_PAYLOAD_NAME}_tcp_client_limited_general.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED}.in
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED}
- ${TEST_BIG_PAYLOAD_CLIENT}
- )
-
- # Copy config file for client and service into $BUILDDIR/test
- set(TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED ${TEST_BIG_PAYLOAD_NAME}_tcp_service_limited_general.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED}.in
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED}
- ${TEST_BIG_PAYLOAD_SERVICE}
- )
-
- # Copy config file for client and service into $BUILDDIR/test
- set(TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM ${TEST_BIG_PAYLOAD_NAME}_tcp_client_random.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM}.in
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM}
- ${TEST_BIG_PAYLOAD_CLIENT}
- )
-
- # Copy config file for client and service into $BUILDDIR/test
- set(TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM ${TEST_BIG_PAYLOAD_NAME}_tcp_service_random.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM}.in
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM}
- ${TEST_BIG_PAYLOAD_SERVICE}
- )
-
- # Copy config file for client and service into $BUILDDIR/test
- set(TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_GENERAL ${TEST_BIG_PAYLOAD_NAME}_tcp_client_queue_limited_general.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_GENERAL}.in
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_GENERAL}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_GENERAL}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_GENERAL}
- ${TEST_BIG_PAYLOAD_CLIENT}
- )
-
- # Copy config file for client and service into $BUILDDIR/test
- set(TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_GENERAL ${TEST_BIG_PAYLOAD_NAME}_tcp_service_queue_limited_general.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_GENERAL}.in
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_GENERAL}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_GENERAL}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_GENERAL}
- ${TEST_BIG_PAYLOAD_SERVICE}
- )
-
- # Copy config file for client and service into $BUILDDIR/test
- set(TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC ${TEST_BIG_PAYLOAD_NAME}_tcp_client_queue_limited_specific.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}.in
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}
- ${TEST_BIG_PAYLOAD_CLIENT}
- )
-
- # Copy config file for client and service into $BUILDDIR/test
- set(TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC ${TEST_BIG_PAYLOAD_NAME}_tcp_service_queue_limited_specific.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}.in
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}
- ${TEST_BIG_PAYLOAD_SERVICE}
- )
- # Copy config file for UDP client and service into $BUILDDIR/test
- set(TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_UDP_CONFIG_FILE ${TEST_BIG_PAYLOAD_NAME}_udp_service.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_UDP_CONFIG_FILE}
- ${TEST_BIG_PAYLOAD_SERVICE}
- )
- set(TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_UDP_CONFIG_FILE ${TEST_BIG_PAYLOAD_NAME}_udp_client.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_UDP_CONFIG_FILE}
- ${TEST_BIG_PAYLOAD_CLIENT}
- )
-
- # Copy bashscript to start client local to $BUILDDIR/test
- set(TEST_LOCAL_BIG_PAYLOAD_CLIENT_START_SCRIPT ${TEST_BIG_PAYLOAD_NAME}_client_local_start.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_LOCAL_BIG_PAYLOAD_CLIENT_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_BIG_PAYLOAD_CLIENT_START_SCRIPT}
- ${TEST_BIG_PAYLOAD_CLIENT}
- )
-
- # Copy bashscript to start service local to $BUILDDIR/test
- set(TEST_LOCAL_BIG_PAYLOAD_SERVICE_START_SCRIPT ${TEST_BIG_PAYLOAD_NAME}_service_local_start.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_LOCAL_BIG_PAYLOAD_SERVICE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_BIG_PAYLOAD_SERVICE_START_SCRIPT}
- ${TEST_BIG_PAYLOAD_SERVICE}
- )
-
- # Copy bashscript to start client and server $BUILDDIR/test
- set(TEST_LOCAL_BIG_PAYLOAD_NAME big_payload_test_local)
- set(TEST_LOCAL_BIG_PAYLOAD_NAME_RANDOM big_payload_test_local_random)
- set(TEST_LOCAL_BIG_PAYLOAD_NAME_LIMITED big_payload_test_local_limited)
- set(TEST_LOCAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED big_payload_test_local_queue_limited)
- set(TEST_LOCAL_BIG_PAYLOAD_STARTER ${TEST_LOCAL_BIG_PAYLOAD_NAME}_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_LOCAL_BIG_PAYLOAD_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_BIG_PAYLOAD_STARTER}
- ${TEST_BIG_PAYLOAD_SERVICE}
- )
-
- # Copy bashscript to start client for external test into $BUILDDIR/test
- set(TEST_EXTERNAL_BIG_PAYLOAD_NAME big_payload_test_external)
- set(TEST_EXTERNAL_BIG_PAYLOAD_NAME_RANDOM big_payload_test_external_random)
- set(TEST_EXTERNAL_BIG_PAYLOAD_NAME_LIMITED big_payload_test_external_limited)
- set(TEST_EXTERNAL_BIG_PAYLOAD_NAME_LIMITED_GENERAL big_payload_test_external_limited_general)
- set(TEST_EXTERNAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED_GENERAL big_payload_test_external_queue_limited_general)
- set(TEST_EXTERNAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED_SPECIFIC big_payload_test_external_queue_limited_specific)
- set(TEST_EXTERNAL_BIG_PAYLOAD_NAME_UDP big_payload_test_external_udp)
- set(TEST_EXTERNAL_BIG_PAYLOAD_STARTER ${TEST_EXTERNAL_BIG_PAYLOAD_NAME}_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER}
- ${TEST_BIG_PAYLOAD_SERVICE}
- )
-
- # Copy bashscript to start server for external into $BUILDDIR/test
- set(TEST_EXTERNAL_BIG_PAYLOAD_NAME big_payload_test_external)
- set(TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_START_SCRIPT ${TEST_BIG_PAYLOAD_NAME}_service_external_start.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_START_SCRIPT}
- ${TEST_BIG_PAYLOAD_SERVICE}
- )
-
- # Copy bashscript to start client for external test into $BUILDDIR/test
- set(TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_START_SCRIPT ${TEST_BIG_PAYLOAD_NAME}_client_start.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_START_SCRIPT}
- ${TEST_BIG_PAYLOAD_CLIENT}
- )
-endif()
-
-##############################################################################
-# client id tests
-##############################################################################
-if(NOT ${TESTS_BAT})
- set(TEST_CLIENT_ID_NAME client_id_test)
- set(TEST_CLIENT_ID_SERVICE ${TEST_CLIENT_ID_NAME}_service)
- add_executable(${TEST_CLIENT_ID_SERVICE} client_id_tests/${TEST_CLIENT_ID_NAME}_service.cpp)
- target_link_libraries(${TEST_CLIENT_ID_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_CLIENT_ID_UTILITY ${TEST_CLIENT_ID_NAME}_utility)
- add_executable(${TEST_CLIENT_ID_UTILITY}
- client_id_tests/${TEST_CLIENT_ID_UTILITY}.cpp
- ${PROJECT_SOURCE_DIR}/implementation/utility/src/utility.cpp)
- target_link_libraries(${TEST_CLIENT_ID_UTILITY}
- vsomeip3
- vsomeip3-cfg
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config files for test into $BUILDDIR/test
- set(TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE
- ${TEST_CLIENT_ID_NAME}_diff_client_ids_diff_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/conf/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- ${TEST_CLIENT_ID_SERVICE}
- )
-
- set(TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE
- ${TEST_CLIENT_ID_NAME}_diff_client_ids_diff_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/conf/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_CLIENT_ID_SERVICE}
- )
-
- set(TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE
- ${TEST_CLIENT_ID_NAME}_diff_client_ids_same_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/conf/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- ${TEST_CLIENT_ID_SERVICE}
- )
-
- set(TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE
- ${TEST_CLIENT_ID_NAME}_diff_client_ids_same_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/conf/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_CLIENT_ID_SERVICE}
- )
-
- set(TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE
- ${TEST_CLIENT_ID_NAME}_diff_client_ids_partial_same_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/conf/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
- ${TEST_CLIENT_ID_SERVICE}
- )
-
- set(TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE
- ${TEST_CLIENT_ID_NAME}_diff_client_ids_partial_same_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/conf/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_CLIENT_ID_SERVICE}
- )
-
- set(TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE
- ${TEST_CLIENT_ID_NAME}_same_client_ids_same_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/conf/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- ${TEST_CLIENT_ID_SERVICE}
- )
-
- set(TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE
- ${TEST_CLIENT_ID_NAME}_same_client_ids_same_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/conf/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_CLIENT_ID_SERVICE}
- )
-
- set(TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE
- ${TEST_CLIENT_ID_NAME}_same_client_ids_diff_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/conf/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- ${TEST_CLIENT_ID_SERVICE}
- )
-
- set(TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE
- ${TEST_CLIENT_ID_NAME}_same_client_ids_diff_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/conf/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_CLIENT_ID_SERVICE}
- )
-
- set(TEST_CLIENT_ID_UTILITY_CONFIG_FILE ${TEST_CLIENT_ID_NAME}_utility.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_UTILITY_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_UTILITY_CONFIG_FILE}
- ${TEST_CLIENT_ID_UTILITY}
- )
- set(TEST_CLIENT_ID_UTILITY_MASKED_511_CONFIG_FILE ${TEST_CLIENT_ID_NAME}_utility_masked_511.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_UTILITY_MASKED_511_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_UTILITY_MASKED_511_CONFIG_FILE}
- ${TEST_CLIENT_ID_UTILITY}
- )
-
- set(TEST_CLIENT_ID_UTILITY_MASKED_4095_CONFIG_FILE ${TEST_CLIENT_ID_NAME}_utility_masked_4095.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_UTILITY_MASKED_4095_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_UTILITY_MASKED_4095_CONFIG_FILE}
- ${TEST_CLIENT_ID_UTILITY}
- )
-
- set(TEST_CLIENT_ID_UTILITY_MASKED_127_CONFIG_FILE ${TEST_CLIENT_ID_NAME}_utility_masked_127.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_UTILITY_MASKED_127_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_UTILITY_MASKED_127_CONFIG_FILE}
- ${TEST_CLIENT_ID_UTILITY}
- )
-
- set(TEST_CLIENT_ID_UTILITY_MASKED_DISCONTINUOUS_511_CONFIG_FILE ${TEST_CLIENT_ID_NAME}_utility_discontinuous_masked_511.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_UTILITY_MASKED_DISCONTINUOUS_511_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_UTILITY_MASKED_DISCONTINUOUS_511_CONFIG_FILE}
- ${TEST_CLIENT_ID_UTILITY}
- )
-
- # copy starter scripts into builddir
- set(TEST_CLIENT_ID_MASTER_STARTER ${TEST_CLIENT_ID_NAME}_master_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_MASTER_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_MASTER_STARTER}
- ${TEST_CLIENT_ID_SERVICE}
- )
- set(TEST_CLIENT_ID_SLAVE_STARTER ${TEST_CLIENT_ID_NAME}_slave_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/client_id_tests/${TEST_CLIENT_ID_SLAVE_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_SLAVE_STARTER}
- ${TEST_CLIENT_ID_SERVICE}
- )
-endif()
-
-##############################################################################
-# subscribe notify tests
-##############################################################################
-if(NOT ${TESTS_BAT})
- set(TEST_SUBSCRIBE_NOTIFY_NAME subscribe_notify_test)
- set(TEST_SUBSCRIBE_NOTIFY_SERVICE ${TEST_SUBSCRIBE_NOTIFY_NAME}_service)
- add_executable(${TEST_SUBSCRIBE_NOTIFY_SERVICE} subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_NAME}_service.cpp)
- target_link_libraries(${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config files for test into $BUILDDIR/test
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_master_tcp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_slave_tcp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_master_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_slave_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_master_tcp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_slave_tcp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_master_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_slave_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_partial_same_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_partial_same_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_same_client_ids_same_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_same_client_ids_same_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_same_client_ids_diff_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_same_client_ids_diff_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_master_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_slave_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_autoconfig_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_autoconfig_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- # copy starter scripts into builddir
- set(TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER ${TEST_SUBSCRIBE_NOTIFY_NAME}_master_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
- set(TEST_SUBSCRIBE_NOTIFY_SLAVE_STARTER ${TEST_SUBSCRIBE_NOTIFY_NAME}_slave_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SLAVE_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_SLAVE_STARTER}
- ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
- )
-
- # subscribe_notify_test_one_event_two_eventgroups
- set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME subscribe_notify_test_one_event_two_eventgroups)
-
- # service
- set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_service)
- add_executable(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}
- subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}.cpp)
- target_link_libraries(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
- # client
- set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_client)
- add_executable(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT}
- subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT}.cpp)
- target_link_libraries(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_udp_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT}
- )
- set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_tcp_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER
- ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_master_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER}
- ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}
- )
- set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_STARTER
- ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_slave_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_STARTER}
- ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}
- )
-endif()
-
-##############################################################################
-# subscribe notify one tests
-##############################################################################
-if(NOT ${TESTS_BAT})
- set(TEST_SUBSCRIBE_NOTIFY_ONE_NAME subscribe_notify_one_test)
- set(TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_service)
- add_executable(${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE} subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_service.cpp)
- target_link_libraries(${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config files for test into $BUILDDIR/test
- set(TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_master_tcp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_slave_tcp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_master_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
- )
-
- set(TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE
- ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_slave_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
- ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
- )
-
- # copy starter scripts into builddir
- set(TEST_SUBSCRIBE_NOTIFY_ONE_MASTER_STARTER ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_master_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_MASTER_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_MASTER_STARTER}
- ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
- )
- set(TEST_SUBSCRIBE_NOTIFY_ONE_SLAVE_STARTER ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_slave_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_SLAVE_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_SLAVE_STARTER}
- ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
- )
-endif()
-
-##############################################################################
-# cpu-load-test
-##############################################################################
-
-if(NOT ${TESTS_BAT})
- set(TEST_CPU_LOAD_NAME cpu_load_test)
-
- set(TEST_CPU_LOAD_SERVICE cpu_load_test_service)
- add_executable(${TEST_CPU_LOAD_SERVICE}
- cpu_load_tests/${TEST_CPU_LOAD_SERVICE}.cpp
- cpu_load_tests/cpu_load_measurer.cpp
- )
- target_link_libraries(${TEST_CPU_LOAD_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config files for test into $BUILDDIR/test
- set(TEST_CPU_LOAD_SERVICE_MASTER_CONFIG_FILE ${TEST_CPU_LOAD_NAME}_service_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/cpu_load_tests/conf/${TEST_CPU_LOAD_SERVICE_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/cpu_load_tests/${TEST_CPU_LOAD_SERVICE_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/cpu_load_tests/${TEST_CPU_LOAD_SERVICE_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CPU_LOAD_SERVICE_MASTER_CONFIG_FILE}
- ${TEST_CPU_LOAD_SERVICE}
- )
- set(TEST_CPU_LOAD_SERVICE_SLAVE_CONFIG_FILE ${TEST_CPU_LOAD_NAME}_service_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/cpu_load_tests/conf/${TEST_CPU_LOAD_SERVICE_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/cpu_load_tests/${TEST_CPU_LOAD_SERVICE_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/cpu_load_tests/${TEST_CPU_LOAD_SERVICE_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CPU_LOAD_SERVICE_SLAVE_CONFIG_FILE}
- ${TEST_CPU_LOAD_SERVICE}
- )
-
- ##############################################################################
- set(TEST_CPU_LOAD_CLIENT cpu_load_test_client)
- add_executable(${TEST_CPU_LOAD_CLIENT}
- cpu_load_tests/${TEST_CPU_LOAD_CLIENT}.cpp
- cpu_load_tests/cpu_load_measurer.cpp
- )
- target_link_libraries(${TEST_CPU_LOAD_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_CPU_LOAD_CLIENT_MASTER_CONFIG_FILE ${TEST_CPU_LOAD_NAME}_client_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/cpu_load_tests/conf/${TEST_CPU_LOAD_CLIENT_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/cpu_load_tests/${TEST_CPU_LOAD_CLIENT_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/cpu_load_tests/${TEST_CPU_LOAD_CLIENT_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CPU_LOAD_CLIENT_MASTER_CONFIG_FILE}
- ${TEST_CPU_LOAD_CLIENT}
- )
- set(TEST_CPU_LOAD_CLIENT_SLAVE_CONFIG_FILE ${TEST_CPU_LOAD_NAME}_client_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/cpu_load_tests/conf/${TEST_CPU_LOAD_CLIENT_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/cpu_load_tests/${TEST_CPU_LOAD_CLIENT_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/cpu_load_tests/${TEST_CPU_LOAD_CLIENT_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_CPU_LOAD_CLIENT_SLAVE_CONFIG_FILE}
- ${TEST_CPU_LOAD_CLIENT}
- )
-
- ##############################################################################
- # copy starter scripts into builddir
- set(TEST_CPU_LOAD_MASTER_STARTER ${TEST_CPU_LOAD_NAME}_master_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/cpu_load_tests/${TEST_CPU_LOAD_MASTER_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_CPU_LOAD_MASTER_STARTER}
- ${TEST_CPU_LOAD_SERVICE}
- )
- set(TEST_CPU_LOAD_SLAVE_STARTER ${TEST_CPU_LOAD_NAME}_slave_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/cpu_load_tests/${TEST_CPU_LOAD_SLAVE_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_CPU_LOAD_SLAVE_STARTER}
- ${TEST_CPU_LOAD_SERVICE}
- )
-endif()
-
-##############################################################################
-# initial event tests
-##############################################################################
-if(NOT ${TESTS_BAT})
- set(TEST_INITIAL_EVENT_NAME initial_event_test)
- set(TEST_INITIAL_EVENT_SERVICE ${TEST_INITIAL_EVENT_NAME}_service)
- add_executable(${TEST_INITIAL_EVENT_SERVICE} initial_event_tests/${TEST_INITIAL_EVENT_NAME}_service.cpp)
- target_link_libraries(${TEST_INITIAL_EVENT_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_INITIAL_EVENT_CLIENT ${TEST_INITIAL_EVENT_NAME}_client)
- add_executable(${TEST_INITIAL_EVENT_CLIENT} initial_event_tests/${TEST_INITIAL_EVENT_NAME}_client.cpp)
- target_link_libraries(${TEST_INITIAL_EVENT_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_INITIAL_EVENT_AVAILABILITY_CHECKER ${TEST_INITIAL_EVENT_NAME}_availability_checker)
- add_executable(${TEST_INITIAL_EVENT_AVAILABILITY_CHECKER} initial_event_tests/${TEST_INITIAL_EVENT_NAME}_availability_checker.cpp)
- target_link_libraries(${TEST_INITIAL_EVENT_AVAILABILITY_CHECKER}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_INITIAL_EVENT_STOP_SERVICE ${TEST_INITIAL_EVENT_NAME}_stop_service)
- add_executable(${TEST_INITIAL_EVENT_STOP_SERVICE} initial_event_tests/${TEST_INITIAL_EVENT_NAME}_stop_service.cpp)
- target_link_libraries(${TEST_INITIAL_EVENT_STOP_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config files for test into $BUILDDIR/test
- set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- # Copy config files for test into $BUILDDIR/test
- set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_master_tcp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- # Copy config files for test into $BUILDDIR/test
- set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_master_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_slave_tcp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_slave_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_master_tcp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_slave_tcp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_master_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_slave_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_partial_same_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_partial_same_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_same_client_ids_same_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_same_client_ids_same_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_same_client_ids_diff_ports_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_same_client_ids_diff_ports_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_same_service_id_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_CONFIG_FILE
- ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_same_service_id_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_CONFIG_FILE}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-
- # copy starter scripts into builddir
- set(TEST_INITIAL_EVENT_MASTER_STARTER ${TEST_INITIAL_EVENT_NAME}_master_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_MASTER_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
- set(TEST_INITIAL_EVENT_SLAVE_STARTER ${TEST_INITIAL_EVENT_NAME}_slave_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/initial_event_tests/${TEST_INITIAL_EVENT_SLAVE_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_SLAVE_STARTER}
- ${TEST_INITIAL_EVENT_SERVICE}
- )
-endif()
-
-##############################################################################
-# offer tests
-##############################################################################
-if(NOT ${TESTS_BAT})
- set(TEST_OFFER_NAME offer_test)
- set(TEST_OFFER_SERVICE ${TEST_OFFER_NAME}_service)
- add_executable(${TEST_OFFER_SERVICE} offer_tests/${TEST_OFFER_NAME}_service.cpp)
- target_link_libraries(${TEST_OFFER_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_OFFER_CLIENT ${TEST_OFFER_NAME}_client)
- add_executable(${TEST_OFFER_CLIENT} offer_tests/${TEST_OFFER_NAME}_client.cpp)
- target_link_libraries(${TEST_OFFER_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_OFFER_SERVICE_EXTERNAL ${TEST_OFFER_NAME}_service_external)
- add_executable(${TEST_OFFER_SERVICE_EXTERNAL} offer_tests/${TEST_OFFER_NAME}_service_external.cpp)
- target_link_libraries(${TEST_OFFER_SERVICE_EXTERNAL}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_OFFER_SERVICE_AVAILABILITY_CHECKER ${TEST_OFFER_NAME}_service_availability_checker)
- add_executable(${TEST_OFFER_SERVICE_AVAILABILITY_CHECKER} offer_tests/${TEST_OFFER_NAME}_service_availability_checker.cpp)
- target_link_libraries(${TEST_OFFER_SERVICE_AVAILABILITY_CHECKER}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_OFFER_EXTERNAL_SD_MESSAGE_SENDER ${TEST_OFFER_NAME}_external_sd_msg_sender)
- add_executable(${TEST_OFFER_EXTERNAL_SD_MESSAGE_SENDER} offer_tests/${TEST_OFFER_NAME}_external_sd_msg_sender.cpp)
- target_link_libraries(${TEST_OFFER_EXTERNAL_SD_MESSAGE_SENDER}
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # client and service for offer test big sd msg
- set(TEST_OFFER_BIG_NAME offer_test_big_sd_msg)
- set(TEST_OFFER_BIG_SERVICE ${TEST_OFFER_BIG_NAME}_service)
- add_executable(${TEST_OFFER_BIG_SERVICE} offer_tests/${TEST_OFFER_BIG_NAME}_service.cpp)
- target_link_libraries(${TEST_OFFER_BIG_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_OFFER_BIG_CLIENT ${TEST_OFFER_BIG_NAME}_client)
- add_executable(${TEST_OFFER_BIG_CLIENT} offer_tests/${TEST_OFFER_BIG_NAME}_client.cpp)
- target_link_libraries(${TEST_OFFER_BIG_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # copy starter scripts into builddir
- set(TEST_OFFER_LOCAL_STARTER ${TEST_OFFER_NAME}_local_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_LOCAL_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_OFFER_LOCAL_STARTER}
- ${TEST_OFFER_SERVICE}
- )
-
- # Copy config file for local test into $BUILDDIR/test
- set(TEST_OFFER_LOCAL_CONFIG_FILE ${TEST_OFFER_NAME}_local.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_LOCAL_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_OFFER_LOCAL_CONFIG_FILE}
- ${TEST_OFFER_SERVICE}
- )
-
- # generate and copy json files into builddir for external test
- set(TEST_OFFER_SLAVE_CONFIG_FILE ${TEST_OFFER_NAME}_external_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/offer_tests/conf/${TEST_OFFER_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_OFFER_SLAVE_CONFIG_FILE}
- ${TEST_OFFER_SERVICE}
- )
-
- set(TEST_OFFER_MASTER_CONFIG_FILE ${TEST_OFFER_NAME}_external_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/offer_tests/conf/${TEST_OFFER_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_OFFER_MASTER_CONFIG_FILE}
- ${TEST_OFFER_SERVICE}
- )
-
- # generate and copy json files into builddir for big SD message test
- set(TEST_OFFER_BIG_SLAVE_CONFIG_FILE ${TEST_OFFER_BIG_NAME}_slave.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/offer_tests/conf/${TEST_OFFER_BIG_SLAVE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_BIG_SLAVE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_BIG_SLAVE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_OFFER_BIG_SLAVE_CONFIG_FILE}
- ${TEST_OFFER_BIG_SERVICE}
- )
-
- set(TEST_OFFER_BIG_MASTER_CONFIG_FILE ${TEST_OFFER_BIG_NAME}_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/offer_tests/conf/${TEST_OFFER_BIG_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_BIG_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_BIG_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_OFFER_BIG_MASTER_CONFIG_FILE}
- ${TEST_OFFER_BIG_SERVICE}
- )
-
- # Copy starter scripts for external test to $BUILDDIR/test
- set(TEST_OFFER_EXTERNAL_MASTER_STARTER ${TEST_OFFER_NAME}_external_master_starter.sh)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/offer_tests/conf/${TEST_OFFER_EXTERNAL_MASTER_STARTER}.in
- ${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_EXTERNAL_MASTER_STARTER}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_EXTERNAL_MASTER_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_OFFER_EXTERNAL_MASTER_STARTER}
- ${TEST_OFFER_SERVICE}
- )
- set(TEST_OFFER_EXTERNAL_SLAVE_STARTER ${TEST_OFFER_NAME}_external_slave_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_EXTERNAL_SLAVE_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_OFFER_EXTERNAL_SLAVE_STARTER}
- ${TEST_OFFER_SERVICE}
- )
- set(TEST_OFFER_EXTERNAL_SLAVE_SD_STARTER ${TEST_OFFER_NAME}_external_slave_sd_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_EXTERNAL_SLAVE_SD_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_OFFER_EXTERNAL_SLAVE_SD_STARTER}
- ${TEST_OFFER_SERVICE}
- )
- # Copy starter scripts for external test to $BUILDDIR/test
- set(TEST_OFFER_BIG_MASTER_STARTER ${TEST_OFFER_BIG_NAME}_master_starter.sh)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/offer_tests/conf/${TEST_OFFER_BIG_MASTER_STARTER}.in
- ${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_BIG_MASTER_STARTER}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_BIG_MASTER_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_OFFER_BIG_MASTER_STARTER}
- ${TEST_OFFER_BIG_SERVICE}
- )
- # Copy starter scripts for external test to $BUILDDIR/test
- set(TEST_OFFER_BIG_EXTERNAL_SLAVE_STARTER ${TEST_OFFER_BIG_NAME}_slave_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/offer_tests/${TEST_OFFER_BIG_EXTERNAL_SLAVE_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_OFFER_BIG_EXTERNAL_SLAVE_STARTER}
- ${TEST_OFFER_BIG_SERVICE}
- )
-endif()
-
-##############################################################################
-# offered services info tests
-##############################################################################
-if(NOT ${TESTS_BAT})
- set(TEST_OFFERED_SERVICES_INFO_NAME offered_services_info_test)
- set(TEST_OFFERED_SERVICES_INFO_SERVICE ${TEST_OFFERED_SERVICES_INFO_NAME}_service)
- add_executable(${TEST_OFFERED_SERVICES_INFO_SERVICE} offered_services_info_test/${TEST_OFFERED_SERVICES_INFO_NAME}_service.cpp)
- target_link_libraries(${TEST_OFFERED_SERVICES_INFO_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_OFFERED_SERVICES_INFO_CLIENT ${TEST_OFFERED_SERVICES_INFO_NAME}_client)
- add_executable(${TEST_OFFERED_SERVICES_INFO_CLIENT} offered_services_info_test/${TEST_OFFERED_SERVICES_INFO_NAME}_client.cpp)
- target_link_libraries(${TEST_OFFERED_SERVICES_INFO_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # copy starter scripts into builddir
- set(TEST_OFFERED_SERVICES_INFO_LOCAL_STARTER ${TEST_OFFERED_SERVICES_INFO_NAME}_local_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/offered_services_info_test/${TEST_OFFERED_SERVICES_INFO_LOCAL_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_OFFERED_SERVICES_INFO_LOCAL_STARTER}
- ${TEST_OFFERED_SERVICES_INFO_SERVICE}
- )
-
- # Copy config file for local test into $BUILDDIR/test
- set(TEST_OFFERED_SERVICES_INFO_LOCAL_CONFIG_FILE ${TEST_OFFERED_SERVICES_INFO_NAME}_local.json)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/offered_services_info_test/${TEST_OFFERED_SERVICES_INFO_LOCAL_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_OFFERED_SERVICES_INFO_LOCAL_CONFIG_FILE}
- ${TEST_OFFERED_SERVICES_INFO_SERVICE}
- )
-endif()
-
-##############################################################################
-# pending subscription tests tests
-##############################################################################
-if(NOT ${TESTS_BAT})
- set(TEST_PENDING_SUBSCRIPTION_NAME pending_subscription_test)
- set(TEST_PENDING_SUBSCRIPTION_SERVICE ${TEST_PENDING_SUBSCRIPTION_NAME}_service)
- add_executable(${TEST_PENDING_SUBSCRIPTION_SERVICE} pending_subscription_tests/${TEST_PENDING_SUBSCRIPTION_NAME}_service.cpp)
- target_link_libraries(${TEST_PENDING_SUBSCRIPTION_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- file(GLOB sd_sources
- "../implementation/service_discovery/src/*entry*.cpp"
- "../implementation/service_discovery/src/*option*.cpp"
- "../implementation/service_discovery/src/*message*.cpp"
- )
- set(TEST_PENDING_SUBSCRIPTION_CLIENT ${TEST_PENDING_SUBSCRIPTION_NAME}_sd_msg_sender)
- add_executable(${TEST_PENDING_SUBSCRIPTION_CLIENT}
- pending_subscription_tests/${TEST_PENDING_SUBSCRIPTION_NAME}_sd_msg_sender.cpp
- ${PROJECT_SOURCE_DIR}/implementation/message/src/deserializer.cpp
- ${PROJECT_SOURCE_DIR}/implementation/message/src/message_impl.cpp
- ${PROJECT_SOURCE_DIR}/implementation/message/src/payload_impl.cpp
- ${sd_sources}
- )
-
- target_link_libraries(${TEST_PENDING_SUBSCRIPTION_CLIENT}
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- vsomeip3
- vsomeip3-sd
- )
-
- # copy starter scripts into builddir
- set(TEST_PENDING_SUBSCRIPTION_MASTER_STARTER ${TEST_PENDING_SUBSCRIPTION_NAME}_master_starter.sh)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/pending_subscription_tests/conf/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER}.in
- ${PROJECT_SOURCE_DIR}/test/pending_subscription_tests/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/pending_subscription_tests/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER}
- ${TEST_PENDING_SUBSCRIPTION_SERVICE}
- )
-
- # Copy config file for local test into $BUILDDIR/test
- set(TEST_PENDING_SUBSCRIPTION_CONFIG_FILE ${TEST_PENDING_SUBSCRIPTION_NAME}_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/pending_subscription_tests/conf/${TEST_PENDING_SUBSCRIPTION_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/pending_subscription_tests/${TEST_PENDING_SUBSCRIPTION_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/pending_subscription_tests/${TEST_PENDING_SUBSCRIPTION_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_PENDING_SUBSCRIPTION_CONFIG_FILE}
- ${TEST_PENDING_SUBSCRIPTION_SERVICE}
- )
-endif()
-
-##############################################################################
-# malicious data tests
-##############################################################################
-if(NOT ${TESTS_BAT})
- set(TEST_MALICIOUS_DATA_NAME malicious_data_test)
- set(TEST_MALICIOUS_DATA_SERVICE ${TEST_MALICIOUS_DATA_NAME}_service)
- add_executable(${TEST_MALICIOUS_DATA_SERVICE} malicious_data_tests/${TEST_MALICIOUS_DATA_NAME}_service.cpp)
- target_link_libraries(${TEST_MALICIOUS_DATA_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- file(GLOB sd_sources
- "../implementation/service_discovery/src/*entry*.cpp"
- "../implementation/service_discovery/src/*option*.cpp"
- "../implementation/service_discovery/src/*message*.cpp"
- )
- set(TEST_MALICIOUS_DATA_CLIENT ${TEST_MALICIOUS_DATA_NAME}_msg_sender)
- add_executable(${TEST_MALICIOUS_DATA_CLIENT}
- malicious_data_tests/${TEST_MALICIOUS_DATA_CLIENT}.cpp
- ${PROJECT_SOURCE_DIR}/implementation/message/src/deserializer.cpp
- ${PROJECT_SOURCE_DIR}/implementation/message/src/message_impl.cpp
- ${PROJECT_SOURCE_DIR}/implementation/message/src/payload_impl.cpp
- ${sd_sources}
- )
-
- target_link_libraries(${TEST_MALICIOUS_DATA_CLIENT}
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- vsomeip3
- vsomeip3-sd
- )
-
- # copy starter scripts into builddir
- set(TEST_MALICIOUS_DATA_MASTER_STARTER ${TEST_MALICIOUS_DATA_NAME}_master_starter.sh)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/malicious_data_tests/conf/${TEST_MALICIOUS_DATA_MASTER_STARTER}.in
- ${PROJECT_SOURCE_DIR}/test/malicious_data_tests/${TEST_MALICIOUS_DATA_MASTER_STARTER}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/malicious_data_tests/${TEST_MALICIOUS_DATA_MASTER_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_MALICIOUS_DATA_MASTER_STARTER}
- ${TEST_MALICIOUS_DATA_SERVICE}
- )
-
- # Copy config file for local test into $BUILDDIR/test
- set(TEST_MALICIOUS_DATA_CONFIG_FILE ${TEST_MALICIOUS_DATA_NAME}_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/malicious_data_tests/conf/${TEST_MALICIOUS_DATA_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/malicious_data_tests/${TEST_MALICIOUS_DATA_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/malicious_data_tests/${TEST_MALICIOUS_DATA_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_MALICIOUS_DATA_CONFIG_FILE}
- ${TEST_MALICIOUS_DATA_SERVICE}
- )
-endif()
-
-##############################################################################
-# e2e test
-##############################################################################
-
-if(NOT ${TESTS_BAT})
- set(TEST_E2E_NAME e2e_test)
- set(TEST_E2E_SERVICE e2e_test_service)
- set(TEST_E2E_CLIENT e2e_test_client)
-
- add_executable(${TEST_E2E_SERVICE} e2e_tests/${TEST_E2E_SERVICE}.cpp)
- target_link_libraries(${TEST_E2E_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- add_executable(${TEST_E2E_CLIENT}
- e2e_tests/${TEST_E2E_CLIENT}.cpp
- )
- target_link_libraries(${TEST_E2E_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy service config file for external allow tests into $BUILDDIR/test
- set(TEST_E2E_SERVICE_CONFIG_FILE_EXTERNAL ${TEST_E2E_NAME}_service_external.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/conf/${TEST_E2E_SERVICE_CONFIG_FILE_EXTERNAL}.in
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/${TEST_E2E_SERVICE_CONFIG_FILE_EXTERNAL}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/${TEST_E2E_SERVICE_CONFIG_FILE_EXTERNAL}
- ${PROJECT_BINARY_DIR}/test/${TEST_E2E_SERVICE_CONFIG_FILE_EXTERNAL}
- ${TEST_E2E_SERVICE}
- )
-
- # Copy client config file for external allow tests into $BUILDDIR/test
- set(TEST_E2E_CLIENT_CONFIG_FILE_EXTERNAL ${TEST_E2E_NAME}_client_external.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/conf/${TEST_E2E_CLIENT_CONFIG_FILE_EXTERNAL}.in
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/${TEST_E2E_CLIENT_CONFIG_FILE_EXTERNAL}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/${TEST_E2E_CLIENT_CONFIG_FILE_EXTERNAL}
- ${PROJECT_BINARY_DIR}/test/${TEST_E2E_CLIENT_CONFIG_FILE_EXTERNAL}
- ${TEST_E2E_SERVICE}
- )
-
- # Copy bashscript to start external tests (master) into $BUILDDIR/test
- set(TEST_E2E_EXTERNAL_MASTER_START_SCRIPT ${TEST_E2E_NAME}_external_master_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/${TEST_E2E_EXTERNAL_MASTER_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_E2E_EXTERNAL_MASTER_START_SCRIPT}
- ${TEST_E2E_SERVICE}
- )
-
- # Copy bashscript to start external tests (slave) into $BUILDDIR/test
- set(TEST_E2E_EXTERNAL_SLAVE_START_SCRIPT ${TEST_E2E_NAME}_external_slave_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/${TEST_E2E_EXTERNAL_SLAVE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_E2E_EXTERNAL_SLAVE_START_SCRIPT}
- ${TEST_E2E_SERVICE}
- )
-endif()
-
-##############################################################################
-# e2e profile 04 test
-##############################################################################
-
-if(NOT ${TESTS_BAT} AND ${TEST_E2E_PROFILE_04})
- set(TEST_E2E_PROFILE_04_NAME e2e_profile_04_test)
- set(TEST_E2E_PROFILE_04_SERVICE e2e_profile_04_test_service)
- set(TEST_E2E_PROFILE_04_CLIENT e2e_profile_04_test_client)
-
- add_executable(${TEST_E2E_PROFILE_04_SERVICE} e2e_tests/${TEST_E2E_PROFILE_04_SERVICE}.cpp)
- target_link_libraries(${TEST_E2E_PROFILE_04_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- add_executable(${TEST_E2E_PROFILE_04_CLIENT}
- e2e_tests/${TEST_E2E_PROFILE_04_CLIENT}.cpp
- )
- target_link_libraries(${TEST_E2E_PROFILE_04_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy service config file for external allow tests into $BUILDDIR/test
- set(TEST_E2E_PROFILE_04_SERVICE_CONFIG_FILE_EXTERNAL ${TEST_E2E_PROFILE_04_NAME}_service_external.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/conf/${TEST_E2E_PROFILE_04_SERVICE_CONFIG_FILE_EXTERNAL}.in
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/${TEST_E2E_PROFILE_04_SERVICE_CONFIG_FILE_EXTERNAL}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/${TEST_E2E_PROFILE_04_SERVICE_CONFIG_FILE_EXTERNAL}
- ${PROJECT_BINARY_DIR}/test/${TEST_E2E_PROFILE_04_SERVICE_CONFIG_FILE_EXTERNAL}
- ${TEST_E2E_PROFILE_04_SERVICE}
- )
-
- # Copy client config file for external allow tests into $BUILDDIR/test
- set(TEST_E2E_PROFILE_04_CLIENT_CONFIG_FILE_EXTERNAL ${TEST_E2E_PROFILE_04_NAME}_client_external.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/conf/${TEST_E2E_PROFILE_04_CLIENT_CONFIG_FILE_EXTERNAL}.in
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/${TEST_E2E_PROFILE_04_CLIENT_CONFIG_FILE_EXTERNAL}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/${TEST_E2E_PROFILE_04_CLIENT_CONFIG_FILE_EXTERNAL}
- ${PROJECT_BINARY_DIR}/test/${TEST_E2E_PROFILE_04_CLIENT_CONFIG_FILE_EXTERNAL}
- ${TEST_E2E_PROFILE_04_SERVICE}
- )
-
- # Copy bashscript to start external tests (master) into $BUILDDIR/test
- set(TEST_E2E_PROFILE_04_EXTERNAL_MASTER_START_SCRIPT ${TEST_E2E_PROFILE_04_NAME}_external_master_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/${TEST_E2E_PROFILE_04_EXTERNAL_MASTER_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_E2E_PROFILE_04_EXTERNAL_MASTER_START_SCRIPT}
- ${TEST_E2E_PROFILE_04_SERVICE}
- )
-
- # Copy bashscript to start external tests (slave) into $BUILDDIR/test
- set(TEST_E2E_PROFILE_04_EXTERNAL_SLAVE_START_SCRIPT ${TEST_E2E_PROFILE_04_NAME}_external_slave_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/e2e_tests/${TEST_E2E_PROFILE_04_EXTERNAL_SLAVE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_E2E_PROFILE_04_EXTERNAL_SLAVE_START_SCRIPT}
- ${TEST_E2E_PROFILE_04_SERVICE}
- )
-endif()
-
-##############################################################################
-# event tests
-##############################################################################
-
-if(NOT ${TESTS_BAT})
- set(TEST_EVENT_NAME event_test)
- set(TEST_EVENT_SERVICE ${TEST_EVENT_NAME}_service)
- set(TEST_EVENT_CLIENT ${TEST_EVENT_NAME}_client)
-
- add_executable(${TEST_EVENT_SERVICE} event_tests/${TEST_EVENT_SERVICE}.cpp)
- target_link_libraries(${TEST_EVENT_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- add_executable(${TEST_EVENT_CLIENT}
- event_tests/${TEST_EVENT_CLIENT}.cpp
- )
- target_link_libraries(${TEST_EVENT_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
- # Copy service config file for external allow tests into $BUILDDIR/test
- set(TEST_EVENT_SLAVE_TCP_CONFIG_FILE ${TEST_EVENT_NAME}_slave_tcp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/event_tests/conf/${TEST_EVENT_SLAVE_TCP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/event_tests/${TEST_EVENT_SLAVE_TCP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/event_tests/${TEST_EVENT_SLAVE_TCP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_EVENT_SLAVE_TCP_CONFIG_FILE}
- ${TEST_EVENT_SERVICE}
- )
-
- set(TEST_EVENT_SLAVE_UDP_CONFIG_FILE ${TEST_EVENT_NAME}_slave_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/event_tests/conf/${TEST_EVENT_SLAVE_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/event_tests/${TEST_EVENT_SLAVE_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/event_tests/${TEST_EVENT_SLAVE_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_EVENT_SLAVE_UDP_CONFIG_FILE}
- ${TEST_EVENT_SERVICE}
- )
-
- set(TEST_EVENT_MASTER_CONFIG_FILE ${TEST_EVENT_NAME}_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/event_tests/conf/${TEST_EVENT_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/event_tests/${TEST_EVENT_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/event_tests/${TEST_EVENT_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_EVENT_MASTER_CONFIG_FILE}
- ${TEST_EVENT_CLIENT}
- )
-
- # Copy bashscript to start test (master) into $BUILDDIR/test
- set(TEST_EVENT_MASTER_START_SCRIPT ${TEST_EVENT_NAME}_master_starter.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/event_tests/${TEST_EVENT_MASTER_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_EVENT_MASTER_START_SCRIPT}
- ${TEST_EVENT_SERVICE}
- )
-
- # Copy bashscript to start external tests (slave) into $BUILDDIR/test
- set(TEST_EVENT_SLAVE_START_SCRIPT ${TEST_EVENT_NAME}_slave_starter.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/event_tests/${TEST_EVENT_SLAVE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_EVENT_SLAVE_START_SCRIPT}
- ${TEST_EVENT_CLIENT}
- )
-
-endif()
-
-##############################################################################
-# npdu-test
-##############################################################################
-if(NOT ${TESTS_BAT})
- set(TEST_NPDU_NAME npdu_test)
-
- set(TEST_NPDU_DAEMON npdu_test_rmd)
- set(TEST_NPDU_DAEMON_CLIENT ${TEST_NPDU_DAEMON}_client_side)
- add_executable(${TEST_NPDU_DAEMON_CLIENT} npdu_tests/${TEST_NPDU_DAEMON}.cpp)
- set_target_properties(${TEST_NPDU_DAEMON_CLIENT} PROPERTIES COMPILE_FLAGS -DRMD_CLIENT_SIDE)
- target_link_libraries(${TEST_NPDU_DAEMON_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_NPDU_DAEMON_SERVICE ${TEST_NPDU_DAEMON}_service_side)
- add_executable(${TEST_NPDU_DAEMON_SERVICE} npdu_tests/${TEST_NPDU_DAEMON}.cpp)
- set_target_properties(${TEST_NPDU_DAEMON_SERVICE} PROPERTIES COMPILE_FLAGS -DRMD_SERVICE_SIDE)
- target_link_libraries(${TEST_NPDU_DAEMON_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- ##############################################################################
-
- set(TEST_NPDU_SERVICE npdu_test_service)
-
- set(TEST_NPDU_SERVICE_ONE npdu_test_service_1)
- add_executable(${TEST_NPDU_SERVICE_ONE} npdu_tests/${TEST_NPDU_SERVICE}.cpp)
- set_target_properties(${TEST_NPDU_SERVICE_ONE} PROPERTIES COMPILE_FLAGS -DSERVICE_NUMBER=0)
- target_link_libraries(${TEST_NPDU_SERVICE_ONE}
- vsomeip3
- vsomeip3-cfg
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_NPDU_SERVICE_TWO npdu_test_service_2)
- add_executable(${TEST_NPDU_SERVICE_TWO} npdu_tests/${TEST_NPDU_SERVICE}.cpp)
- set_target_properties(${TEST_NPDU_SERVICE_TWO} PROPERTIES COMPILE_FLAGS -DSERVICE_NUMBER=1)
- target_link_libraries(${TEST_NPDU_SERVICE_TWO}
- vsomeip3
- vsomeip3-cfg
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_NPDU_SERVICE_THREE npdu_test_service_3)
- add_executable(${TEST_NPDU_SERVICE_THREE} npdu_tests/${TEST_NPDU_SERVICE}.cpp)
- set_target_properties(${TEST_NPDU_SERVICE_THREE} PROPERTIES COMPILE_FLAGS -DSERVICE_NUMBER=2)
- target_link_libraries(${TEST_NPDU_SERVICE_THREE}
- vsomeip3
- vsomeip3-cfg
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_NPDU_SERVICE_FOUR npdu_test_service_4)
- add_executable(${TEST_NPDU_SERVICE_FOUR} npdu_tests/${TEST_NPDU_SERVICE}.cpp)
- set_target_properties(${TEST_NPDU_SERVICE_FOUR} PROPERTIES COMPILE_FLAGS -DSERVICE_NUMBER=3)
- target_link_libraries(${TEST_NPDU_SERVICE_FOUR}
- vsomeip3
- vsomeip3-cfg
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config file for service w/o npdu into $BUILDDIR/test
- set(TEST_NPDU_SERVICE_CONFIG_FILE ${TEST_NPDU_SERVICE}_no_npdu.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/npdu_tests/conf/${TEST_NPDU_SERVICE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/npdu_tests/${TEST_NPDU_SERVICE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/npdu_tests/${TEST_NPDU_SERVICE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_NPDU_SERVICE_CONFIG_FILE}
- ${TEST_NPDU_SERVICE_ONE}
- )
-
- # Copy bashscript to start service w/o npdu into $BUILDDIR/test
- set(TEST_NPDU_SERVICE_START_SCRIPT ${TEST_NPDU_SERVICE}_no_npdu_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/npdu_tests/${TEST_NPDU_SERVICE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_NPDU_SERVICE_START_SCRIPT}
- ${TEST_NPDU_SERVICE_ONE}
- )
-
- # Copy config file for service with npdu into $BUILDDIR/test
- set(TEST_NPDU_SERVICE_CONFIG_FILE ${TEST_NPDU_SERVICE}_npdu.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/npdu_tests/conf/${TEST_NPDU_SERVICE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/npdu_tests/${TEST_NPDU_SERVICE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/npdu_tests/${TEST_NPDU_SERVICE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_NPDU_SERVICE_CONFIG_FILE}
- ${TEST_NPDU_SERVICE_ONE}
- )
-
- # Copy bashscript to start service with npdu into $BUILDDIR/test
- set(TEST_NPDU_SERVICE_START_SCRIPT ${TEST_NPDU_SERVICE}_npdu_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/npdu_tests/${TEST_NPDU_SERVICE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_NPDU_SERVICE_START_SCRIPT}
- ${TEST_NPDU_SERVICE_ONE}
- )
-
- ##############################################################################
-
- set(TEST_NPDU_CLIENT npdu_test_client)
-
- set(TEST_NPDU_CLIENT_ONE npdu_test_client_1)
- add_executable(${TEST_NPDU_CLIENT_ONE} npdu_tests/${TEST_NPDU_CLIENT}.cpp)
- target_link_libraries(${TEST_NPDU_CLIENT_ONE}
- vsomeip3
- vsomeip3-cfg
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_NPDU_CLIENT_TWO npdu_test_client_2)
- add_executable(${TEST_NPDU_CLIENT_TWO} npdu_tests/${TEST_NPDU_CLIENT}.cpp)
- target_link_libraries(${TEST_NPDU_CLIENT_TWO}
- vsomeip3
- vsomeip3-cfg
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_NPDU_CLIENT_THREE npdu_test_client_3)
- add_executable(${TEST_NPDU_CLIENT_THREE} npdu_tests/${TEST_NPDU_CLIENT}.cpp)
- target_link_libraries(${TEST_NPDU_CLIENT_THREE}
- vsomeip3
- vsomeip3-cfg
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_NPDU_CLIENT_FOUR npdu_test_client_4)
- add_executable(${TEST_NPDU_CLIENT_FOUR} npdu_tests/${TEST_NPDU_CLIENT}.cpp)
- target_link_libraries(${TEST_NPDU_CLIENT_FOUR}
- vsomeip3
- vsomeip3-cfg
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- # Copy config files for client w/o npdu into $BUILDDIR/test
- set(TEST_NPDU_CLIENT_CONFIG_FILE ${TEST_NPDU_CLIENT}_no_npdu.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/npdu_tests/conf/${TEST_NPDU_CLIENT_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/npdu_tests/${TEST_NPDU_CLIENT_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/npdu_tests/${TEST_NPDU_CLIENT_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_NPDU_CLIENT_CONFIG_FILE}
- ${TEST_NPDU_CLIENT_ONE}
- )
-
- # Copy bashscript to start client w/o npdu into $BUILDDIR/test
- set(TEST_NPDU_CLIENT_START_SCRIPT ${TEST_NPDU_CLIENT}_no_npdu_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/npdu_tests/${TEST_NPDU_CLIENT_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_NPDU_CLIENT_START_SCRIPT}
- ${TEST_NPDU_CLIENT_ONE}
- )
-
- # Copy config file for client with npdu into $BUILDDIR/test
- set(TEST_NPDU_CLIENT_CONFIG_FILE ${TEST_NPDU_CLIENT}_npdu.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/npdu_tests/conf/${TEST_NPDU_CLIENT_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/npdu_tests/${TEST_NPDU_CLIENT_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/npdu_tests/${TEST_NPDU_CLIENT_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_NPDU_CLIENT_CONFIG_FILE}
- ${TEST_NPDU_CLIENT_ONE}
- )
-
- # Copy bashscript to start client with npdu into $BUILDDIR/test
- set(TEST_NPDU_CLIENT_START_SCRIPT ${TEST_NPDU_CLIENT}_npdu_start.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/npdu_tests/${TEST_NPDU_CLIENT_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_NPDU_CLIENT_START_SCRIPT}
- ${TEST_NPDU_CLIENT_ONE}
- )
-
- ##############################################################################
-
- set(TEST_NPDU_STARTER ${TEST_NPDU_NAME}_starter.sh)
- copy_to_builddir(${PROJECT_SOURCE_DIR}/test/npdu_tests/${TEST_NPDU_STARTER}
- ${PROJECT_BINARY_DIR}/test/${TEST_NPDU_STARTER}
- ${TEST_NPDU_DAEMON_CLIENT}
- )
-endif()
-
-##############################################################################
-# someip tp tests
-##############################################################################
-
-if(NOT ${TESTS_BAT})
- set(TEST_SOMEIPTP_NAME someip_tp_test)
- set(TEST_SOMEIPTP_SERVICE ${TEST_SOMEIPTP_NAME}_service)
-
- add_executable(${TEST_SOMEIPTP_SERVICE} someip_tp_tests/${TEST_SOMEIPTP_SERVICE}.cpp)
- target_link_libraries(${TEST_SOMEIPTP_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- file(GLOB sd_sources
- "../implementation/service_discovery/src/*entry*.cpp"
- "../implementation/service_discovery/src/*option*.cpp"
- "../implementation/service_discovery/src/*message*.cpp"
- )
- set(TEST_SOMEIPTP_CLIENT ${TEST_SOMEIPTP_NAME}_msg_sender)
- add_executable(${TEST_SOMEIPTP_CLIENT}
- someip_tp_tests/${TEST_SOMEIPTP_CLIENT}.cpp
- ${PROJECT_SOURCE_DIR}/implementation/message/src/deserializer.cpp
- ${PROJECT_SOURCE_DIR}/implementation/message/src/message_impl.cpp
- ${PROJECT_SOURCE_DIR}/implementation/message/src/payload_impl.cpp
- ${PROJECT_SOURCE_DIR}/implementation/endpoints/src/tp.cpp
- ${PROJECT_SOURCE_DIR}/implementation/endpoints/src/tp_reassembler.cpp
- ${PROJECT_SOURCE_DIR}/implementation/endpoints/src/tp_message.cpp
- ${sd_sources}
- )
-
- target_link_libraries(${TEST_SOMEIPTP_CLIENT}
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- vsomeip3
- vsomeip3-sd
- )
-
- # Copy service config file for external allow tests into $BUILDDIR/test
- set(TEST_SOMEIPTP_MASTER_CONFIG_FILE ${TEST_SOMEIPTP_NAME}_master.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/someip_tp_tests/conf/${TEST_SOMEIPTP_MASTER_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/someip_tp_tests/${TEST_SOMEIPTP_MASTER_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/someip_tp_tests/${TEST_SOMEIPTP_MASTER_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SOMEIPTP_MASTER_CONFIG_FILE}
- ${TEST_SOMEIPTP_CLIENT}
- )
-
- # Copy bashscript to start test (master) into $BUILDDIR/test
- set(TEST_SOMEIPTP_MASTER_START_SCRIPT ${TEST_SOMEIPTP_NAME}_master_starter.sh)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/someip_tp_tests/conf/${TEST_SOMEIPTP_MASTER_START_SCRIPT}.in
- ${PROJECT_SOURCE_DIR}/test/someip_tp_tests/${TEST_SOMEIPTP_MASTER_START_SCRIPT}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/someip_tp_tests/${TEST_SOMEIPTP_MASTER_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_SOMEIPTP_MASTER_START_SCRIPT}
- ${TEST_SOMEIPTP_SERVICE}
- )
-endif()
-
-##############################################################################
-# second IP address tests
-##############################################################################
-
-if(NOT ${TESTS_BAT} AND ${TEST_SECOND_ADDRESS})
- set(TEST_SECOND_ADDRESS_NAME second_address_test)
- set(TEST_SECOND_ADDRESS_SERVICE ${TEST_SECOND_ADDRESS_NAME}_service)
- set(TEST_SECOND_ADDRESS_CLIENT ${TEST_SECOND_ADDRESS_NAME}_client)
-
- add_executable(${TEST_SECOND_ADDRESS_SERVICE}
- second_address_tests/${TEST_SECOND_ADDRESS_SERVICE}.cpp
- )
- target_link_libraries(${TEST_SECOND_ADDRESS_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- add_executable(${TEST_SECOND_ADDRESS_CLIENT}
- second_address_tests/${TEST_SECOND_ADDRESS_CLIENT}.cpp
- )
- target_link_libraries(${TEST_SECOND_ADDRESS_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_SECOND_ADDRESS_MASTER_SERVICE_UDP_CONFIG_FILE ${TEST_SECOND_ADDRESS_NAME}_master_service_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/conf/${TEST_SECOND_ADDRESS_MASTER_SERVICE_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/${TEST_SECOND_ADDRESS_MASTER_SERVICE_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/${TEST_SECOND_ADDRESS_MASTER_SERVICE_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SECOND_ADDRESS_MASTER_SERVICE_UDP_CONFIG_FILE}
- ${TEST_SECOND_ADDRESS_SERVICE}
- )
-
- set(TEST_SECOND_ADDRESS_SLAVE_CLIENT_CONFIG_FILE ${TEST_SECOND_ADDRESS_NAME}_slave_client.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/conf/${TEST_SECOND_ADDRESS_SLAVE_CLIENT_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/${TEST_SECOND_ADDRESS_SLAVE_CLIENT_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/${TEST_SECOND_ADDRESS_SLAVE_CLIENT_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SECOND_ADDRESS_SLAVE_CLIENT_CONFIG_FILE}
- ${TEST_SECOND_ADDRESS_CLIENT}
- )
-
- set(TEST_SECOND_ADDRESS_MASTER_CLIENT_CONFIG_FILE ${TEST_SECOND_ADDRESS_NAME}_master_client.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/conf/${TEST_SECOND_ADDRESS_MASTER_CLIENT_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/${TEST_SECOND_ADDRESS_MASTER_CLIENT_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/${TEST_SECOND_ADDRESS_MASTER_CLIENT_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SECOND_ADDRESS_MASTER_CLIENT_CONFIG_FILE}
- ${TEST_SECOND_ADDRESS_CLIENT}
- )
-
- set(TEST_SECOND_ADDRESS_SLAVE_SERVICE_UDP_CONFIG_FILE ${TEST_SECOND_ADDRESS_NAME}_slave_service_udp.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/conf/${TEST_SECOND_ADDRESS_SLAVE_SERVICE_UDP_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/${TEST_SECOND_ADDRESS_SLAVE_SERVICE_UDP_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/${TEST_SECOND_ADDRESS_SLAVE_SERVICE_UDP_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SECOND_ADDRESS_SLAVE_SERVICE_UDP_CONFIG_FILE}
- ${TEST_SECOND_ADDRESS_SERVICE}
- )
-
- set(TEST_SECOND_ADDRESS_MASTER_START_SCRIPT ${TEST_SECOND_ADDRESS_NAME}_master_starter.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/${TEST_SECOND_ADDRESS_MASTER_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_SECOND_ADDRESS_MASTER_START_SCRIPT}
- ${TEST_SECOND_ADDRESS_SERVICE}
- )
-
- set(TEST_SECOND_ADDRESS_SLAVE_START_SCRIPT ${TEST_SECOND_ADDRESS_NAME}_slave_starter.sh)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/conf/${TEST_SECOND_ADDRESS_SLAVE_START_SCRIPT}.in
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/${TEST_SECOND_ADDRESS_SLAVE_START_SCRIPT}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/second_address_tests/${TEST_SECOND_ADDRESS_SLAVE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_SECOND_ADDRESS_SLAVE_START_SCRIPT}
- ${TEST_SECOND_ADDRESS_CLIENT}
- )
-endif()
-
##############################################################################
-# suspend resume tests
+# add network, unit and benchmark tests directories
##############################################################################
-if(NOT ${TESTS_BAT})
-
- set(TEST_SUSPEND_RESUME_NAME suspend_resume_test)
- set(TEST_SUSPEND_RESUME_SERVICE ${TEST_SUSPEND_RESUME_NAME}_service)
- set(TEST_SUSPEND_RESUME_CLIENT ${TEST_SUSPEND_RESUME_NAME}_client)
-
- add_executable(${TEST_SUSPEND_RESUME_SERVICE}
- suspend_resume_tests/${TEST_SUSPEND_RESUME_SERVICE}.cpp
- )
- target_link_libraries(${TEST_SUSPEND_RESUME_SERVICE}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- add_executable(${TEST_SUSPEND_RESUME_CLIENT}
- suspend_resume_tests/${TEST_SUSPEND_RESUME_CLIENT}.cpp
- )
- target_link_libraries(${TEST_SUSPEND_RESUME_CLIENT}
- vsomeip3
- ${Boost_LIBRARIES}
- ${DL_LIBRARY}
- ${TEST_LINK_LIBRARIES}
- )
-
- set(TEST_SUSPEND_RESUME_SERVICE_CONFIG_FILE ${TEST_SUSPEND_RESUME_SERVICE}.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/suspend_resume_tests/conf/${TEST_SUSPEND_RESUME_SERVICE_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/suspend_resume_tests/${TEST_SUSPEND_RESUME_SERVICE_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/suspend_resume_tests/${TEST_SUSPEND_RESUME_SERVICE_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUSPEND_RESUME_SERVICE_CONFIG_FILE}
- ${TEST_SUSPEND_RESUME_CLIENT}
- )
-
- set(TEST_SUSPEND_RESUME_CLIENT_CONFIG_FILE ${TEST_SUSPEND_RESUME_CLIENT}.json)
- configure_file(
- ${PROJECT_SOURCE_DIR}/test/suspend_resume_tests/conf/${TEST_SUSPEND_RESUME_CLIENT_CONFIG_FILE}.in
- ${PROJECT_SOURCE_DIR}/test/suspend_resume_tests/${TEST_SUSPEND_RESUME_CLIENT_CONFIG_FILE}
- @ONLY)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/suspend_resume_tests/${TEST_SUSPEND_RESUME_CLIENT_CONFIG_FILE}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUSPEND_RESUME_CLIENT_CONFIG_FILE}
- ${TEST_SUSPEND_RESUME_CLIENT}
- )
-
- set(TEST_SUSPEND_RESUME_MASTER_START_SCRIPT ${TEST_SUSPEND_RESUME_NAME}_master_starter.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/suspend_resume_tests/${TEST_SUSPEND_RESUME_MASTER_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUSPEND_RESUME_MASTER_START_SCRIPT}
- ${TEST_SUSPEND_RESUME_CLIENT}
- )
+add_subdirectory( network_tests EXCLUDE_FROM_ALL )
- set(TEST_SUSPEND_RESUME_SLAVE_START_SCRIPT ${TEST_SUSPEND_RESUME_NAME}_slave_starter.sh)
- copy_to_builddir(
- ${PROJECT_SOURCE_DIR}/test/suspend_resume_tests/${TEST_SUSPEND_RESUME_SLAVE_START_SCRIPT}
- ${PROJECT_BINARY_DIR}/test/${TEST_SUSPEND_RESUME_SLAVE_START_SCRIPT}
- ${TEST_SUSPEND_RESUME_CLIENT}
- )
+if (NOT DISABLE_SECURITY)
+ add_subdirectory( unit_tests EXCLUDE_FROM_ALL )
-endif()
-
-##############################################################################
-# Add for every test a dependency to gtest
-##############################################################################
-
-if(NOT ${TESTS_BAT})
- add_dependencies(${TEST_CONFIGURATION} gtest)
- add_dependencies(${TEST_APPLICATION} gtest)
- add_dependencies(${TEST_APPLICATION_SINGLE_PROCESS_NAME} gtest)
- add_dependencies(${TEST_APPLICATION_AVAILABILITY_NAME} gtest)
- add_dependencies(${TEST_MAGIC_COOKIES_CLIENT} gtest)
- add_dependencies(${TEST_MAGIC_COOKIES_SERVICE} gtest)
- add_dependencies(${TEST_HEADER_FACTORY} gtest)
- add_dependencies(${TEST_HEADER_FACTORY_CLIENT} gtest)
- add_dependencies(${TEST_HEADER_FACTORY_SERVICE} gtest)
- add_dependencies(${TEST_LOCAL_ROUTING_SERVICE} gtest)
- add_dependencies(${TEST_LOCAL_ROUTING_CLIENT} gtest)
- add_dependencies(${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE} gtest)
- add_dependencies(${TEST_PAYLOAD_SERVICE} gtest)
- add_dependencies(${TEST_PAYLOAD_CLIENT} gtest)
- add_dependencies(${TEST_BIG_PAYLOAD_SERVICE} gtest)
- add_dependencies(${TEST_BIG_PAYLOAD_CLIENT} gtest)
- add_dependencies(${TEST_CLIENT_ID_SERVICE} gtest)
- add_dependencies(${TEST_CLIENT_ID_UTILITY} gtest)
- add_dependencies(${TEST_SUBSCRIBE_NOTIFY_SERVICE} gtest)
- add_dependencies(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE} gtest)
- add_dependencies(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT} gtest)
- add_dependencies(${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE} gtest)
- add_dependencies(${TEST_CPU_LOAD_SERVICE} gtest)
- add_dependencies(${TEST_CPU_LOAD_CLIENT} gtest)
- add_dependencies(${TEST_INITIAL_EVENT_SERVICE} gtest)
- add_dependencies(${TEST_INITIAL_EVENT_CLIENT} gtest)
- add_dependencies(${TEST_INITIAL_EVENT_AVAILABILITY_CHECKER} gtest)
- add_dependencies(${TEST_INITIAL_EVENT_STOP_SERVICE} gtest)
- add_dependencies(${TEST_OFFER_SERVICE} gtest)
- add_dependencies(${TEST_OFFER_CLIENT} gtest)
- add_dependencies(${TEST_OFFER_SERVICE_EXTERNAL} gtest)
- add_dependencies(${TEST_OFFER_EXTERNAL_SD_MESSAGE_SENDER} gtest)
- add_dependencies(${TEST_OFFER_SERVICE_AVAILABILITY_CHECKER} gtest)
- add_dependencies(${TEST_OFFERED_SERVICES_INFO_CLIENT} gtest)
- add_dependencies(${TEST_OFFERED_SERVICES_INFO_SERVICE} gtest)
- add_dependencies(${TEST_PENDING_SUBSCRIPTION_SERVICE} gtest)
- add_dependencies(${TEST_PENDING_SUBSCRIPTION_CLIENT} gtest)
- add_dependencies(${TEST_MALICIOUS_DATA_SERVICE} gtest)
- add_dependencies(${TEST_MALICIOUS_DATA_CLIENT} gtest)
- if (${TEST_SECURITY})
- add_dependencies(${TEST_SECURITY_SERVICE} gtest)
- add_dependencies(${TEST_SECURITY_CLIENT} gtest)
- endif()
- add_dependencies(${TEST_E2E_SERVICE} gtest)
- add_dependencies(${TEST_E2E_CLIENT} gtest)
- if (${TEST_E2E_PROFILE_04})
- add_dependencies(${TEST_E2E_PROFILE_04_SERVICE} gtest)
- add_dependencies(${TEST_E2E_PROFILE_04_CLIENT} gtest)
- endif()
- add_dependencies(${TEST_EVENT_SERVICE} gtest)
- add_dependencies(${TEST_EVENT_CLIENT} gtest)
- add_dependencies(${TEST_NPDU_SERVICE_ONE} gtest)
- add_dependencies(${TEST_NPDU_SERVICE_TWO} gtest)
- add_dependencies(${TEST_NPDU_SERVICE_THREE} gtest)
- add_dependencies(${TEST_NPDU_SERVICE_FOUR} gtest)
- add_dependencies(${TEST_NPDU_CLIENT_ONE} gtest)
- add_dependencies(${TEST_NPDU_CLIENT_TWO} gtest)
- add_dependencies(${TEST_NPDU_CLIENT_THREE} gtest)
- add_dependencies(${TEST_NPDU_CLIENT_FOUR} gtest)
- add_dependencies(${TEST_NPDU_DAEMON_CLIENT} gtest)
- add_dependencies(${TEST_NPDU_DAEMON_SERVICE} gtest)
- add_dependencies(${TEST_SOMEIPTP_CLIENT} gtest)
- add_dependencies(${TEST_SOMEIPTP_SERVICE} gtest)
- if(${TEST_SECOND_ADDRESS})
- add_dependencies(${TEST_SECOND_ADDRESS_CLIENT} gtest)
- add_dependencies(${TEST_SECOND_ADDRESS_SERVICE} gtest)
+ if(benchmark_FOUND)
+ add_subdirectory( benchmark_tests EXCLUDE_FROM_ALL )
endif()
- add_dependencies(${TEST_SUSPEND_RESUME_CLIENT} gtest)
- add_dependencies(${TEST_SUSPEND_RESUME_SERVICE} gtest)
-else()
- add_dependencies(${TEST_LOCAL_ROUTING_SERVICE} gtest)
- add_dependencies(${TEST_LOCAL_ROUTING_CLIENT} gtest)
endif()
##############################################################################
-# Add tests to the target build_tests
+# Add internal_routing_disabled_acceptance_test
##############################################################################
if(NOT ${TESTS_BAT})
- add_dependencies(build_tests ${TEST_CONFIGURATION})
- add_dependencies(build_tests ${TEST_APPLICATION})
- add_dependencies(build_tests ${TEST_APPLICATION_SINGLE_PROCESS_NAME})
- add_dependencies(build_tests ${TEST_APPLICATION_AVAILABILITY_NAME})
- add_dependencies(build_tests ${TEST_MAGIC_COOKIES_CLIENT})
- add_dependencies(build_tests ${TEST_MAGIC_COOKIES_SERVICE})
- add_dependencies(build_tests ${TEST_HEADER_FACTORY})
- add_dependencies(build_tests ${TEST_HEADER_FACTORY_CLIENT})
- add_dependencies(build_tests ${TEST_HEADER_FACTORY_SERVICE})
- add_dependencies(build_tests ${TEST_LOCAL_ROUTING_SERVICE})
- add_dependencies(build_tests ${TEST_LOCAL_ROUTING_CLIENT})
- add_dependencies(build_tests ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE})
- add_dependencies(build_tests ${TEST_PAYLOAD_SERVICE})
- add_dependencies(build_tests ${TEST_PAYLOAD_CLIENT})
- add_dependencies(build_tests ${TEST_BIG_PAYLOAD_SERVICE})
- add_dependencies(build_tests ${TEST_BIG_PAYLOAD_CLIENT})
- add_dependencies(build_tests ${TEST_CLIENT_ID_SERVICE})
- add_dependencies(build_tests ${TEST_CLIENT_ID_UTILITY})
- add_dependencies(build_tests ${TEST_SUBSCRIBE_NOTIFY_SERVICE})
- add_dependencies(build_tests ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE})
- add_dependencies(build_tests ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT})
- add_dependencies(build_tests ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE})
- add_dependencies(build_tests ${TEST_CPU_LOAD_SERVICE})
- add_dependencies(build_tests ${TEST_CPU_LOAD_CLIENT})
- add_dependencies(build_tests ${TEST_INITIAL_EVENT_SERVICE})
- add_dependencies(build_tests ${TEST_INITIAL_EVENT_CLIENT})
- add_dependencies(build_tests ${TEST_INITIAL_EVENT_AVAILABILITY_CHECKER})
- add_dependencies(build_tests ${TEST_INITIAL_EVENT_STOP_SERVICE})
- add_dependencies(build_tests ${TEST_OFFER_SERVICE})
- add_dependencies(build_tests ${TEST_OFFER_CLIENT})
- add_dependencies(build_tests ${TEST_OFFER_SERVICE_EXTERNAL})
- add_dependencies(build_tests ${TEST_OFFER_EXTERNAL_SD_MESSAGE_SENDER})
- add_dependencies(build_tests ${TEST_OFFER_SERVICE_AVAILABILITY_CHECKER})
- add_dependencies(build_tests ${TEST_OFFER_BIG_SERVICE})
- add_dependencies(build_tests ${TEST_OFFER_BIG_CLIENT})
- add_dependencies(build_tests ${TEST_RESTART_ROUTING_SERVICE})
- add_dependencies(build_tests ${TEST_RESTART_ROUTING_CLIENT})
- if (${TEST_SECURITY})
- add_dependencies(build_tests ${TEST_SECURITY_SERVICE})
- add_dependencies(build_tests ${TEST_SECURITY_CLIENT})
- endif()
- add_dependencies(build_tests ${TEST_OFFERED_SERVICES_INFO_CLIENT})
- add_dependencies(build_tests ${TEST_OFFERED_SERVICES_INFO_SERVICE})
- add_dependencies(build_tests ${TEST_PENDING_SUBSCRIPTION_SERVICE})
- add_dependencies(build_tests ${TEST_PENDING_SUBSCRIPTION_CLIENT})
- add_dependencies(build_tests ${TEST_MALICIOUS_DATA_SERVICE})
- add_dependencies(build_tests ${TEST_MALICIOUS_DATA_CLIENT})
- add_dependencies(build_tests ${TEST_E2E_SERVICE})
- add_dependencies(build_tests ${TEST_E2E_CLIENT})
- if (${TEST_E2E_PROFILE_04})
- add_dependencies(build_tests ${TEST_E2E_PROFILE_04_SERVICE})
- add_dependencies(build_tests ${TEST_E2E_PROFILE_04_CLIENT})
- endif()
- add_dependencies(build_tests ${TEST_EVENT_SERVICE})
- add_dependencies(build_tests ${TEST_EVENT_CLIENT})
- add_dependencies(build_tests ${TEST_NPDU_SERVICE_ONE})
- add_dependencies(build_tests ${TEST_NPDU_SERVICE_TWO})
- add_dependencies(build_tests ${TEST_NPDU_SERVICE_THREE})
- add_dependencies(build_tests ${TEST_NPDU_SERVICE_FOUR})
- add_dependencies(build_tests ${TEST_NPDU_CLIENT_ONE})
- add_dependencies(build_tests ${TEST_NPDU_CLIENT_TWO})
- add_dependencies(build_tests ${TEST_NPDU_CLIENT_THREE})
- add_dependencies(build_tests ${TEST_NPDU_CLIENT_FOUR})
- add_dependencies(build_tests ${TEST_NPDU_DAEMON_CLIENT})
- add_dependencies(build_tests ${TEST_NPDU_DAEMON_SERVICE})
- add_dependencies(build_tests ${TEST_SOMEIPTP_CLIENT})
- add_dependencies(build_tests ${TEST_SOMEIPTP_SERVICE})
- if(${TEST_SECOND_ADDRESS})
- add_dependencies(build_tests ${TEST_SECOND_ADDRESS_CLIENT})
- add_dependencies(build_tests ${TEST_SECOND_ADDRESS_SERVICE})
- endif()
- add_dependencies(build_tests ${TEST_SUSPEND_RESUME_CLIENT})
- add_dependencies(build_tests ${TEST_SUSPEND_RESUME_SERVICE})
-else()
- add_dependencies(build_tests ${TEST_LOCAL_ROUTING_SERVICE})
- add_dependencies(build_tests ${TEST_LOCAL_ROUTING_CLIENT})
-endif()
-
-# some tests require the routingmanagerd
-add_dependencies(build_tests routingmanagerd)
-
-##############################################################################
-# Add tests
-##############################################################################
-
-if(NOT ${TESTS_BAT})
- add_test(NAME ${TEST_CONFIGURATION}
- COMMAND ${TEST_CONFIGURATION}
- )
-
- # application test
- add_test(NAME ${TEST_APPLICATION}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_APPLICATION_STARTER}
- )
- set_tests_properties(${TEST_APPLICATION} PROPERTIES TIMEOUT 80)
- add_test(NAME ${TEST_APPLICATION_SINGLE_PROCESS_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_APPLICATION_SINGLE_PROCESS_STARTER}
- )
- set_tests_properties(${TEST_APPLICATION_SINGLE_PROCESS_NAME} PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_APPLICATION_AVAILABILITY_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_APPLICATION_AVAILABILITY_STARTER}
- )
- set_tests_properties(${TEST_APPLICATION_AVAILABILITY_NAME} PROPERTIES TIMEOUT 120)
-
- # magic cookies test
- add_test(NAME ${TEST_MAGIC_COOKIES_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_MAGIC_COOKIES_STARTER}
- )
- set_tests_properties(${TEST_MAGIC_COOKIES_NAME} PROPERTIES TIMEOUT 250)
-
- # Header/Factory tets
- add_test(NAME ${TEST_HEADER_FACTORY_NAME} COMMAND ${TEST_HEADER_FACTORY})
- add_test(NAME ${TEST_HEADER_FACTORY_NAME}_send_receive
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_HEADER_FACTORY_STARTER}
- )
-
- # Routing tests
- add_test(NAME ${TEST_LOCAL_ROUTING_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_ROUTING_STARTER}
- )
-
- add_test(NAME ${TEST_EXTERNAL_LOCAL_ROUTING_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_ROUTING_STARTER}
- )
- set_tests_properties(${TEST_EXTERNAL_LOCAL_ROUTING_NAME} PROPERTIES TIMEOUT 120)
-
- # Payload tests
- add_test(NAME ${TEST_LOCAL_PAYLOAD_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_PAYLOAD_STARTER}
- )
- add_test(NAME ${TEST_LOCAL_PAYLOAD_HUGE_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_PAYLOAD_HUGE_STARTER}
- )
- set_tests_properties(${TEST_LOCAL_PAYLOAD_HUGE_NAME} PROPERTIES TIMEOUT 960)
- add_test(NAME ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_STARTER}
- )
- add_test(NAME ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_STARTER}
- )
- set_tests_properties(${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_NAME} PROPERTIES TIMEOUT 480)
- add_test(NAME ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_AND_EXTERNAL_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_AND_EXTERNAL_STARTER}
- )
- set_tests_properties(${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_NAME} PROPERTIES TIMEOUT 480)
-
- # big payload tests
- add_test(NAME ${TEST_LOCAL_BIG_PAYLOAD_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_BIG_PAYLOAD_STARTER}
- )
- set_tests_properties(${TEST_LOCAL_BIG_PAYLOAD_NAME} PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_LOCAL_BIG_PAYLOAD_NAME_RANDOM}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_BIG_PAYLOAD_STARTER} RANDOM
- )
- set_tests_properties(${TEST_LOCAL_BIG_PAYLOAD_NAME_RANDOM} PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_LOCAL_BIG_PAYLOAD_NAME_LIMITED}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_BIG_PAYLOAD_STARTER} LIMITED
- )
- set_tests_properties(${TEST_LOCAL_BIG_PAYLOAD_NAME_LIMITED} PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_EXTERNAL_BIG_PAYLOAD_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER}
- )
- set_tests_properties(${TEST_EXTERNAL_BIG_PAYLOAD_NAME} PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_EXTERNAL_BIG_PAYLOAD_NAME_RANDOM}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER} RANDOM
- )
- set_tests_properties(${TEST_EXTERNAL_BIG_PAYLOAD_NAME_RANDOM} PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_EXTERNAL_BIG_PAYLOAD_NAME_LIMITED}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER} LIMITED
- )
- set_tests_properties(${TEST_EXTERNAL_BIG_PAYLOAD_NAME_LIMITED} PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_EXTERNAL_BIG_PAYLOAD_NAME_LIMITED_GENERAL}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER} LIMITEDGENERAL
- )
- set_tests_properties(${TEST_EXTERNAL_BIG_PAYLOAD_NAME_LIMITED_GENERAL} PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_LOCAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_BIG_PAYLOAD_STARTER} QUEUELIMITEDGENERAL
- )
- set_tests_properties(${TEST_LOCAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED} PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_EXTERNAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED_GENERAL}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER} QUEUELIMITEDGENERAL
- )
- set_tests_properties(${TEST_EXTERNAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED_GENERAL} PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_EXTERNAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED_SPECIFIC}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER} QUEUELIMITEDSPECIFIC
- )
- set_tests_properties(${TEST_EXTERNAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED_SPECIFIC} PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_EXTERNAL_BIG_PAYLOAD_NAME_UDP}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER} UDP
- )
- set_tests_properties(${TEST_EXTERNAL_BIG_PAYLOAD_NAME_UDP} PROPERTIES TIMEOUT 120)
-
- # client id tests
- add_test(NAME ${TEST_CLIENT_ID_NAME}_diff_client_ids_diff_ports
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_MASTER_STARTER} ${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE})
- set_tests_properties(${TEST_CLIENT_ID_NAME}_diff_client_ids_diff_ports PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_CLIENT_ID_NAME}_diff_client_ids_same_ports
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_MASTER_STARTER} ${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE})
- set_tests_properties(${TEST_CLIENT_ID_NAME}_diff_client_ids_same_ports PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_CLIENT_ID_NAME}_diff_client_ids_partial_same_ports
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_MASTER_STARTER} ${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE})
- set_tests_properties(${TEST_CLIENT_ID_NAME}_diff_client_ids_partial_same_ports PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_CLIENT_ID_UTILITY}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_UTILITY})
- set_property(TEST ${TEST_CLIENT_ID_UTILITY}
- APPEND PROPERTY ENVIRONMENT
- "VSOMEIP_CONFIGURATION=${TEST_CLIENT_ID_UTILITY_CONFIG_FILE}")
- set_tests_properties(${TEST_CLIENT_ID_UTILITY} PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_CLIENT_ID_UTILITY}_masked_511
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_UTILITY})
- set_property(TEST ${TEST_CLIENT_ID_UTILITY}_masked_511
- APPEND PROPERTY ENVIRONMENT
- "VSOMEIP_CONFIGURATION=${TEST_CLIENT_ID_UTILITY_MASKED_511_CONFIG_FILE}")
- set_tests_properties(${TEST_CLIENT_ID_UTILITY}_masked_511 PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_CLIENT_ID_UTILITY}_masked_4095
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_UTILITY})
- set_property(TEST ${TEST_CLIENT_ID_UTILITY}_masked_4095
- APPEND PROPERTY ENVIRONMENT
- "VSOMEIP_CONFIGURATION=${TEST_CLIENT_ID_UTILITY_MASKED_4095_CONFIG_FILE}")
- set_tests_properties(${TEST_CLIENT_ID_UTILITY}_masked_4095 PROPERTIES TIMEOUT 600)
-
- add_test(NAME ${TEST_CLIENT_ID_UTILITY}_masked_127
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_UTILITY})
- set_property(TEST ${TEST_CLIENT_ID_UTILITY}_masked_127
- APPEND PROPERTY ENVIRONMENT
- "VSOMEIP_CONFIGURATION=${TEST_CLIENT_ID_UTILITY_MASKED_127_CONFIG_FILE}")
- set_tests_properties(${TEST_CLIENT_ID_UTILITY}_masked_127 PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_CLIENT_ID_UTILITY}_discontinuous_masked_511
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_CLIENT_ID_UTILITY})
- set_property(TEST ${TEST_CLIENT_ID_UTILITY}_discontinuous_masked_511
- APPEND PROPERTY ENVIRONMENT
- "VSOMEIP_CONFIGURATION=${TEST_CLIENT_ID_UTILITY_MASKED_DISCONTINUOUS_511_CONFIG_FILE}")
- set_tests_properties(${TEST_CLIENT_ID_UTILITY}_discontinuous_masked_511 PROPERTIES TIMEOUT 120)
-
- # subscribe notify tests
- add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE})
- set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_tcp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE})
- set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_tcp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_both_tcp_and_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP_AND_UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE})
- set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE})
- set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_tcp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE})
- set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_tcp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_both_tcp_and_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP_AND_UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE})
- set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_partial_same_ports_both_tcp_and_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP_AND_UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE})
- set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_partial_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_CONFIG_FILE} SAME_SERVICE_ID)
- set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_autoconfig_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_CONFIG_FILE})
- set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_CONFIG_FILE})
- set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_tcp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER} TCP ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_CONFIG_FILE})
- set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_tcp PROPERTIES TIMEOUT 120)
-
- # subscribe notify one id tests
- add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE})
- set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_tcp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_MASTER_STARTER} TCP ${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE})
- set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_tcp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_both_tcp_and_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUBSCRIBE_NOTIFY_ONE_MASTER_STARTER} TCP_AND_UDP ${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE})
- set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
-
- # cpu load tests
- add_test(NAME ${TEST_CPU_LOAD_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_CPU_LOAD_MASTER_STARTER}
- )
- set_tests_properties(${TEST_CPU_LOAD_NAME} PROPERTIES TIMEOUT 3000)
-
- # initial event tests
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE} UDP)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_tcp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE} TCP)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_tcp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_both_tcp_and_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE} UDP)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_tcp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE} TCP)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_tcp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_both_tcp_and_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_partial_same_ports_both_tcp_and_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_partial_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_same_service_id_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE} TCP_AND_UDP SAME_SERVICE_ID)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_same_service_id_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE} UDP MULTIPLE_EVENTS)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_tcp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE} TCP MULTIPLE_EVENTS)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_tcp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_both_tcp_and_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP MULTIPLE_EVENTS)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_same_ports_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE} UDP MULTIPLE_EVENTS)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_same_ports_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_same_ports_tcp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE} TCP MULTIPLE_EVENTS)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_same_ports_tcp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_same_ports_both_tcp_and_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP MULTIPLE_EVENTS)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_partial_same_ports_both_tcp_and_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP MULTIPLE_EVENTS)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_partial_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_same_service_id_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE} TCP_AND_UDP SAME_SERVICE_ID MULTIPLE_EVENTS)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_same_service_id_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE} UDP MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_tcp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE} TCP MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_tcp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_both_tcp_and_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_same_ports_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE} UDP MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_same_ports_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_same_ports_tcp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE} TCP MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_same_ports_tcp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_same_ports_both_tcp_and_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_partial_same_ports_both_tcp_and_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_partial_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_same_service_id_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE} TCP_AND_UDP SAME_SERVICE_ID MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_same_service_id_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_partial_subscription_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE} UDP MULTIPLE_EVENTS SUBSCRIBE_ONLY_ONE)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_partial_subscription_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_partial_subscription_tcp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE} TCP MULTIPLE_EVENTS SUBSCRIBE_ONLY_ONE)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_partial_subscription_tcp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_partial_subscription_both_tcp_and_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP MULTIPLE_EVENTS SUBSCRIBE_ONLY_ONE)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_partial_subscription_both_tcp_and_udp PROPERTIES TIMEOUT 120)
-
- add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_udp_client_subscribes_twice
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE} UDP CLIENT_SUBSCRIBES_TWICE)
- set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_udp_client_subscribes_twice PROPERTIES TIMEOUT 120)
-
- # offer tests
- add_test(NAME ${TEST_OFFER_NAME}_local
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_OFFER_LOCAL_STARTER})
- set_tests_properties(${TEST_OFFER_NAME}_local PROPERTIES TIMEOUT 180)
- add_test(NAME ${TEST_OFFER_NAME}_external
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_OFFER_EXTERNAL_MASTER_STARTER})
- set_tests_properties(${TEST_OFFER_NAME}_local PROPERTIES TIMEOUT 360)
- add_test(NAME ${TEST_OFFER_BIG_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_OFFER_BIG_MASTER_STARTER})
- set_tests_properties(${TEST_OFFER_BIG_NAME} PROPERTIES TIMEOUT 360)
-
- # offered services info tets
- add_test(NAME ${TEST_OFFERED_SERVICES_INFO_NAME}_local
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_OFFERED_SERVICES_INFO_LOCAL_STARTER})
- set_tests_properties(${TEST_OFFERED_SERVICES_INFO_NAME}_local PROPERTIES TIMEOUT 180)
-
- # Restart-Routing tests
- add_test(NAME ${TEST_RESTART_ROUTING_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_RESTART_ROUTING_STARTER}
- )
- if (${TEST_SECURITY})
- # Security tests
- add_test(NAME ${TEST_SECURITY_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SECURITY_SERVICE_LOCAL_START_SCRIPT}
- )
- add_test(NAME ${TEST_SECURITY_NAME}_external_allow
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SECURITY_EXTERNAL_MASTER_START_SCRIPT} security_test_config_client_external_allow.json --allow
- )
- add_test(NAME ${TEST_SECURITY_NAME}_external_deny
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SECURITY_EXTERNAL_MASTER_START_SCRIPT} security_test_config_client_external_deny.json --deny
- )
- endif()
-
- # pending subscriptions test
- add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_subscribe
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} SUBSCRIBE)
- set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_subscribe PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_alternating_subscribe_unsubscribe
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} SUBSCRIBE_UNSUBSCRIBE)
- set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_alternating_subscribe_unsubscribe PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_unsubscribe
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} UNSUBSCRIBE)
- set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_unsubscribe PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_alternating_subscribe_unsubscribe_nack
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} SUBSCRIBE_UNSUBSCRIBE_NACK)
- set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_alternating_subscribe_unsubscribe_nack PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_alternating_subscribe_unsubscribe_same_port
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} SUBSCRIBE_UNSUBSCRIBE_SAME_PORT)
- set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_alternating_subscribe_unsubscribe_same_port PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_subscribe_resubscribe_mixed
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} SUBSCRIBE_RESUBSCRIBE_MIXED)
- set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_subscribe_resubscribe_mixed PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_subscribe_stopsubscribe_subscribe
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} SUBSCRIBE_STOPSUBSCRIBE_SUBSCRIBE)
- set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_subscribe_stopsubscribe_subscribe PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_send_request_to_sd_port
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} REQUEST_TO_SD)
- set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_send_request_to_sd_port PROPERTIES TIMEOUT 180)
-
- # malicious data test
- add_test(NAME ${TEST_MALICIOUS_DATA_NAME}_events
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_MALICIOUS_DATA_MASTER_STARTER} MALICIOUS_EVENTS)
- set_tests_properties(${TEST_MALICIOUS_DATA_NAME}_events PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_MALICIOUS_DATA_NAME}_protocol_version
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_MALICIOUS_DATA_MASTER_STARTER} PROTOCOL_VERSION)
- set_tests_properties(${TEST_MALICIOUS_DATA_NAME}_protocol_version PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_MALICIOUS_DATA_NAME}_message_type
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_MALICIOUS_DATA_MASTER_STARTER} MESSAGE_TYPE)
- set_tests_properties(${TEST_MALICIOUS_DATA_NAME}_message_type PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_MALICIOUS_DATA_NAME}_return_code
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_MALICIOUS_DATA_MASTER_STARTER} RETURN_CODE)
- set_tests_properties(${TEST_MALICIOUS_DATA_NAME}_return_code PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_MALICIOUS_DATA_NAME}_wrong_header_fields_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_MALICIOUS_DATA_MASTER_STARTER} WRONG_HEADER_FIELDS_UDP)
- set_tests_properties(${TEST_MALICIOUS_DATA_NAME}_wrong_header_fields_udp PROPERTIES TIMEOUT 180)
-
- # npdu tests
- add_test(NAME ${TEST_NPDU_NAME}_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_NPDU_STARTER} UDP sync)
- set_tests_properties(${TEST_NPDU_NAME}_udp PROPERTIES TIMEOUT 840)
-
- add_test(NAME ${TEST_NPDU_NAME}_tcp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_NPDU_STARTER} TCP sync)
- set_tests_properties(${TEST_NPDU_NAME}_tcp PROPERTIES TIMEOUT 840)
-
- # e2e tests
- add_test(NAME ${TEST_E2E_NAME}_external
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_E2E_EXTERNAL_MASTER_START_SCRIPT} e2e_test_client_external.json)
- set_tests_properties(${TEST_E2E_NAME}_external PROPERTIES TIMEOUT 180)
-
- if (${TEST_E2E_PROFILE_04})
- add_test(NAME ${TEST_E2E_PROFILE_04_NAME}_external
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_E2E_PROFILE_04_EXTERNAL_MASTER_START_SCRIPT} e2e_profile_04_test_client_external.json)
- set_tests_properties(${TEST_E2E_PROFILE_04_NAME}_external PROPERTIES TIMEOUT 180)
- endif ()
-
- # event tests
- add_test(NAME ${TEST_EVENT_NAME}_payload_fixed_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EVENT_MASTER_START_SCRIPT} PAYLOAD_FIXED UDP)
- set_tests_properties(${TEST_EVENT_NAME}_payload_fixed_udp PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_EVENT_NAME}_payload_fixed_tcp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EVENT_MASTER_START_SCRIPT} PAYLOAD_FIXED TCP)
- set_tests_properties(${TEST_EVENT_NAME}_payload_fixed_tcp PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_EVENT_NAME}_payload_dynamic_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EVENT_MASTER_START_SCRIPT} PAYLOAD_DYNAMIC UDP)
- set_tests_properties(${TEST_EVENT_NAME}_payload_dynamic_udp PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_EVENT_NAME}_payload_dynamic_tcp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_EVENT_MASTER_START_SCRIPT} PAYLOAD_DYNAMIC TCP)
- set_tests_properties(${TEST_EVENT_NAME}_payload_dynamic_tcp PROPERTIES TIMEOUT 180)
-
- # SOME/IP-TP tests
- add_test(NAME ${TEST_SOMEIPTP_NAME}_in_sequence
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SOMEIPTP_MASTER_START_SCRIPT} IN_SEQUENCE)
- set_tests_properties(${TEST_SOMEIPTP_NAME}_in_sequence PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_SOMEIPTP_NAME}_mixed
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SOMEIPTP_MASTER_START_SCRIPT} MIXED)
- set_tests_properties(${TEST_SOMEIPTP_NAME}_mixed PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_SOMEIPTP_NAME}_incomplete
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SOMEIPTP_MASTER_START_SCRIPT} INCOMPLETE)
- set_tests_properties(${TEST_SOMEIPTP_NAME}_incomplete PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_SOMEIPTP_NAME}_duplicate
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SOMEIPTP_MASTER_START_SCRIPT} DUPLICATE)
- set_tests_properties(${TEST_SOMEIPTP_NAME}_duplicate PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_SOMEIPTP_NAME}_overlap
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SOMEIPTP_MASTER_START_SCRIPT} OVERLAP)
- set_tests_properties(${TEST_SOMEIPTP_NAME}_overlap PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_SOMEIPTP_NAME}_overlap_front_back
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SOMEIPTP_MASTER_START_SCRIPT} OVERLAP_FRONT_BACK)
- set_tests_properties(${TEST_SOMEIPTP_NAME}_overlap_front_back PROPERTIES TIMEOUT 180)
-
- if(${TEST_SECOND_ADDRESS})
- add_test(NAME ${TEST_SECOND_ADDRESS_NAME}_second_ip_address_service_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SECOND_ADDRESS_MASTER_START_SCRIPT} SERVICE UDP
- )
- set_tests_properties(${TEST_SECOND_ADDRESS_NAME}_second_ip_address_service_udp PROPERTIES TIMEOUT 180)
-
- add_test(NAME ${TEST_SECOND_ADDRESS_NAME}_second_ip_address_client_udp
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SECOND_ADDRESS_MASTER_START_SCRIPT} CLIENT UDP
- )
- set_tests_properties(${TEST_SECOND_ADDRESS_NAME}_second_ip_address_client_udp PROPERTIES TIMEOUT 180)
- endif()
-
- # suspend resume test
- add_test(NAME ${TEST_SUSPEND_RESUME_NAME}_initial
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_SUSPEND_RESUME_MASTER_START_SCRIPT} SERVICE
- )
- set_tests_properties(${TEST_SUSPEND_RESUME_NAME}_initial PROPERTIES TIMEOUT 80)
-
-else()
- # Routing tests
- add_test(NAME ${TEST_LOCAL_ROUTING_NAME}
- COMMAND ${PROJECT_BINARY_DIR}/test/${TEST_LOCAL_ROUTING_STARTER}
- )
+ add_subdirectory(internal_routing_disabled_acceptance_test)
endif()
diff --git a/test/benchmark_tests/CMakeLists.txt b/test/benchmark_tests/CMakeLists.txt
new file mode 100644
index 0000000..24905ec
--- /dev/null
+++ b/test/benchmark_tests/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Copyright (C) 2015-2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+project ("benchmark_tests_bin" LANGUAGES CXX)
+
+file (GLOB SRCS main.cpp **/*.cpp ../common/utility.cpp)
+
+set(THREADS_PREFER_PTHREAD_FLAG ON)
+
+find_package(Threads REQUIRED)
+find_package(Boost 1.55 COMPONENTS filesystem system REQUIRED)
+
+# ----------------------------------------------------------------------------
+# Executable and libraries to link
+# ----------------------------------------------------------------------------
+add_executable (${PROJECT_NAME} ${SRCS} )
+target_link_libraries (
+ ${PROJECT_NAME}
+ vsomeip3
+ vsomeip3-cfg
+ Threads::Threads
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ benchmark::benchmark
+ gtest
+)
+
+add_dependencies(build_benchmark_tests ${PROJECT_NAME})
diff --git a/test/benchmark_tests/main.cpp b/test/benchmark_tests/main.cpp
new file mode 100644
index 0000000..d859055
--- /dev/null
+++ b/test/benchmark_tests/main.cpp
@@ -0,0 +1,8 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <benchmark/benchmark.h>
+
+BENCHMARK_MAIN(); \ No newline at end of file
diff --git a/test/benchmark_tests/security_tests/bm_check_credentials.cpp b/test/benchmark_tests/security_tests/bm_check_credentials.cpp
new file mode 100644
index 0000000..756cd5f
--- /dev/null
+++ b/test/benchmark_tests/security_tests/bm_check_credentials.cpp
@@ -0,0 +1,106 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <benchmark/benchmark.h>
+
+#include "../../common/utility.hpp"
+
+namespace {
+ vsomeip_v3::client_t client = 1;
+ vsomeip_v3::uid_t invalid_uid = 1;
+ vsomeip_v3::uid_t valid_uid = 4004201;
+ vsomeip_v3::gid_t invalid_gid = 1;
+ vsomeip_v3::gid_t valid_gid = 4004200;
+}
+
+static void BM_check_credentials_policies_not_loaded(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+
+ // create security clients
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ for (auto _ : state)
+ its_manager->check_credentials(client, &its_sec_client_invalid);
+}
+
+static void BM_check_credentials_policies_loaded_invalid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ for (const auto& e : policy_elements) {
+ its_manager->load(e, false);
+ }
+
+ // create security clients
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ for (auto _ : state)
+ its_manager->check_credentials(client, &its_sec_client_invalid);
+}
+
+static void BM_check_credentials_policies_loaded_valid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ for (const auto& e : policy_elements) {
+ its_manager->load(e, false);
+ }
+
+ // create security clients
+ vsomeip_sec_client_t its_sec_client_valid = utility::create_uds_client(valid_uid, valid_gid);
+
+ for (auto _ : state)
+ its_manager->check_credentials(client, &its_sec_client_valid);
+}
+
+static void BM_check_credentials_policies_loaded_audit_mode_invalid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ utility::force_check_credentials(policy_elements, "false");
+ for (const auto& e : policy_elements) {
+ its_manager->load(e, false);
+ }
+
+ // create security clients
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ for (auto _ : state)
+ its_manager->check_credentials(client, &its_sec_client_invalid);
+}
+
+static void BM_check_credentials_policies_loaded_audit_mode_valid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ utility::force_check_credentials(policy_elements, "false");
+ for (const auto& e : policy_elements) {
+ its_manager->load(e, false);
+ }
+
+ // create security clients
+ vsomeip_sec_client_t its_sec_client_valid = utility::create_uds_client(valid_uid, valid_gid);
+
+ for (auto _ : state)
+ its_manager->check_credentials(client, &its_sec_client_valid);
+}
+
+BENCHMARK(BM_check_credentials_policies_not_loaded);
+BENCHMARK(BM_check_credentials_policies_loaded_invalid_values);
+BENCHMARK(BM_check_credentials_policies_loaded_valid_values);
+BENCHMARK(BM_check_credentials_policies_loaded_audit_mode_invalid_values);
+BENCHMARK(BM_check_credentials_policies_loaded_audit_mode_valid_values); \ No newline at end of file
diff --git a/test/benchmark_tests/security_tests/bm_check_routing_credentials.cpp b/test/benchmark_tests/security_tests/bm_check_routing_credentials.cpp
new file mode 100644
index 0000000..ed6ed57
--- /dev/null
+++ b/test/benchmark_tests/security_tests/bm_check_routing_credentials.cpp
@@ -0,0 +1,99 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <benchmark/benchmark.h>
+
+#include "../../common/utility.hpp"
+
+namespace{
+vsomeip_v3::uid_t invalid_uid = 1;
+vsomeip_v3::uid_t valid_uid = 4003017;
+vsomeip_v3::gid_t invalid_gid = 1;
+vsomeip_v3::gid_t valid_gid = 5002;
+}
+
+static void BM_check_routing_credentials_policies_not_loaded(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ for (auto _ : state)
+ security->check_routing_credentials(&its_sec_client_invalid);
+}
+
+static void BM_check_routing_credentials_policies_loaded_invalid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ for (const auto& e : policy_elements) {
+ security->load(e, false);
+ }
+
+ for (auto _ : state)
+ security->check_routing_credentials(&its_sec_client_invalid);
+}
+
+static void BM_check_routing_credentials_policies_loaded_valid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client_valid = utility::create_uds_client(valid_uid, valid_gid);
+
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ for (const auto& e : policy_elements) {
+ security->load(e, false);
+ }
+
+ for (auto _ : state)
+ security->check_routing_credentials(&its_sec_client_valid);
+}
+
+static void BM_check_routing_credentials_policies_loaded_lazy_load_invalid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ for (const auto& e : policy_elements) {
+ security->load(e, true);
+ }
+
+ for (auto _ : state)
+ security->check_routing_credentials(&its_sec_client_invalid);
+}
+
+static void BM_check_routing_credentials_policies_loaded_lazy_load_valid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client_valid = utility::create_uds_client(valid_uid, valid_gid);
+
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ for (const auto& e : policy_elements) {
+ security->load(e, true);
+ }
+
+ for (auto _ : state)
+ security->check_routing_credentials(&its_sec_client_valid);
+}
+
+BENCHMARK(BM_check_routing_credentials_policies_not_loaded);
+BENCHMARK(BM_check_routing_credentials_policies_loaded_invalid_values);
+BENCHMARK(BM_check_routing_credentials_policies_loaded_valid_values);
+BENCHMARK(BM_check_routing_credentials_policies_loaded_lazy_load_invalid_values);
+BENCHMARK(BM_check_routing_credentials_policies_loaded_lazy_load_valid_values);
diff --git a/test/benchmark_tests/security_tests/bm_get_client_to_sec_client_mapping.cpp b/test/benchmark_tests/security_tests/bm_get_client_to_sec_client_mapping.cpp
new file mode 100644
index 0000000..aa80406
--- /dev/null
+++ b/test/benchmark_tests/security_tests/bm_get_client_to_sec_client_mapping.cpp
@@ -0,0 +1,61 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <benchmark/benchmark.h>
+
+#include "../../common/utility.hpp"
+
+namespace{
+vsomeip_v3::client_t client = 10;
+vsomeip_v3::client_t alternate_client = 11;
+vsomeip_v3::uid_t uid_1 = 4003030;
+vsomeip_v3::gid_t gid_1 = 4003032;
+vsomeip_v3::uid_t uid_2 = 1;
+vsomeip_v3::gid_t gid_2 = 1;
+vsomeip_v3::uid_t uid_3 = 2;
+vsomeip_v3::gid_t gid_3 = 2;
+}
+
+static void BM_get_client_to_sec_client_mapping_valid_values(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client_uid_gid_1 = utility::create_uds_client(uid_1, gid_1);
+ vsomeip_sec_client_t its_sec_client_uid_gid_2 = utility::create_uds_client(uid_2, gid_2);
+
+ // add client and security client mappings
+ security->store_client_to_sec_client_mapping(client, &its_sec_client_uid_gid_1);
+
+ for (auto _ : state) {
+ security->get_client_to_sec_client_mapping(client, its_sec_client_uid_gid_2);
+ }
+
+ vsomeip_sec_client_t its_sec_client_uid_gid_3 = utility::create_uds_client(uid_3, gid_3);
+
+ // add alternate client and security client
+ security->store_client_to_sec_client_mapping(alternate_client, &its_sec_client_uid_gid_1);
+
+ for (auto _ : state) {
+ security->get_client_to_sec_client_mapping(alternate_client, its_sec_client_uid_gid_3);
+ }
+}
+
+static void BM_get_client_to_sec_client_mapping_invalid_values(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client_uid_gid_1 = utility::create_uds_client(uid_1, gid_1);
+
+ for (auto _ : state) {
+ security->get_client_to_sec_client_mapping(client, its_sec_client_uid_gid_1);
+ }
+
+ for (auto _ : state) {
+ security->get_client_to_sec_client_mapping(alternate_client, its_sec_client_uid_gid_1);
+ }
+}
+
+BENCHMARK(BM_get_client_to_sec_client_mapping_valid_values);
+BENCHMARK(BM_get_client_to_sec_client_mapping_invalid_values);
diff --git a/test/benchmark_tests/security_tests/bm_get_clients.cpp b/test/benchmark_tests/security_tests/bm_get_clients.cpp
new file mode 100644
index 0000000..091c9e1
--- /dev/null
+++ b/test/benchmark_tests/security_tests/bm_get_clients.cpp
@@ -0,0 +1,52 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <benchmark/benchmark.h>
+
+#include "../../common/utility.hpp"
+
+namespace{
+std::unordered_set<vsomeip_v3::client_t> clients;
+std::unordered_set<vsomeip_v3::client_t> local_clients;
+vsomeip_v3::client_t client_1 = 10;
+vsomeip_v3::client_t client_2 = 11;
+vsomeip_v3::client_t client_3 = 12;
+vsomeip_v3::uid_t uid = 4003030;
+vsomeip_v3::gid_t gid = 4003032;
+}
+
+static void BM_get_clients(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client_uid_gid = utility::create_uds_client(uid, gid);
+
+ // Loop to do the benchmark test the get with an empty clients list.
+ for (auto _ : state) {
+ security->get_clients(uid, gid, clients);
+ }
+
+ local_clients.insert(client_1);
+ security->store_client_to_sec_client_mapping(client_1, &its_sec_client_uid_gid);
+
+ // Loop to do the benchmark test the get with 1 client on the list
+ for (auto _ : state) {
+ security->get_clients(uid, gid, clients);
+ }
+
+ // Repeat with two more clients.
+ security->store_client_to_sec_client_mapping(client_2, &its_sec_client_uid_gid);
+ security->store_client_to_sec_client_mapping(client_3, &its_sec_client_uid_gid);
+
+ local_clients.insert(client_2);
+ local_clients.insert(client_3);
+
+ //Loop to do the benchmark test the get with 3 clients on the list
+ for (auto _ : state) {
+ security->get_clients(uid, gid, clients);
+ }
+}
+
+BENCHMARK(BM_get_clients);
diff --git a/test/benchmark_tests/security_tests/bm_get_sec_client_to_clients_mapping.cpp b/test/benchmark_tests/security_tests/bm_get_sec_client_to_clients_mapping.cpp
new file mode 100644
index 0000000..71a517a
--- /dev/null
+++ b/test/benchmark_tests/security_tests/bm_get_sec_client_to_clients_mapping.cpp
@@ -0,0 +1,60 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <benchmark/benchmark.h>
+
+#include "../../common/utility.hpp"
+
+namespace{
+vsomeip_v3::client_t client = 10;
+vsomeip_v3::uid_t uid_1 = 4003030;
+vsomeip_v3::gid_t gid_1 = 4003032;
+vsomeip_v3::uid_t uid_2 = 1;
+vsomeip_v3::gid_t gid_2 = 1;
+}
+
+static void BM_get_sec_client_to_clients_mapping_valid_values(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client_uid_gid = utility::create_uds_client(uid_1, gid_1);
+ vsomeip_sec_client_t its_sec_client_uid_gid_alternate = utility::create_uds_client(uid_2, gid_2);
+
+ // Add client and uid_gid mappings.
+ security->store_sec_client_to_client_mapping(&its_sec_client_uid_gid, client);
+
+ std::set<vsomeip_v3::client_t> clients_1;
+ for (auto _ : state) {
+ security->get_sec_client_to_clients_mapping(&its_sec_client_uid_gid, clients_1);
+ }
+
+ // Add alternate client and uid_gid mappings.
+ security->store_sec_client_to_client_mapping(&its_sec_client_uid_gid_alternate, client);
+
+ std::set<vsomeip_v3::client_t> clients_2;
+ for (auto _ : state) {
+ security->get_sec_client_to_clients_mapping(&its_sec_client_uid_gid_alternate, clients_2);
+ }
+}
+
+static void BM_get_sec_client_to_clients_mapping_invalid_values(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client_uid_gid = utility::create_uds_client(uid_1, gid_1);
+ vsomeip_sec_client_t its_sec_client_uid_gid_alternate = utility::create_uds_client(uid_2, gid_2);
+
+ std::set<vsomeip_v3::client_t> clients;
+ for (auto _ : state) {
+ security->get_sec_client_to_clients_mapping(&its_sec_client_uid_gid, clients);
+ }
+
+ for (auto _ : state) {
+ security->get_sec_client_to_clients_mapping(&its_sec_client_uid_gid_alternate, clients);
+ }
+}
+
+BENCHMARK(BM_get_sec_client_to_clients_mapping_valid_values);
+BENCHMARK(BM_get_sec_client_to_clients_mapping_invalid_values);
diff --git a/test/benchmark_tests/security_tests/bm_is_client_allowed.cpp b/test/benchmark_tests/security_tests/bm_is_client_allowed.cpp
new file mode 100644
index 0000000..fbbbde3
--- /dev/null
+++ b/test/benchmark_tests/security_tests/bm_is_client_allowed.cpp
@@ -0,0 +1,195 @@
+#include <benchmark/benchmark.h>
+
+#include "../../common/utility.hpp"
+
+namespace {
+ vsomeip_v3::client_t client = 1;
+
+ vsomeip_v3::uid_t uid_1 = 4003031;
+ vsomeip_v3::gid_t gid_1 = 4003031;
+ vsomeip_v3::service_t service_1 = 0xf913;
+
+ vsomeip_v3::instance_t instance = 0x03;
+ vsomeip_v3::method_t method = 0x04;
+
+ vsomeip_v3::gid_t invalid_uid = 1;
+ vsomeip_v3::gid_t invalid_gid = 1;
+
+ vsomeip_v3::gid_t deny_uid = 9999;
+ vsomeip_v3::gid_t deny_gid = 9999;
+ vsomeip_v3::service_t deny_service = 0x40;
+}
+
+static void BM_is_client_allowed_policies_not_loaded(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ for (auto _ : state)
+ {
+ its_manager->is_client_allowed(&its_sec_client_invalid, service_1, instance, method);
+ }
+}
+
+static void BM_is_client_allowed_policies_loaded_valid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+
+ for (const auto& e : policy_elements) {
+ its_manager->load(e, false);
+ }
+
+ vsomeip_sec_client_t its_sec_client = utility::create_uds_client(uid_1, gid_1);
+
+ for (auto _ : state) {
+ its_manager->is_client_allowed(&its_sec_client, service_1, instance, method);
+ }
+}
+
+static void BM_is_client_allowed_cache_policies_loaded(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ for (const auto& e : policy_elements) {
+ its_manager->load(e, false);
+ }
+
+ vsomeip_sec_client_t its_sec_client = utility::create_uds_client(uid_1, gid_1);
+
+ its_manager->is_client_allowed(&its_sec_client, service_1, instance, method);
+
+ for (auto _ : state) {
+ its_manager->is_client_allowed(&its_sec_client, service_1, instance, method);
+ }
+}
+
+static void BM_is_client_allowed_policies_loaded_invalid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ for (const auto& e : policy_elements) {
+ its_manager->load(e, false);
+ }
+
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ for (auto _ : state) {
+ its_manager->is_client_allowed(&its_sec_client_invalid, service_1, instance, method);
+ }
+}
+
+static void BM_is_client_allowed_policies_loaded_deny_valid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ for (const auto& e : policy_elements) {
+ its_manager->load(e, false);
+ }
+
+ vsomeip_sec_client_t its_sec_client_deny = utility::create_uds_client(deny_uid, deny_gid);
+
+ for (auto _ : state) {
+ its_manager->is_client_allowed(&its_sec_client_deny, deny_service, instance, method);
+ }
+}
+
+static void BM_is_client_allowed_policies_loaded_audit_mode_valid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ utility::force_check_credentials(policy_elements, "false");
+ for (const auto& e : policy_elements) {
+ its_manager->load(e, false);
+ }
+
+ vsomeip_sec_client_t its_sec_client = utility::create_uds_client(uid_1, gid_1);
+
+ for (auto _ : state) {
+ its_manager->is_client_allowed(&its_sec_client, client, service_1, instance, method);
+ }
+}
+
+static void BM_is_client_allowed_cache_policies_loaded_audit_mode(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ utility::force_check_credentials(policy_elements, "false");
+ for (const auto& e : policy_elements) {
+ its_manager->load(e, false);
+ }
+
+ vsomeip_sec_client_t its_sec_client = utility::create_uds_client(uid_1, gid_1);
+
+ its_manager->is_client_allowed(&its_sec_client, service_1, instance, method);
+
+ for (auto _ : state) {
+ its_manager->is_client_allowed(&its_sec_client, service_1, instance, method);
+ }
+}
+
+static void BM_is_client_allowed_policies_loaded_audit_mode_invalid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ utility::force_check_credentials(policy_elements, "false");
+ for (const auto& e : policy_elements) {
+ its_manager->load(e, false);
+ }
+
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ for (auto _ : state) {
+ its_manager->is_client_allowed(&its_sec_client_invalid, service_1, instance, method);
+ }
+}
+
+static void BM_is_client_allowed_policies_loaded_audit_mode_deny_valid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ utility::force_check_credentials(policy_elements, "false");
+ for (const auto& e : policy_elements) {
+ its_manager->load(e, false);
+ }
+
+ vsomeip_sec_client_t its_sec_client_deny = utility::create_uds_client(deny_uid, deny_gid);
+
+ for (auto _ : state) {
+ its_manager->is_client_allowed(&its_sec_client_deny, deny_service, instance, method);
+ }
+}
+
+BENCHMARK(BM_is_client_allowed_policies_not_loaded);
+BENCHMARK(BM_is_client_allowed_policies_loaded_valid_values);
+BENCHMARK(BM_is_client_allowed_cache_policies_loaded);
+BENCHMARK(BM_is_client_allowed_policies_loaded_invalid_values);
+BENCHMARK(BM_is_client_allowed_policies_loaded_deny_valid_values);
+BENCHMARK(BM_is_client_allowed_policies_loaded_audit_mode_valid_values);
+BENCHMARK(BM_is_client_allowed_cache_policies_loaded_audit_mode);
+BENCHMARK(BM_is_client_allowed_policies_loaded_audit_mode_invalid_values);
+BENCHMARK(BM_is_client_allowed_policies_loaded_audit_mode_deny_valid_values); \ No newline at end of file
diff --git a/test/benchmark_tests/security_tests/bm_is_offer_allowed.cpp b/test/benchmark_tests/security_tests/bm_is_offer_allowed.cpp
new file mode 100644
index 0000000..4b8299f
--- /dev/null
+++ b/test/benchmark_tests/security_tests/bm_is_offer_allowed.cpp
@@ -0,0 +1,167 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <benchmark/benchmark.h>
+
+#include "../../common/utility.hpp"
+
+namespace {
+
+vsomeip_v3::uid_t uid_1 = 4003016;
+vsomeip_v3::gid_t gid_1 = 4003016;
+vsomeip_v3::service_t service_1 = 0xf8c2;
+
+vsomeip_v3::service_t deny_service = 0x40;
+
+vsomeip_v3::instance_t instance = 0x03;
+
+vsomeip_v3::uid_t invalid_uid = 1;
+vsomeip_v3::gid_t invalid_gid = 1;
+
+vsomeip_v3::gid_t deny_uid = 9000;
+vsomeip_v3::gid_t deny_gid = 9000;
+}
+
+static void BM_is_offer_allowed_policies_not_loaded(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ for (auto _ : state)
+ {
+ security->is_offer_allowed(&its_sec_client_invalid, service_1, instance);
+ }
+}
+
+static void BM_is_offer_allowed_policies_loaded_valid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+
+ vsomeip_sec_client_t its_sec_client_valid = utility::create_uds_client(uid_1, gid_1);
+
+ for (const auto& e : policy_elements) {
+ security->load(e, false);
+ }
+
+ for (auto _ : state) {
+ security->is_offer_allowed(&its_sec_client_valid, service_1, instance);
+ }
+}
+
+static void BM_is_offer_allowed_policies_loaded_invalid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ for (const auto& e : policy_elements) {
+ security->load(e, false);
+ }
+
+ for (auto _ : state) {
+ security->is_offer_allowed(&its_sec_client_invalid, service_1, instance);
+ }
+}
+
+static void BM_is_offer_allowed_policies_loaded_deny_valid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+
+ vsomeip_sec_client_t its_sec_client_deny = utility::create_uds_client(deny_uid, deny_gid);
+
+ for (const auto& e : policy_elements) {
+ security->load(e, false);
+ }
+
+ for (auto _ : state) {
+ security->is_offer_allowed(&its_sec_client_deny, deny_service, instance);
+ }
+}
+
+static void BM_is_offer_allowed_policies_loaded_audit_mode_valid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ utility::force_check_credentials(policy_elements, "false");
+
+ vsomeip_sec_client_t its_sec_client_valid = utility::create_uds_client(uid_1, gid_1);
+
+ for (const auto& e : policy_elements) {
+ security->load(e, false);
+ }
+
+ for (auto _ : state) {
+ security->is_offer_allowed(&its_sec_client_valid, service_1, instance);
+ }
+}
+
+static void BM_is_offer_allowed_policies_loaded_audit_mode_invalid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ utility::force_check_credentials(policy_elements, "false");
+
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ for (const auto& e : policy_elements) {
+ security->load(e, false);
+ }
+
+ for (auto _ : state) {
+ security->is_offer_allowed(&its_sec_client_invalid, service_1, instance);
+ }
+}
+
+static void BM_is_offer_allowed_policies_loaded_audit_mode_deny_valid_values(benchmark::State& state) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+ utility::force_check_credentials(policy_elements, "false");
+
+ vsomeip_sec_client_t its_sec_client_deny = utility::create_uds_client(deny_uid, deny_gid);
+
+ for (const auto& e : policy_elements) {
+ security->load(e, false);
+ }
+
+ for (auto _ : state) {
+ security->is_offer_allowed(&its_sec_client_deny, deny_service, instance);
+ }
+}
+
+BENCHMARK(BM_is_offer_allowed_policies_not_loaded);
+BENCHMARK(BM_is_offer_allowed_policies_loaded_valid_values);
+BENCHMARK(BM_is_offer_allowed_policies_loaded_invalid_values);
+BENCHMARK(BM_is_offer_allowed_policies_loaded_deny_valid_values);
+BENCHMARK(BM_is_offer_allowed_policies_loaded_audit_mode_valid_values);
+BENCHMARK(BM_is_offer_allowed_policies_loaded_audit_mode_invalid_values);
+BENCHMARK(BM_is_offer_allowed_policies_loaded_audit_mode_deny_valid_values);
diff --git a/test/benchmark_tests/security_tests/bm_is_policy_update_allowed.cpp b/test/benchmark_tests/security_tests/bm_is_policy_update_allowed.cpp
new file mode 100644
index 0000000..8e3ab4d
--- /dev/null
+++ b/test/benchmark_tests/security_tests/bm_is_policy_update_allowed.cpp
@@ -0,0 +1,358 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <benchmark/benchmark.h>
+
+#include "../../common/utility.hpp"
+namespace {
+std::string configuration_file { "/vsomeip/0_0/vsomeip_security.json" };
+
+vsomeip_v3::uid_t valid_uid { 0 };
+vsomeip_v3::uid_t invalid_uid { 1234567 };
+
+vsomeip_v3::gid_t valid_gid { 0 };
+
+vsomeip_v3::service_t valid_service { 0xf913 };
+vsomeip_v3::service_t invalid_service { 0x41 };
+}
+
+static void BM_is_policy_update_allowed_valid_uid_no_requests(benchmark::State &state)
+{
+ // Test object.
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Get some configurations.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Load the configuration into the security.
+ const bool check_whitelist { true };
+ utility::add_security_whitelist(policy_elements.at(0), check_whitelist);
+ security->load(policy_elements.at(0), false);
+
+ // Create policy credentials.
+ boost::icl::discrete_interval<uid_t> its_uids(valid_uid, valid_uid);
+ boost::icl::interval_set<gid_t> its_gids;
+ its_gids.insert(boost::icl::interval<gid_t>::closed(valid_gid, valid_gid));
+
+ // Create a policy.
+ std::shared_ptr<vsomeip::policy> policy(std::make_shared<vsomeip::policy>());
+ policy->credentials_ += std::make_pair(its_uids, its_gids);
+ policy->allow_who_ = true;
+ policy->allow_what_ = true;
+
+ for (auto _ : state) {
+ security->is_policy_update_allowed(valid_uid, policy);
+ }
+}
+
+static void BM_is_policy_update_allowed_invalid_uid_no_requests(benchmark::State &state)
+{
+ // Test object.
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Get some configurations.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Load the configuration into the security.
+ const bool check_whitelist { true };
+ utility::add_security_whitelist(policy_elements.at(0), check_whitelist);
+ security->load(policy_elements.at(0), false);
+
+ // Create policy credentials.
+ boost::icl::discrete_interval<uid_t> its_uids(valid_uid, valid_uid);
+ boost::icl::interval_set<gid_t> its_gids;
+ its_gids.insert(boost::icl::interval<gid_t>::closed(valid_gid, valid_gid));
+
+ // Create a policy.
+ std::shared_ptr<vsomeip::policy> policy(std::make_shared<vsomeip::policy>());
+ policy->credentials_ += std::make_pair(its_uids, its_gids);
+ policy->allow_who_ = true;
+ policy->allow_what_ = true;
+
+ for (auto _ : state) {
+ security->is_policy_update_allowed(invalid_uid, policy);
+ }
+}
+
+static void BM_is_policy_update_allowed_valid_uid_valid_requests(benchmark::State &state)
+{
+ // Test object.
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Get some configurations.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Load the configuration into the security.
+ const bool check_whitelist { true };
+ utility::add_security_whitelist(policy_elements.at(0), check_whitelist);
+ security->load(policy_elements.at(0), false);
+
+ // Create policy credentials.
+ boost::icl::discrete_interval<uid_t> its_uids(valid_uid, valid_uid);
+ boost::icl::interval_set<gid_t> its_gids;
+ its_gids.insert(boost::icl::interval<gid_t>::closed(valid_gid, valid_gid));
+
+ // Create a policy.
+ std::shared_ptr<vsomeip::policy> policy(std::make_shared<vsomeip::policy>());
+ policy->credentials_ += std::make_pair(its_uids, its_gids);
+ policy->allow_who_ = true;
+ policy->allow_what_ = true;
+
+ boost::icl::discrete_interval<vsomeip::instance_t> its_instances(0x1, 0x2);
+ boost::icl::interval_set<vsomeip::method_t> its_methods;
+ its_methods.insert(boost::icl::interval<vsomeip::method_t>::closed(0x01, 0x2));
+ boost::icl::interval_map<
+ vsomeip::instance_t,
+ boost::icl::interval_set<vsomeip::method_t>
+ >its_instances_methods;
+ its_instances_methods += std::make_pair(its_instances, its_methods);
+
+ // Add a valid request to the policy.
+ policy->requests_ += std::make_pair(
+ boost::icl::discrete_interval<vsomeip::service_t>(
+ valid_service, valid_service, boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ for (auto _ : state) {
+ security->is_policy_update_allowed(valid_uid, policy);
+ }
+}
+
+static void BM_is_policy_update_allowed_invalid_uid_valid_requests(benchmark::State &state)
+{
+ // Test object.
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Get some configurations.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Load the configuration into the security.
+ const bool check_whitelist { true };
+ utility::add_security_whitelist(policy_elements.at(0), check_whitelist);
+ security->load(policy_elements.at(0), false);
+
+ // Create policy credentials.
+ boost::icl::discrete_interval<uid_t> its_uids(valid_uid, valid_uid);
+ boost::icl::interval_set<gid_t> its_gids;
+ its_gids.insert(boost::icl::interval<gid_t>::closed(valid_gid, valid_gid));
+
+ // Create a policy.
+ std::shared_ptr<vsomeip::policy> policy(std::make_shared<vsomeip::policy>());
+ policy->credentials_ += std::make_pair(its_uids, its_gids);
+ policy->allow_who_ = true;
+ policy->allow_what_ = true;
+
+ boost::icl::discrete_interval<vsomeip::instance_t> its_instances(0x1, 0x2);
+ boost::icl::interval_set<vsomeip::method_t> its_methods;
+ its_methods.insert(boost::icl::interval<vsomeip::method_t>::closed(0x01, 0x2));
+ boost::icl::interval_map<vsomeip::instance_t, boost::icl::interval_set<vsomeip::method_t>>
+ its_instances_methods;
+ its_instances_methods += std::make_pair(its_instances, its_methods);
+
+ // Add a valid request to the policy.
+ policy->requests_ += std::make_pair(
+ boost::icl::discrete_interval<vsomeip::service_t>(
+ valid_service, valid_service, boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ for (auto _ : state) {
+ security->is_policy_update_allowed(invalid_uid, policy);
+ }
+}
+
+static void BM_is_policy_update_allowed_valid_uid_invalid_requests(benchmark::State &state)
+{
+ // Test object.
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Get some configurations.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Load the configuration into the security.
+ const bool check_whitelist { true };
+ utility::add_security_whitelist(policy_elements.at(0), check_whitelist);
+ security->load(policy_elements.at(0), false);
+
+ // Create policy credentials.
+ boost::icl::discrete_interval<uid_t> its_uids(valid_uid, valid_uid);
+ boost::icl::interval_set<gid_t> its_gids;
+ its_gids.insert(boost::icl::interval<gid_t>::closed(valid_gid, valid_gid));
+
+ // Create a policy.
+ std::shared_ptr<vsomeip::policy> policy(std::make_shared<vsomeip::policy>());
+ policy->credentials_ += std::make_pair(its_uids, its_gids);
+ policy->allow_who_ = true;
+ policy->allow_what_ = true;
+
+ boost::icl::discrete_interval<vsomeip::instance_t> its_instances(0x1, 0x2);
+ boost::icl::interval_set<vsomeip::method_t> its_methods;
+ its_methods.insert(boost::icl::interval<vsomeip::method_t>::closed(0x01, 0x2));
+ boost::icl::interval_map<
+ vsomeip::instance_t,
+ boost::icl::interval_set<vsomeip::method_t>
+ >its_instances_methods;
+ its_instances_methods += std::make_pair(its_instances, its_methods);
+
+ // Add a valid request to the policy.
+ policy->requests_ += std::make_pair(
+ boost::icl::discrete_interval<vsomeip::service_t>(
+ invalid_service, invalid_service, boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ for (auto _ : state) {
+ security->is_policy_update_allowed(valid_uid, policy);
+ }
+}
+
+static void BM_is_policy_update_allowed_invalid_uid_invalid_requests(benchmark::State &state)
+{
+ // Test object.
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Get some configurations.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Load the configuration into the security.
+ const bool check_whitelist { true };
+ utility::add_security_whitelist(policy_elements.at(0), check_whitelist);
+ security->load(policy_elements.at(0), false);
+
+ // Create policy credentials.
+ boost::icl::discrete_interval<uid_t> its_uids(valid_uid, valid_uid);
+ boost::icl::interval_set<gid_t> its_gids;
+ its_gids.insert(boost::icl::interval<gid_t>::closed(valid_gid, valid_gid));
+
+ // Create a policy.
+ std::shared_ptr<vsomeip::policy> policy(std::make_shared<vsomeip::policy>());
+ policy->credentials_ += std::make_pair(its_uids, its_gids);
+ policy->allow_who_ = true;
+ policy->allow_what_ = true;
+
+ boost::icl::discrete_interval<vsomeip::instance_t> its_instances(0x1, 0x2);
+ boost::icl::interval_set<vsomeip::method_t> its_methods;
+ its_methods.insert(boost::icl::interval<vsomeip::method_t>::closed(0x01, 0x2));
+ boost::icl::interval_map<
+ vsomeip::instance_t,
+ boost::icl::interval_set<vsomeip::method_t>
+ >its_instances_methods;
+ its_instances_methods += std::make_pair(its_instances, its_methods);
+
+ // Add a valid request to the policy.
+ policy->requests_ += std::make_pair(
+ boost::icl::discrete_interval<vsomeip::service_t>(
+ invalid_service, invalid_service, boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ for (auto _ : state) {
+ security->is_policy_update_allowed(invalid_uid, policy);
+ }
+}
+
+static void BM_is_policy_update_allowed_invalid_uid_ignore_whitelist(benchmark::State &state)
+{
+ // Test object.
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Get some configurations.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Load the configuration into the security.
+ const bool check_whitelist { false };
+ utility::add_security_whitelist(policy_elements.at(0), check_whitelist);
+ security->load(policy_elements.at(0), false);
+
+ // Create policy credentials.
+ boost::icl::discrete_interval<uid_t> its_uids(valid_uid, valid_uid);
+ boost::icl::interval_set<gid_t> its_gids;
+ its_gids.insert(boost::icl::interval<gid_t>::closed(valid_gid, valid_gid));
+
+ // Create a policy.
+ std::shared_ptr<vsomeip::policy> policy(std::make_shared<vsomeip::policy>());
+ policy->credentials_ += std::make_pair(its_uids, its_gids);
+ policy->allow_who_ = true;
+ policy->allow_what_ = true;
+
+ for (auto _ : state) {
+ security->is_policy_update_allowed(invalid_uid, policy);
+ }
+}
+
+static void
+BM_is_policy_update_allowed_valid_uid_invalid_request_ignore_whitelist(benchmark::State &state)
+{
+ // Test object.
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Get some configurations.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Load the configuration into the security.
+ const bool check_whitelist { false };
+ utility::add_security_whitelist(policy_elements.at(0), check_whitelist);
+ security->load(policy_elements.at(0), false);
+
+ // Create policy credentials.
+ boost::icl::discrete_interval<uid_t> its_uids(valid_uid, valid_uid);
+ boost::icl::interval_set<gid_t> its_gids;
+ its_gids.insert(boost::icl::interval<gid_t>::closed(valid_gid, valid_gid));
+
+ // Create a policy.
+ std::shared_ptr<vsomeip::policy> policy(std::make_shared<vsomeip::policy>());
+ policy->credentials_ += std::make_pair(its_uids, its_gids);
+ policy->allow_who_ = true;
+ policy->allow_what_ = true;
+
+ boost::icl::discrete_interval<vsomeip::instance_t> its_instances(0x1, 0x2);
+ boost::icl::interval_set<vsomeip::method_t> its_methods;
+ its_methods.insert(boost::icl::interval<vsomeip::method_t>::closed(0x01, 0x2));
+ boost::icl::interval_map<
+ vsomeip::instance_t,
+ boost::icl::interval_set<vsomeip::method_t>
+ >its_instances_methods;
+ its_instances_methods += std::make_pair(its_instances, its_methods);
+
+ // Add a valid request to the policy.
+ policy->requests_ += std::make_pair(
+ boost::icl::discrete_interval<vsomeip::service_t>(
+ invalid_service, invalid_service, boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ for (auto _ : state) {
+ security->is_policy_update_allowed(valid_uid, policy);
+ }
+}
+
+BENCHMARK(BM_is_policy_update_allowed_valid_uid_no_requests);
+BENCHMARK(BM_is_policy_update_allowed_invalid_uid_no_requests);
+BENCHMARK(BM_is_policy_update_allowed_valid_uid_valid_requests);
+BENCHMARK(BM_is_policy_update_allowed_invalid_uid_valid_requests);
+BENCHMARK(BM_is_policy_update_allowed_valid_uid_invalid_requests);
+BENCHMARK(BM_is_policy_update_allowed_invalid_uid_invalid_requests);
+BENCHMARK(BM_is_policy_update_allowed_invalid_uid_ignore_whitelist);
+BENCHMARK(BM_is_policy_update_allowed_valid_uid_invalid_request_ignore_whitelist);
diff --git a/test/benchmark_tests/security_tests/bm_load_policies.cpp b/test/benchmark_tests/security_tests/bm_load_policies.cpp
new file mode 100644
index 0000000..bfafd7e
--- /dev/null
+++ b/test/benchmark_tests/security_tests/bm_load_policies.cpp
@@ -0,0 +1,98 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <gtest/gtest.h>
+#include "../../common/utility.hpp"
+#include <benchmark/benchmark.h>
+
+namespace {
+std::string configuration_file { "/vsomeip/0_0/vsomeip_security.json" };
+}
+
+// Since this set of tests check a private method, there is the need to indirectly change the
+// parameters used by load_policies, and check its changes using other methods.
+// The remove_security_policy method checks if there is any loaded policy.
+// The is_audit method checks the check_credentials value.
+// No test was created for allow_remote_clients because it was inacessible.
+
+static void BM_load_policies_loaded_policies(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Force load of some policies.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Using load function to indirectly call load_policies.
+ for (auto _ : state) {
+ security->load(policy_elements.at(0));
+ }
+}
+
+static void BM_load_policies_no_policies(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Force load of some policies.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Remove all the policies from the file.
+ policy_elements.at(0).tree_.get_child("security").erase("policies");
+
+ // Using load function to indirectly call load_policies.
+ for (auto _ : state) {
+ security->load(policy_elements.at(0));
+ }
+}
+
+static void BM_load_policies_check_credentials_true(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Force load of some policies without the check credentials value set.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Load the check credentials value as false.
+ bool check_credentials_value {true};
+ policy_elements.at(0).tree_.add<bool>("security.check_credentials", check_credentials_value);
+
+ // Using load function to indirectly call load_policies.
+ for (auto _ : state) {
+ security->load(policy_elements.at(0));
+ }
+}
+
+static void BM_load_policies_check_credentials_false(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Force load of some policies without the check credentials value set.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Load the check credentials value as false.
+ bool check_credentials_value {false};
+ policy_elements.at(0).tree_.add<bool>("security.check_credentials", check_credentials_value);
+
+ // Using load function to indirectly call load_policies.
+ for (auto _ : state) {
+ security->load(policy_elements.at(0));
+ }
+}
+
+BENCHMARK(BM_load_policies_loaded_policies);
+BENCHMARK(BM_load_policies_no_policies);
+BENCHMARK(BM_load_policies_check_credentials_true);
+BENCHMARK(BM_load_policies_check_credentials_false);
diff --git a/test/benchmark_tests/security_tests/bm_load_security_update_whitelist.cpp b/test/benchmark_tests/security_tests/bm_load_security_update_whitelist.cpp
new file mode 100644
index 0000000..9c9a43d
--- /dev/null
+++ b/test/benchmark_tests/security_tests/bm_load_security_update_whitelist.cpp
@@ -0,0 +1,144 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <benchmark/benchmark.h>
+#include "../../common/utility.hpp"
+namespace {
+std::string configuration_file { "/vsomeip/0_0/vsomeip_security.json" };
+}
+
+// Since this set of tests check a private method, there is the need to indirectly change the
+// parameters used by load_security_update_whitelist, and check its changes using other methods.
+// The is_policy_removal_allowed method checks if a selected uid is present in the whitelist.
+// The is_policy_update_allowed method checks if a selected service_id is present in the whitelist.
+
+static void BM_load_security_update_whitelist_check_no_uids_loaded(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Force load of some policies.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ std::vector<vsomeip_v3::uid_t> user_ids;
+
+ std::vector<vsomeip_v3::service_t> services;
+ utility::get_policy_services(policy_elements.at(0), services);
+
+ // Add a security whitelist with an empty list of user uids.
+ utility::add_security_whitelist(policy_elements.at(0), user_ids, services, true);
+
+ // Using load function to indirectly call load_security_update_whitelist.
+ for (auto _ : state) {
+ security->load(policy_elements.at(0));
+ }
+}
+
+static void BM_load_security_update_whitelist_check_uids_loaded(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Force load of some policies.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ std::vector<vsomeip_v3::uid_t> user_ids;
+ utility::get_policy_uids(policy_elements.at(0), user_ids);
+
+ std::vector<vsomeip_v3::service_t> services;
+ utility::get_policy_services(policy_elements.at(0), services);
+
+ // Add a security whitelist with a list of uids loaded
+ utility::add_security_whitelist(policy_elements.at(0), user_ids, services, true);
+
+ // Using load function to indirectly call load_security_update_whitelist.
+ for (auto _ : state) {
+ security->load(policy_elements.at(0));
+ }
+}
+
+static void BM_load_security_update_whitelist_check_no_service_ids_loaded(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Force load of some policies with an empty service id vector.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ std::vector<vsomeip_v3::uid_t> user_ids;
+ utility::get_policy_uids(policy_elements.at(0), user_ids);
+
+ std::vector<vsomeip_v3::service_t> services;
+
+ // Add a security whitelist with an empty list of user uids.
+ utility::add_security_whitelist(policy_elements.at(0), user_ids, services, true);
+
+ // Using load function to indirectly call load_security_update_whitelist.
+ for (auto _ : state) {
+ security->load(policy_elements.at(0));
+ }
+}
+
+static void BM_load_security_update_whitelist_check_service_ids_loaded(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Force load of some policies.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ std::vector<vsomeip_v3::uid_t> user_ids;
+ utility::get_policy_uids(policy_elements.at(0), user_ids);
+
+ std::vector<vsomeip_v3::service_t> services;
+ utility::get_policy_services(policy_elements.at(0), services);
+
+ // Add a security whitelist with list of service ids loaded.
+ utility::add_security_whitelist(policy_elements.at(0), user_ids, services, true);
+
+ // Using load function to indirectly call load_security_update_whitelist.
+ for (auto _ : state) {
+ security->load(policy_elements.at(0));
+ }
+}
+
+static void BM_load_security_update_whitelist_check_whitelist_disabled(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Force load of some policies.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ std::vector<vsomeip_v3::uid_t> user_ids;
+ utility::get_policy_uids(policy_elements.at(0), user_ids);
+
+ std::vector<vsomeip_v3::service_t> services;
+ utility::get_policy_services(policy_elements.at(0), services);
+
+ // Add a security whitelist with check_whitelist disabled
+ utility::add_security_whitelist(policy_elements.at(0), user_ids, services, false);
+
+ // Using load function to indirectly call load_security_update_whitelist.
+ for (auto _ : state) {
+ security->load(policy_elements.at(0));
+ }
+}
+
+BENCHMARK(BM_load_security_update_whitelist_check_no_uids_loaded);
+BENCHMARK(BM_load_security_update_whitelist_check_no_service_ids_loaded);
+BENCHMARK(BM_load_security_update_whitelist_check_uids_loaded);
+BENCHMARK(BM_load_security_update_whitelist_check_service_ids_loaded);
+BENCHMARK(BM_load_security_update_whitelist_check_whitelist_disabled);
diff --git a/test/benchmark_tests/security_tests/bm_remove_client_to_sec_client_mapping.cpp b/test/benchmark_tests/security_tests/bm_remove_client_to_sec_client_mapping.cpp
new file mode 100644
index 0000000..9a529eb
--- /dev/null
+++ b/test/benchmark_tests/security_tests/bm_remove_client_to_sec_client_mapping.cpp
@@ -0,0 +1,52 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <benchmark/benchmark.h>
+
+#include "../../common/utility.hpp"
+
+namespace{
+vsomeip_v3::client_t client = 10;
+vsomeip_v3::uid_t uid = 4003030;
+vsomeip_v3::gid_t gid = 4003032;
+
+std::pair<uint32_t, uint32_t> client_uid_gid{uid, gid};
+}
+
+static void BM_remove_client_to_sec_client_mapping_invalid_values(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client = utility::create_uds_client(uid, gid);
+
+ for (auto _ : state) {
+ security->get_client_to_sec_client_mapping(client, its_sec_client);
+ }
+
+ for (auto _ : state) {
+ security->remove_client_to_sec_client_mapping(client);
+ }
+}
+
+static void BM_remove_client_to_sec_client_mapping_valid_values(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client = utility::create_uds_client(uid, gid);
+
+ security->store_client_to_sec_client_mapping(client, &its_sec_client);
+ security->store_sec_client_to_client_mapping(&its_sec_client, client);
+
+ for (auto _ : state) {
+ security->get_client_to_sec_client_mapping(client, its_sec_client);
+ }
+
+ for (auto _ : state) {
+ security->remove_client_to_sec_client_mapping(client);
+ }
+}
+
+BENCHMARK(BM_remove_client_to_sec_client_mapping_invalid_values);
+BENCHMARK(BM_remove_client_to_sec_client_mapping_valid_values);
diff --git a/test/benchmark_tests/security_tests/bm_remove_security_policy.cpp b/test/benchmark_tests/security_tests/bm_remove_security_policy.cpp
new file mode 100644
index 0000000..c56cfd6
--- /dev/null
+++ b/test/benchmark_tests/security_tests/bm_remove_security_policy.cpp
@@ -0,0 +1,61 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <benchmark/benchmark.h>
+
+#include "../../common/utility.hpp"
+
+namespace
+{
+ vsomeip_v3::uid_t invalid_uid = 1;
+ vsomeip_v3::uid_t valid_uid = 4002200;
+ vsomeip_v3::gid_t invalid_gid = 1;
+ vsomeip_v3::gid_t valid_gid = 4003014;
+}
+
+static void BM_remove_security_policy_policies_not_loaded(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+ for (auto _ : state)
+ security->remove_security_policy(invalid_uid, invalid_gid);
+}
+
+static void BM_remove_security_policy_policies_loaded_invalid_values(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip),
+ policy_elements, its_failed);
+ for (const auto &e : policy_elements) {
+ security->load(e, false);
+ }
+
+ for (auto _ : state)
+ security->remove_security_policy(invalid_uid, invalid_gid);
+}
+
+static void BM_remove_security_policy_policies_loaded_valid_values(benchmark::State &state)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip),
+ policy_elements, its_failed);
+ for (const auto &e : policy_elements) {
+ security->load(e, false);
+ }
+
+ for (auto _ : state)
+ security->remove_security_policy(valid_uid, valid_gid);
+}
+
+BENCHMARK(BM_remove_security_policy_policies_not_loaded);
+BENCHMARK(BM_remove_security_policy_policies_loaded_invalid_values);
+BENCHMARK(BM_remove_security_policy_policies_loaded_valid_values);
diff --git a/test/common/examples_policies/vsomeip/0_0/vsomeip_security.json b/test/common/examples_policies/vsomeip/0_0/vsomeip_security.json
new file mode 100644
index 0000000..ab1b06b
--- /dev/null
+++ b/test/common/examples_policies/vsomeip/0_0/vsomeip_security.json
@@ -0,0 +1,255 @@
+{
+ "security": {
+ "policies": [
+ {
+ "credentials": {
+ "gid": "0",
+ "uid": "0"
+ },
+ "deny": {}
+ },
+ {
+ "deny": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0x40"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "9999",
+ "uid": "9999"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf913"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003015",
+ "uid": "0"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91b"
+ },
+ {
+ "instance": "any",
+ "service": "0xf913"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4002200",
+ "uid": "4002200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf913"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003014",
+ "uid": "4003014"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf913"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003015",
+ "uid": "4003015"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf913"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "5004",
+ "uid": "4003021"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91f"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8c7"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003024",
+ "uid": "4003024"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf913"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003025",
+ "uid": "4003025"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf913"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003026",
+ "uid": "4003026"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91f"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003029",
+ "uid": "4003029"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf913"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003031",
+ "uid": "4003031"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xb025"
+ },
+ {
+ "instance": "any",
+ "service": "0xb024"
+ },
+ {
+ "instance": "any",
+ "service": "0xb021"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4004200",
+ "uid": "4004201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91f"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013201",
+ "uid": "4013201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91f"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013210",
+ "uid": "4013210"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91b"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017205",
+ "uid": "4017205"
+ }
+ },
+ {
+ "credentials": {
+ "allow": [
+ {
+ "gid": [
+ "4002200",
+ "4003014"
+ ],
+ "uid": [
+ "4002200",
+ "4003014"
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+}
diff --git a/test/common/examples_policies/vsomeip/4002200_4002200/vsomeip_security.json b/test/common/examples_policies/vsomeip/4002200_4002200/vsomeip_security.json
new file mode 100644
index 0000000..221d035
--- /dev/null
+++ b/test/common/examples_policies/vsomeip/4002200_4002200/vsomeip_security.json
@@ -0,0 +1,1556 @@
+{
+ "security": {
+ "policies": [
+ {
+ "allow": {
+ "offers": [
+ {
+ "instance": "any",
+ "service": "0xf8a3"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8ac"
+ },
+ {
+ "instance": "any",
+ "service": "0x102d"
+ },
+ {
+ "instance": "any",
+ "service": "0x102e"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a5"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a7"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0x1023"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8aa"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a2"
+ },
+ {
+ "instance": "any",
+ "service": "0x1002"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8ab"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ],
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xfea8"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe8c"
+ },
+ {
+ "instance": "any",
+ "service": "0xf91b"
+ },
+ {
+ "instance": "any",
+ "service": "0x101c"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe9c"
+ },
+ {
+ "instance": "any",
+ "service": "0xb51a"
+ },
+ {
+ "instance": "any",
+ "service": "0xfeaa"
+ },
+ {
+ "instance": "any",
+ "service": "0xb510"
+ },
+ {
+ "instance": "any",
+ "service": "0xfa60"
+ },
+ {
+ "instance": "any",
+ "service": "0xf917"
+ },
+ {
+ "instance": "any",
+ "service": "0xfeac"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe87"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe8a"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe86"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe88"
+ },
+ {
+ "instance": "any",
+ "service": "0xfeab"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe9d"
+ },
+ {
+ "instance": "any",
+ "service": "0xfea3"
+ },
+ {
+ "instance": "any",
+ "service": "0xfea6"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe8e"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe9f"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe92"
+ },
+ {
+ "instance": "any",
+ "service": "0xb519"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe8d"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe83"
+ },
+ {
+ "instance": "any",
+ "service": "0xfeae"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe81"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe98"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe85"
+ },
+ {
+ "instance": "any",
+ "service": "0xfea7"
+ },
+ {
+ "instance": "any",
+ "service": "0xfea1"
+ },
+ {
+ "instance": "any",
+ "service": "0xfead"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe93"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe8b"
+ },
+ {
+ "instance": "any",
+ "service": "0xfea5"
+ },
+ {
+ "instance": "any",
+ "service": "0x1534"
+ },
+ {
+ "instance": "any",
+ "service": "0xfeaf"
+ },
+ {
+ "instance": "any",
+ "service": "0xf912"
+ },
+ {
+ "instance": "any",
+ "service": "0x1506"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe90"
+ },
+ {
+ "instance": "any",
+ "service": "0x101d"
+ },
+ {
+ "instance": "any",
+ "service": "0xfea9"
+ },
+ {
+ "instance": "any",
+ "service": "0xf911"
+ },
+ {
+ "instance": "any",
+ "service": "0x1001"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe9a"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe97"
+ },
+ {
+ "instance": "any",
+ "service": "0x9001"
+ },
+ {
+ "instance": "any",
+ "service": "0xf913"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe9e"
+ },
+ {
+ "instance": "any",
+ "service": "0xb513"
+ },
+ {
+ "instance": "any",
+ "service": "0xfeb0"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe89"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe82"
+ },
+ {
+ "instance": "any",
+ "service": "0x1536"
+ },
+ {
+ "instance": "any",
+ "service": "0x1531"
+ },
+ {
+ "instance": "any",
+ "service": "0xfea4"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe9b"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe99"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe95"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe84"
+ },
+ {
+ "instance": "any",
+ "service": "0xfea2"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe91"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe94"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4002200",
+ "uid": "4002200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "0",
+ "uid": "0"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003015",
+ "uid": "0"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003011",
+ "uid": "4003013"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a2"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003014",
+ "uid": "4003014"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003015",
+ "uid": "4003015"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003025",
+ "uid": "4003025"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003026",
+ "uid": "4003026"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003029",
+ "uid": "4003029"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003031",
+ "uid": "4003031"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a3"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003205",
+ "uid": "4003205"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4004200",
+ "uid": "4004201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4005300",
+ "uid": "4005204"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4006200",
+ "uid": "4006200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4006201",
+ "uid": "4006201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4006202",
+ "uid": "4006202"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4006220",
+ "uid": "4006220"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4006221",
+ "uid": "4006221"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4006241",
+ "uid": "4006241"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4007200",
+ "uid": "4007200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a3"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4007210",
+ "uid": "4007210"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4007211",
+ "uid": "4007211"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4007212",
+ "uid": "4007212"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4008300",
+ "uid": "4008200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4008300",
+ "uid": "4008203"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a3"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4008303",
+ "uid": "4008205"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4008305",
+ "uid": "4008207"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a3"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8aa"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a2"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4010200",
+ "uid": "4010200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a3"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4011201",
+ "uid": "4011201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a3"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4012300",
+ "uid": "4012200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a3"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8ab"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4012300",
+ "uid": "4012201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a3"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4012300",
+ "uid": "4012230"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4012300",
+ "uid": "4012240"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013201",
+ "uid": "4013201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a3"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013202",
+ "uid": "4013202"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "5501",
+ "uid": "4013203"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "5510",
+ "uid": "4013206"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013209",
+ "uid": "4013209"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013213",
+ "uid": "4013213"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013214",
+ "uid": "4013214"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013215",
+ "uid": "4013215"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013217",
+ "uid": "4013217"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013218",
+ "uid": "4013218"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013219",
+ "uid": "4013219"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013223",
+ "uid": "4013223"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013225",
+ "uid": "4013225"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a3"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013229",
+ "uid": "4013229"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "5510",
+ "uid": "4013232"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013233",
+ "uid": "4013233"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013234",
+ "uid": "4013234"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013242",
+ "uid": "4013242"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4014201",
+ "uid": "4014201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a5"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a2"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4014300",
+ "uid": "4014300"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0x102d"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a2"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4014390",
+ "uid": "4014390"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4015210",
+ "uid": "4015210"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "5509",
+ "uid": "4016203"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a3"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "5509",
+ "uid": "4016205"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a2"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017201",
+ "uid": "4017201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017202",
+ "uid": "4017202"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017208",
+ "uid": "4017208"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a2"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017209",
+ "uid": "4017209"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017210",
+ "uid": "4017210"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8ac"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017211",
+ "uid": "4017211"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017215",
+ "uid": "4017215"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017216",
+ "uid": "4017216"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a2"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017219",
+ "uid": "4017219"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a2"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017220",
+ "uid": "4017220"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017221",
+ "uid": "4017221"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4018204",
+ "uid": "4018204"
+ }
+ },
+ {
+ "credentials": {
+ "allow": [
+ {
+ "gid": [
+ "4012300",
+ "4013225",
+ "4003031",
+ "4013201",
+ "4017219",
+ "4013202",
+ "4003014",
+ "4017221",
+ "4017201",
+ "4017211",
+ "4006200",
+ "4013213",
+ "4003026",
+ "4011201",
+ "4006220",
+ "4013218",
+ "4013217",
+ "0",
+ "4014300",
+ "4013215",
+ "4003019",
+ "4013207",
+ "4013211",
+ "4013223",
+ "4008303",
+ "4013220",
+ "4005300",
+ "4003205",
+ "4013219",
+ "4007210",
+ "4003024",
+ "4004200",
+ "4007234",
+ "4006202",
+ "5510",
+ "4013200"
+ ],
+ "uid": [
+ "4013232",
+ "4013225",
+ "4003031",
+ "4012201",
+ "4013201",
+ "4005202",
+ "4017219",
+ "4008205",
+ "4013202",
+ "4003014",
+ "4017221",
+ "4017201",
+ "4004201",
+ "4017211",
+ "4006200",
+ "4013213",
+ "4003026",
+ "4011201",
+ "4006220",
+ "4013218",
+ "4013217",
+ "4013206",
+ "0",
+ "4014300",
+ "4013215",
+ "4003019",
+ "4013207",
+ "4013211",
+ "4013223",
+ "4013220",
+ "4003205",
+ "4013219",
+ "4007210",
+ "4012240",
+ "4003024",
+ "4007234",
+ "4006202",
+ "4013200"
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+} \ No newline at end of file
diff --git a/test/common/examples_policies/vsomeip/4002201_4002201/vsomeip_security.json b/test/common/examples_policies/vsomeip/4002201_4002201/vsomeip_security.json
new file mode 100644
index 0000000..e03049d
--- /dev/null
+++ b/test/common/examples_policies/vsomeip/4002201_4002201/vsomeip_security.json
@@ -0,0 +1,122 @@
+{
+ "security": {
+ "policies": [
+ {
+ "allow": {
+ "offers": [
+ {
+ "instance": "any",
+ "service": "0x1501"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a8"
+ }
+ ],
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ },
+ {
+ "instance": "any",
+ "service": "0x1532"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4002201",
+ "uid": "4002201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a8"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003024",
+ "uid": "4003024"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a8"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4004200",
+ "uid": "4004201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0x1501"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4006202",
+ "uid": "4006202"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a8"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4011201",
+ "uid": "4011201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a8"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "5509",
+ "uid": "4016203"
+ }
+ },
+ {
+ "credentials": {
+ "allow": [
+ {
+ "gid": [
+ "4003014"
+ ],
+ "uid": [
+ "4003014"
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+} \ No newline at end of file
diff --git a/test/common/examples_policies/vsomeip/4002205_4002205/vsomeip_security.json b/test/common/examples_policies/vsomeip/4002205_4002205/vsomeip_security.json
new file mode 100644
index 0000000..9512f8d
--- /dev/null
+++ b/test/common/examples_policies/vsomeip/4002205_4002205/vsomeip_security.json
@@ -0,0 +1,54 @@
+{
+ "security": {
+ "policies": [
+ {
+ "allow": {
+ "offers": [
+ {
+ "instance": "any",
+ "service": "0xf8a6"
+ }
+ ],
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8c1"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4002205",
+ "uid": "4002205"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8a6"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4014300",
+ "uid": "4014300"
+ }
+ },
+ {
+ "credentials": {
+ "allow": [
+ {
+ "gid": [
+ "4003024"
+ ],
+ "uid": [
+ "4003024"
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+} \ No newline at end of file
diff --git a/test/common/examples_policies/vsomeip/4003013_4003011/vsomeip_security.json b/test/common/examples_policies/vsomeip/4003013_4003011/vsomeip_security.json
new file mode 100644
index 0000000..da35eb4
--- /dev/null
+++ b/test/common/examples_policies/vsomeip/4003013_4003011/vsomeip_security.json
@@ -0,0 +1,64 @@
+{
+ "security": {
+ "policies": [
+ {
+ "allow": {
+ "offers": [
+ {
+ "instance": "any",
+ "service": "0xf8d0"
+ }
+ ],
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a1"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003011",
+ "uid": "4003013"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8d0"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003025",
+ "uid": "4003025"
+ }
+ },
+ {
+ "credentials": {
+ "allow": [
+ {
+ "gid": [
+ "4002200",
+ "4003014"
+ ],
+ "uid": [
+ "4002200",
+ "4003014"
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+} \ No newline at end of file
diff --git a/test/common/examples_policies/vsomeip/4003014_4003014/vsomeip_security.json b/test/common/examples_policies/vsomeip/4003014_4003014/vsomeip_security.json
new file mode 100644
index 0000000..0de3d03
--- /dev/null
+++ b/test/common/examples_policies/vsomeip/4003014_4003014/vsomeip_security.json
@@ -0,0 +1,1306 @@
+{
+ "security": {
+ "policies": [
+ {
+ "allow": {
+ "offers": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xb067"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8c4"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe85"
+ },
+ {
+ "instance": "any",
+ "service": "0xb0a7"
+ },
+ {
+ "instance": "any",
+ "service": "0xb0a8"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ }
+ ],
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0x1531"
+ },
+ {
+ "instance": "any",
+ "service": "0xb519"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8c2"
+ },
+ {
+ "instance": "any",
+ "service": "0x1024"
+ },
+ {
+ "instance": "any",
+ "service": "0x1397"
+ },
+ {
+ "instance": "any",
+ "service": "0xb504"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a0"
+ },
+ {
+ "instance": "any",
+ "service": "0xf913"
+ },
+ {
+ "instance": "any",
+ "service": "0xb020"
+ },
+ {
+ "instance": "any",
+ "service": "0xb0a7"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a2"
+ },
+ {
+ "instance": "any",
+ "service": "0xb0a8"
+ },
+ {
+ "instance": "any",
+ "service": "0xf918"
+ },
+ {
+ "instance": "any",
+ "service": "0x1032"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ },
+ {
+ "instance": "any",
+ "service": "0x1533"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003014",
+ "uid": "4003014"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "0",
+ "uid": "0"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8c4"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003015",
+ "uid": "0"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4004200",
+ "uid": "1041"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xfe85"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4002200",
+ "uid": "4002200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4002201",
+ "uid": "4002201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003011",
+ "uid": "4003013"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8c4"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003015",
+ "uid": "4003015"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003019",
+ "uid": "4003019"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003022",
+ "uid": "4003022"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003024",
+ "uid": "4003024"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8c4"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003025",
+ "uid": "4003025"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003026",
+ "uid": "4003026"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003027",
+ "uid": "4003027"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003028",
+ "uid": "4003028"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003031",
+ "uid": "4003031"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003036",
+ "uid": "4003036"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003203",
+ "uid": "4003203"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003205",
+ "uid": "4003205"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003207",
+ "uid": "4003207"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4004200",
+ "uid": "4004201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4006200",
+ "uid": "4006200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4006202",
+ "uid": "4006202"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4006220",
+ "uid": "4006220"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4006221",
+ "uid": "4006221"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4006222",
+ "uid": "4006222"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4006241",
+ "uid": "4006241"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4007200",
+ "uid": "4007200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xb0a7"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4007210",
+ "uid": "4007210"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xb0a7"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4007211",
+ "uid": "4007211"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4007234",
+ "uid": "4007234"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4008300",
+ "uid": "4008202"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4008300",
+ "uid": "4008204"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xb067"
+ },
+ {
+ "instance": "any",
+ "service": "0xb0a7"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4010200",
+ "uid": "4010200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4011201",
+ "uid": "4011201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4012300",
+ "uid": "4012200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4012300",
+ "uid": "4012201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4012300",
+ "uid": "4012202"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4012300",
+ "uid": "4012203"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4012300",
+ "uid": "4012220"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4012300",
+ "uid": "4012230"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4012300",
+ "uid": "4012232"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4012300",
+ "uid": "4012240"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013200",
+ "uid": "4013200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013201",
+ "uid": "4013201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "5510",
+ "uid": "4013206"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013211",
+ "uid": "4013211"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013212",
+ "uid": "4013212"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013213",
+ "uid": "4013213"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013214",
+ "uid": "4013214"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013218",
+ "uid": "4013218"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf902"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013219",
+ "uid": "4013219"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xb067"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013220",
+ "uid": "4013220"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "5510",
+ "uid": "4013232"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4014201",
+ "uid": "4014201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4014300",
+ "uid": "4014300"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4014390",
+ "uid": "4014390"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4015200",
+ "uid": "4015200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4015201",
+ "uid": "4015201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "5509",
+ "uid": "4016203"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "5509",
+ "uid": "4016204"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "5509",
+ "uid": "4016205"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017200",
+ "uid": "4017200"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017201",
+ "uid": "4017201"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017208",
+ "uid": "4017208"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017209",
+ "uid": "4017209"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017210",
+ "uid": "4017210"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017211",
+ "uid": "4017211"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017215",
+ "uid": "4017215"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017216",
+ "uid": "4017216"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf91c"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017218",
+ "uid": "4017218"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017219",
+ "uid": "4017219"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017220",
+ "uid": "4017220"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf901"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4017221",
+ "uid": "4017221"
+ }
+ },
+ {
+ "credentials": {
+ "allow": [
+ {
+ "gid": [
+ "0",
+ "4003016",
+ "4004200",
+ "4013207",
+ "4003015",
+ "4002200",
+ "4013200"
+ ],
+ "uid": [
+ "0",
+ "4003016",
+ "4004201",
+ "4013207",
+ "4003015",
+ "4002200",
+ "4013200"
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+} \ No newline at end of file
diff --git a/test/common/examples_policies/vsomeip/4003015_4003015/vsomeip_security.json b/test/common/examples_policies/vsomeip/4003015_4003015/vsomeip_security.json
new file mode 100644
index 0000000..20f0b47
--- /dev/null
+++ b/test/common/examples_policies/vsomeip/4003015_4003015/vsomeip_security.json
@@ -0,0 +1,82 @@
+{
+ "security": {
+ "policies": [
+ {
+ "allow": {
+ "offers": [
+ {
+ "instance": "any",
+ "service": "0xf918"
+ }
+ ],
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8c4"
+ },
+ {
+ "instance": "any",
+ "service": "0xf90c"
+ },
+ {
+ "instance": "any",
+ "service": "0xf913"
+ },
+ {
+ "instance": "any",
+ "service": "0xf901"
+ },
+ {
+ "instance": "any",
+ "service": "0xf8a4"
+ },
+ {
+ "instance": "any",
+ "service": "0xf902"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003015",
+ "uid": "4003015"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf918"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003014",
+ "uid": "4003014"
+ }
+ },
+ {
+ "credentials": {
+ "allow": [
+ {
+ "gid": [
+ "4003014",
+ "0",
+ "4013207",
+ "4003203",
+ "4002200"
+ ],
+ "uid": [
+ "4003014",
+ "0",
+ "4013207",
+ "4003203",
+ "4002200"
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+} \ No newline at end of file
diff --git a/test/common/examples_policies/vsomeip/4003016_4003016/vsomeip_security.json b/test/common/examples_policies/vsomeip/4003016_4003016/vsomeip_security.json
new file mode 100644
index 0000000..eedb124
--- /dev/null
+++ b/test/common/examples_policies/vsomeip/4003016_4003016/vsomeip_security.json
@@ -0,0 +1,63 @@
+{
+ "security": {
+ "policies": [
+ {
+ "allow": {
+ "offers": [
+ {
+ "instance": "any",
+ "service": "0xf8c2"
+ }
+ ],
+ "requests": []
+ },
+ "credentials": {
+ "gid": "4003016",
+ "uid": "4003016"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8c2"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4003014",
+ "uid": "4003014"
+ }
+ },
+ {
+ "allow": {
+ "requests": [
+ {
+ "instance": "any",
+ "service": "0xf8c2"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "4013202",
+ "uid": "4013202"
+ }
+ },
+ {
+ "deny": {
+ "offers": [
+ {
+ "instance": "any",
+ "service": "0x40"
+ }
+ ]
+ },
+ "credentials": {
+ "gid": "9000",
+ "uid": "9000"
+ }
+ }
+ ]
+ }
+}
diff --git a/test/common/examples_policies/vsomeip/vsomeip_policy_extensions.json b/test/common/examples_policies/vsomeip/vsomeip_policy_extensions.json
new file mode 100644
index 0000000..5199326
--- /dev/null
+++ b/test/common/examples_policies/vsomeip/vsomeip_policy_extensions.json
@@ -0,0 +1 @@
+{"container_policy_extensions": [{"container": "android-rse", "path": "../vsomeip_ext/android"}, {"container": "android-idc", "path": "../vsomeip_ext/android"}, {"container": "android-idc-base", "path": "../vsomeip_ext/android"}]}
diff --git a/test/common/examples_policies/vsomeip/vsomeip_security.json b/test/common/examples_policies/vsomeip/vsomeip_security.json
new file mode 100644
index 0000000..d278ea8
--- /dev/null
+++ b/test/common/examples_policies/vsomeip/vsomeip_security.json
@@ -0,0 +1,25 @@
+{
+ "routing-credentials": {
+ "gid": "5002",
+ "uid": "4003017"
+ },
+ "security": {
+ "check_credentials": "true",
+ "policies": [
+ {
+ "allow": {},
+ "credentials": {
+ "gid": "5002",
+ "uid": "4003017"
+ }
+ },
+ {
+ "credentials": {
+ "gid": "0",
+ "uid": "0"
+ },
+ "deny": {}
+ }
+ ]
+ }
+}
diff --git a/test/common/utility.cpp b/test/common/utility.cpp
new file mode 100644
index 0000000..478deeb
--- /dev/null
+++ b/test/common/utility.cpp
@@ -0,0 +1,235 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include "utility.hpp"
+
+void
+utility::load_policy_data(std::string _input,
+ std::vector<vsomeip_v3::configuration_element> &_elements,
+ std::set<std::string> &_failed) {
+
+ boost::property_tree::ptree its_tree;
+ try {
+ boost::property_tree::json_parser::read_json(_input, its_tree);
+ _elements.push_back({ _input, its_tree });
+ }
+ catch (boost::property_tree::json_parser_error &e) {
+ _failed.insert(_input);
+ }
+}
+
+void
+utility::read_data(const std::set<std::string> &_input,
+ std::vector<vsomeip_v3::configuration_element> &_elements,
+ std::set<std::string> &_failed) {
+
+ for (auto i : _input) {
+ if (vsomeip_v3::utility::is_file(i)) {
+ load_policy_data(i, _elements, _failed);
+ } else if (vsomeip_v3::utility::is_folder(i)) {
+ std::map<std::string, bool> its_names;
+ boost::filesystem::path its_path(i);
+ for (auto j = boost::filesystem::directory_iterator(its_path);
+ j != boost::filesystem::directory_iterator();
+ j++) {
+ std::string name = j->path().string() + "/vsomeip_security.json";
+ if (vsomeip_v3::utility::is_file(name))
+ its_names[name] = true;
+ }
+
+ for (const auto& n : its_names)
+ load_policy_data(n.first, _elements, _failed);
+ }
+ }
+}
+
+std::set<std::string>
+utility::get_all_files_in_dir(const std::string &_dir_path,
+ const std::vector<std::string> &_dir_skip_list) {
+
+ // Create a vector of string
+ std::set<std::string> list_of_files;
+ try {
+ // Check if given path exists and points to a directory
+ if (boost::filesystem::exists(_dir_path)
+ && boost::filesystem::is_directory(_dir_path)) {
+ // Create a Recursive Directory Iterator object and points to the
+ // starting of directory
+ boost::filesystem::recursive_directory_iterator iter(_dir_path);
+ // Create a Recursive Directory Iterator object pointing to end.
+ boost::filesystem::recursive_directory_iterator end;
+ // Iterate till end
+ while (iter != end) {
+ // Check if current entry is a directory and if exists in
+ // skip list
+ if (boost::filesystem::is_directory(iter->path())
+ && (std::find(_dir_skip_list.begin(),
+ _dir_skip_list.end(), iter->path().filename())
+ != _dir_skip_list.end())) {
+ // Boost Filesystem API to skip current directory iteration
+#if VSOMEIP_BOOST_VERSION < 108100
+ iter.no_push();
+#else
+ iter.disable_recursion_pending();
+#endif
+ } else {
+ // Add the name in vector
+ list_of_files.insert(iter->path().string());
+ }
+ boost::system::error_code ec;
+ // Increment the iterator to point to next entry in recursive iteration
+ iter.increment(ec);
+ if (ec) {
+ std::cerr << "Error While Accessing : " << iter->path().string() << " :: " << ec.message() << '\n';
+ }
+ }
+ }
+ }
+ catch (std::system_error & e) {
+ std::cerr << "Exception :: " << e.what();
+ }
+ return list_of_files;
+}
+
+std::string
+utility::get_policies_path() {
+
+ return boost::filesystem::canonical(
+ boost::filesystem::current_path()).string()
+ + "/../test/common/examples_policies";
+}
+
+vsomeip_sec_client_t
+utility::create_uds_client(uid_t user, gid_t group) {
+ vsomeip_sec_client_t result;
+ result.client_type = VSOMEIP_CLIENT_UDS;
+ result.client.uds_client = { user, group };
+ return result;
+}
+
+void
+utility::force_check_credentials(
+ std::vector<vsomeip_v3::configuration_element> &_policy_elements,
+ std::string _value) {
+
+ for(auto &i : _policy_elements) {
+ try {
+ boost::property_tree::ptree &security
+ = i.tree_.get_child("security");
+ boost::property_tree::ptree &credentials
+ = security.get_child("check_credentials");
+ if (credentials.get_value<std::string>().compare(_value)) {
+ security.erase("check_credentials");
+ credentials.put("check_credentials", _value);
+ }
+ }
+ catch(...) {}
+ }
+ }
+
+void utility::get_policy_uids(vsomeip_v3::configuration_element &_policy_element,
+ std::vector<vsomeip_v3::uid_t> &_out_uids)
+{
+ try {
+ std::vector<std::string> user_ids;
+ auto policy_tree = _policy_element.tree_.get_child("security.policies");
+ for (auto policy_node : policy_tree) {
+ auto optional_credential_node =
+ policy_node.second.get_child_optional("credentials.uid");
+ if (optional_credential_node) {
+ auto optional_user_id =
+ optional_credential_node.get().get_value_optional<std::string>();
+ if (optional_user_id) {
+ user_ids.push_back(optional_user_id.get());
+ }
+ }
+ }
+ for (const std::string &uid_string : user_ids) {
+ _out_uids.push_back((vsomeip_v3::uid_t)std::strtoul(uid_string.c_str(), NULL, 0));
+ }
+ } catch (...) {
+ std::cerr << "Caught exception while reading user ids in policy element \""
+ << _policy_element.name_ << "\"!" << std::endl;
+ }
+}
+
+void utility::get_policy_services(vsomeip_v3::configuration_element &_policy_element,
+ std::vector<vsomeip_v3::service_t> &_out_services)
+{
+ try {
+ std::vector<std::string> services;
+ auto policy_tree = _policy_element.tree_.get_child("security.policies");
+ for (auto policy_node : policy_tree) {
+ // Get allowed request services.
+ auto allow_requests = policy_node.second.get_child_optional("allow.requests");
+ if (allow_requests) {
+ for (auto &request_node : allow_requests.get()) {
+ auto optional_service = request_node.second.get_child("service")
+ .get_value_optional<std::string>();
+ if (optional_service) {
+ services.push_back(optional_service.get());
+ }
+ }
+ }
+ // Get denied request services.
+ auto deny_requests = policy_node.second.get_child_optional("deny.requests");
+ if (deny_requests) {
+ for (auto &request_node : deny_requests.get()) {
+ auto optional_service = request_node.second.get_child("service")
+ .get_value_optional<std::string>();
+ if (optional_service) {
+ services.push_back(optional_service.get());
+ }
+ }
+ }
+ }
+ for (const std::string &service_str : services) {
+ _out_services.push_back(
+ (vsomeip_v3::service_t)std::strtoul(service_str.c_str(), NULL, 0));
+ }
+ } catch (...) {
+ std::cerr << "Caught exception while reading services in policy element \""
+ << _policy_element.name_ << "\"!" << std::endl;
+ }
+}
+
+void utility::add_security_whitelist(vsomeip_v3::configuration_element &_policy_element,
+ const bool _check_whitelist)
+{
+ std::vector<vsomeip_v3::uid_t> user_ids;
+ get_policy_uids(_policy_element, user_ids);
+
+ std::vector<vsomeip_v3::service_t> services;
+ get_policy_services(_policy_element, services);
+
+ add_security_whitelist(_policy_element, user_ids, services, _check_whitelist);
+}
+
+void utility::add_security_whitelist(vsomeip_v3::configuration_element &_policy_element,
+ const std::vector<vsomeip_v3::uid_t> &_user_ids,
+ const std::vector<vsomeip_v3::service_t> &_services,
+ const bool _check_whitelist)
+{
+ // Add the user ids to the whitelist.
+ boost::property_tree::ptree id_array_node;
+ for (auto user_id : _user_ids) {
+ boost::property_tree::ptree id_node;
+ id_node.put("", user_id);
+ id_array_node.push_back(std::make_pair("", id_node));
+ }
+ _policy_element.tree_.add_child("security-update-whitelist.uids", id_array_node);
+
+ // Add the services to the whitelist.
+ boost::property_tree::ptree service_array_node;
+ for (auto service : _services) {
+ boost::property_tree::ptree service_node;
+ service_node.put("", service);
+ service_array_node.push_back(std::make_pair("", service_node));
+ }
+ _policy_element.tree_.add_child("security-update-whitelist.services", service_array_node);
+
+ // Update the 'check_whitelist' flag.
+ _policy_element.tree_.add<bool>("security-update-whitelist.check-whitelist", _check_whitelist);
+}
diff --git a/test/common/utility.hpp b/test/common/utility.hpp
new file mode 100644
index 0000000..b4f1100
--- /dev/null
+++ b/test/common/utility.hpp
@@ -0,0 +1,77 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <vsomeip/vsomeip.hpp>
+#include "../../implementation/security/include/policy_manager_impl.hpp"
+#include "../../implementation/configuration/include/configuration_impl.hpp"
+#include "../../implementation/utility/include/utility.hpp"
+
+// This is needed to silence internal warnings in boost, when e.g. including <boost/property_tree/json_parser.hpp>
+#define BOOST_BIND_GLOBAL_PLACEHOLDERS
+
+#include <boost/filesystem.hpp>
+#include <boost/property_tree/ptree.hpp>
+#include <boost/property_tree/json_parser.hpp>
+
+#include <iostream>
+
+class utility {
+public:
+ static void load_policy_data(std::string _input,
+ std::vector<vsomeip_v3::configuration_element> &_elements,
+ std::set<std::string> &_failed);
+
+ static void read_data(const std::set<std::string> &_input,
+ std::vector<vsomeip_v3::configuration_element> &_elements, std::set<std::string> &_failed);
+
+ static std::set<std::string> get_all_files_in_dir(const std::string &_dir_path,
+ const std::vector<std::string> &_dir_skip_list);
+
+ static std::string get_policies_path();
+
+ static vsomeip_sec_client_t create_uds_client(uid_t user, gid_t group);
+
+ static void force_check_credentials(std::vector<vsomeip_v3::configuration_element> &_policy_elements, std::string _value);
+ /**
+ * @brief Get all of the user ids in the given policy element.
+ *
+ * @param _policy_element
+ * @param _out_uids
+ */
+ static void get_policy_uids(vsomeip_v3::configuration_element &_policy_element,
+ std::vector<vsomeip_v3::uid_t> &_out_uids);
+
+ /**
+ * @brief Get all of the services in the given policy element.
+ *
+ * @param _policy_element
+ * @param _out_services
+ */
+ static void get_policy_services(vsomeip_v3::configuration_element &_policy_element,
+ std::vector<vsomeip_v3::service_t> &_out_services);
+
+ /**
+ * @brief Add a security whitelist to the given policy element. Uses all user ids and
+ * services mentioned in the policy.
+ *
+ * @param _policy_element
+ * @param _check_whitelist
+ */
+ static void add_security_whitelist(vsomeip_v3::configuration_element &_policy_element,
+ const bool _check_whitelist);
+
+ /**
+ * @brief Add a security whitelist with the given ids and services to the policy element.
+ *
+ * @param _policy_element
+ * @param _user_ids
+ * @param _services
+ * @param _check_whitelist
+ */
+ static void add_security_whitelist(vsomeip_v3::configuration_element &_policy_element,
+ const std::vector<vsomeip_v3::uid_t> &_user_ids,
+ const std::vector<vsomeip_v3::service_t> &_services,
+ const bool _check_whitelist);
+};
diff --git a/test/internal_routing_disabled_acceptance_test/CMakeLists.txt b/test/internal_routing_disabled_acceptance_test/CMakeLists.txt
new file mode 100644
index 0000000..c823350
--- /dev/null
+++ b/test/internal_routing_disabled_acceptance_test/CMakeLists.txt
@@ -0,0 +1,37 @@
+cmake_minimum_required(VERSION 3.4...3.22)
+
+# Workaround for version range in cmake_minimum_required() before 3.12
+if(${CMAKE_VERSION} VERSION_LESS 3.12)
+ cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
+endif()
+
+project(internal_routing_disabled_acceptance_test LANGUAGES CXX)
+
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_INIT} -pedantic -Wall -Wconversion -Wextra")
+set(CMAKE_CXX_STANDARD 17)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+set(CMAKE_CXX_EXTENSIONS OFF)
+set(THREADS_PREFER_PTHREAD_FLAG ON)
+
+find_package(Threads REQUIRED)
+find_package(Boost 1.55 COMPONENTS system REQUIRED)
+
+add_executable(${PROJECT_NAME} applet.cpp client.cpp server.cpp main.cpp)
+target_include_directories(${PROJECT_NAME} PRIVATE ${gtest_SOURCE_DIR}/include)
+target_link_libraries(${PROJECT_NAME} PRIVATE gtest Threads::Threads vsomeip3 ${Boost_LIBRARIES})
+
+enable_testing()
+add_test(NAME ${PROJECT_NAME} COMMAND $<TARGET_FILE:${PROJECT_NAME}>)
+add_dependencies(build_network_tests ${PROJECT_NAME})
+configure_file(vsomeip.json vsomeip.json COPYONLY)
+set_property(
+ TEST ${PROJECT_NAME}
+ APPEND PROPERTY ENVIRONMENT
+ "LD_LIBRARY_PATH=$<TARGET_FILE_DIR:vsomeip3>"
+ "VSOMEIP_CONFIGURATION=${CMAKE_CURRENT_BINARY_DIR}/vsomeip.json"
+)
+set_property(
+ TEST ${PROJECT_NAME}
+ APPEND PROPERTY TIMEOUT
+ 60
+)
diff --git a/test/internal_routing_disabled_acceptance_test/applet.cpp b/test/internal_routing_disabled_acceptance_test/applet.cpp
new file mode 100644
index 0000000..50bf41c
--- /dev/null
+++ b/test/internal_routing_disabled_acceptance_test/applet.cpp
@@ -0,0 +1,44 @@
+#include "applet.hpp"
+
+#include <stdexcept>
+#include <string>
+
+#include <vsomeip/enumeration_types.hpp>
+#include <vsomeip/runtime.hpp>
+
+applet::applet(std::string_view name) : application{vsomeip_v3::runtime::get()->create_application(std::string{name})}
+{
+ if(!this->application->init())
+ {
+ using namespace std::string_literals;
+ throw std::runtime_error{__func__ + "(): vSomeIP application init failure"s};
+ }
+
+ this->async_start = std::async(
+ std::launch::async,
+ &vsomeip_v3::application::start,
+ this->application
+ );
+
+ this->application->register_state_handler(
+ [this](vsomeip_v3::state_type_e state){
+ switch(state)
+ {
+ case vsomeip_v3::state_type_e::ST_REGISTERED:
+ return this->on_state_registered();
+ case vsomeip_v3::state_type_e::ST_DEREGISTERED:
+ return this->on_state_deregistered();
+ }
+ }
+ );
+}
+
+applet::~applet()
+{
+ this->application->clear_all_handler();
+ this->application->stop();
+ this->async_start.wait();
+}
+
+void applet::on_state_registered() {}
+void applet::on_state_deregistered() {}
diff --git a/test/internal_routing_disabled_acceptance_test/applet.hpp b/test/internal_routing_disabled_acceptance_test/applet.hpp
new file mode 100644
index 0000000..d536dc0
--- /dev/null
+++ b/test/internal_routing_disabled_acceptance_test/applet.hpp
@@ -0,0 +1,22 @@
+#pragma once
+
+#include <future>
+#include <memory>
+#include <string_view>
+
+#include <vsomeip/application.hpp>
+
+struct applet
+{
+protected:
+ std::shared_ptr<vsomeip_v3::application> application;
+
+ applet(std::string_view name);
+ virtual ~applet();
+
+private:
+ std::future<void> async_start;
+
+ virtual void on_state_registered();
+ virtual void on_state_deregistered();
+};
diff --git a/test/internal_routing_disabled_acceptance_test/client.cpp b/test/internal_routing_disabled_acceptance_test/client.cpp
new file mode 100644
index 0000000..ff7be78
--- /dev/null
+++ b/test/internal_routing_disabled_acceptance_test/client.cpp
@@ -0,0 +1,152 @@
+#include "client.hpp"
+
+#include <chrono>
+#include <iostream>
+#include <thread>
+
+#include <vsomeip/constants.hpp>
+#include <vsomeip/enumeration_types.hpp>
+#include <vsomeip/message.hpp>
+#include <vsomeip/payload.hpp>
+#include <vsomeip/primitive_types.hpp>
+#include <vsomeip/runtime.hpp>
+
+#include "config.hpp"
+
+client::client() : applet{"client"}, counter_event_received{}, counter_method_request{}, counter_method_response{}
+{
+ this->application->register_message_handler(
+ config::SERVICE_ID,
+ config::INSTANCE_ID,
+ vsomeip_v3::ANY_METHOD,
+ [this](const std::shared_ptr<vsomeip_v3::message>& message){
+ std::shared_ptr runtime = vsomeip_v3::runtime::get();
+ std::shared_ptr payload = message->get_payload();
+
+ switch(message->get_message_type())
+ {
+ case vsomeip_v3::message_type_e::MT_RESPONSE:
+ std::cout
+ << "received:\n"
+ << "\tservice: " << std::hex << message->get_service() << '\n'
+ << "\tinstance: " << std::hex << message->get_instance() << '\n'
+ << "\tmethod: " << std::hex << message->get_method() << '\n'
+ << "\tpayload: " << payload->get_data() << '\n';
+ this->counter_method_response++;
+ break;
+
+ case vsomeip_v3::message_type_e::MT_NOTIFICATION:
+ std::cout << "GOT NOTIFICATION\n";
+ this->counter_event_received++;
+ [[fallthrough]];
+
+ default:
+ std::cout << "unhandled message type: " << unsigned(message->get_message_type()) << '\n';
+ }
+ }
+ );
+
+ this->application->register_availability_handler(
+ config::SERVICE_ID,
+ config::INSTANCE_ID,
+ [this](vsomeip_v3::service_t service, vsomeip_v3::instance_t instance, bool available){
+ std::cout
+ << __func__ << '('
+ << std::hex << service << ", "
+ << std::hex << instance << ", "
+ << std::boolalpha << available << ")\n";
+
+ if(service != config::SERVICE_ID)
+ return;
+ if(instance != config::INSTANCE_ID)
+ return;
+ if(!available)
+ return;
+
+ std::shared_ptr runtime = vsomeip_v3::runtime::get();
+
+ std::shared_ptr payload = runtime->create_payload();
+ constexpr vsomeip_v3::byte_t str[]{"hello world"};
+ payload->set_data(str, sizeof(str));
+
+ std::shared_ptr request = runtime->create_request();
+ request->set_service(config::SERVICE_ID);
+ request->set_instance(config::INSTANCE_ID);
+ request->set_method(config::METHOD_ID);
+ request->set_payload(payload);
+
+ for(int i = 0; i < 10; i++)
+ {
+ std::cout << "sending: " << str << '\n';
+ this->application->send(request);
+ this->counter_method_request++;
+
+ using namespace std::chrono_literals;
+ std::this_thread::sleep_for(1s);
+ }
+ }
+ );
+
+ this->application->request_event(
+ config::SERVICE_ID,
+ config::INSTANCE_ID,
+ config::EVENT_ID,
+ {config::EVENTGROUP_ID},
+ vsomeip_v3::event_type_e::ET_FIELD,
+ vsomeip_v3::reliability_type_e::RT_UNRELIABLE
+ );
+
+ this->application->subscribe(
+ config::SERVICE_ID,
+ config::INSTANCE_ID,
+ config::EVENTGROUP_ID
+ );
+}
+
+client::~client()
+{
+ this->application->unsubscribe(
+ config::SERVICE_ID,
+ config::INSTANCE_ID,
+ config::EVENTGROUP_ID
+ );
+
+ this->application->release_event(
+ config::SERVICE_ID,
+ config::INSTANCE_ID,
+ config::EVENT_ID
+ );
+
+ this->application->release_service(
+ config::SERVICE_ID,
+ config::INSTANCE_ID
+ );
+}
+
+std::size_t client::get_event_count() noexcept
+{
+ return this->counter_event_received;
+}
+
+std::size_t client::get_method_request_count() noexcept
+{
+ return this->counter_method_request;
+}
+
+std::size_t client::get_method_response_count() noexcept
+{
+ return this->counter_method_response;
+}
+
+void client::on_state_registered()
+{
+ this->application->request_service(
+ config::SERVICE_ID,
+ config::INSTANCE_ID
+ );
+}
+
+void client::on_state_deregistered()
+{
+ std::cout << "Client is deregistered!!! Probably could not be registered!!!\n";
+}
diff --git a/test/internal_routing_disabled_acceptance_test/client.hpp b/test/internal_routing_disabled_acceptance_test/client.hpp
new file mode 100644
index 0000000..f6eba65
--- /dev/null
+++ b/test/internal_routing_disabled_acceptance_test/client.hpp
@@ -0,0 +1,24 @@
+#pragma once
+
+#include <atomic>
+#include <cstddef>
+
+#include "applet.hpp"
+
+struct client final : applet
+{
+ client();
+ ~client();
+
+ std::size_t get_event_count() noexcept;
+ std::size_t get_method_request_count() noexcept;
+ std::size_t get_method_response_count() noexcept;
+
+private:
+ void on_state_registered() override;
+ void on_state_deregistered() override;
+
+ std::atomic_size_t counter_event_received;
+ std::atomic_size_t counter_method_request;
+ std::atomic_size_t counter_method_response;
+};
diff --git a/test/internal_routing_disabled_acceptance_test/config.hpp b/test/internal_routing_disabled_acceptance_test/config.hpp
new file mode 100644
index 0000000..50dab14
--- /dev/null
+++ b/test/internal_routing_disabled_acceptance_test/config.hpp
@@ -0,0 +1,12 @@
+#pragma once
+
+#include <vsomeip/primitive_types.hpp>
+
+namespace config
+{
+ constexpr vsomeip_v3::service_t SERVICE_ID = 0x2222;
+ constexpr vsomeip_v3::instance_t INSTANCE_ID = 0x3333;
+ constexpr vsomeip_v3::method_t METHOD_ID = 0x4444;
+ constexpr vsomeip_v3::event_t EVENT_ID = 0x5555;
+ constexpr vsomeip_v3::eventgroup_t EVENTGROUP_ID = 0x6666;
+}
diff --git a/test/internal_routing_disabled_acceptance_test/main.cpp b/test/internal_routing_disabled_acceptance_test/main.cpp
new file mode 100644
index 0000000..7a2e7fc
--- /dev/null
+++ b/test/internal_routing_disabled_acceptance_test/main.cpp
@@ -0,0 +1,43 @@
+#include <chrono>
+#include <iostream>
+#include <thread>
+
+#include <gtest/gtest.h>
+
+#include "client.hpp"
+#include "server.hpp"
+
+TEST(internal_routing_disabled_acceptance_test, check_connectivity)
+{
+ server s;
+ client c;
+
+ using namespace std::chrono_literals;
+ std::this_thread::sleep_for(15s);
+
+ std::cout
+ << "[server]\n"
+ << "\tevents: " << s.get_event_count() << '\n'
+ << "\tmethod requests: " << s.get_method_request_count() << '\n'
+ << "\tmethod responses: " << s.get_method_response_count() << '\n';
+
+ std::cout
+ << "[client]\n"
+ << "\tevents: " << c.get_event_count() << '\n'
+ << "\tmethod requests: " << c.get_method_request_count() << '\n'
+ << "\tmethod responses: " << c.get_method_response_count() << '\n';
+
+ EXPECT_EQ(s.get_event_count(), 10);
+ EXPECT_EQ(s.get_method_request_count(), 0);
+ EXPECT_EQ(s.get_method_response_count(), 0);
+
+ EXPECT_EQ(c.get_event_count(), 0);
+ EXPECT_EQ(c.get_method_request_count(), 0);
+ EXPECT_EQ(c.get_method_response_count(), 0);
+}
+
+int main(int count, char** values)
+{
+ testing::InitGoogleTest(&count, values);
+ return RUN_ALL_TESTS();
+}
diff --git a/test/internal_routing_disabled_acceptance_test/server.cpp b/test/internal_routing_disabled_acceptance_test/server.cpp
new file mode 100644
index 0000000..6e00b1e
--- /dev/null
+++ b/test/internal_routing_disabled_acceptance_test/server.cpp
@@ -0,0 +1,132 @@
+#include "server.hpp"
+
+#include <chrono>
+#include <iostream>
+#include <thread>
+
+#include <vsomeip/enumeration_types.hpp>
+#include <vsomeip/message.hpp>
+#include <vsomeip/payload.hpp>
+#include <vsomeip/runtime.hpp>
+
+#include "config.hpp"
+
+server::server() : applet{"server"}, counter_event_sent{}, counter_method_request{}, counter_method_response{}
+{
+ this->application->register_message_handler(
+ config::SERVICE_ID,
+ config::INSTANCE_ID,
+ config::METHOD_ID,
+ [this](const std::shared_ptr<vsomeip_v3::message>& message){
+ std::shared_ptr runtime = vsomeip_v3::runtime::get();
+ std::shared_ptr payload = message->get_payload();
+
+ switch(message->get_message_type())
+ {
+ case vsomeip_v3::message_type_e::MT_REQUEST:
+ std::cout << "GOT REQUEST\n";
+ this->counter_method_request++;
+ {
+ std::shared_ptr response = runtime->create_response(message);
+ response->set_payload(payload);
+
+ this->application->send(response);
+ this->counter_method_response++;
+
+ this->application->notify(
+ config::SERVICE_ID,
+ config::INSTANCE_ID,
+ config::EVENT_ID,
+ payload,
+ true
+ );
+ this->counter_event_sent++;
+ }
+ break;
+
+ default:
+ std::cout << "unhandled message type: " << unsigned(message->get_message_type()) << '\n';
+ }
+ }
+ );
+
+ this->application->offer_event(
+ config::SERVICE_ID,
+ config::INSTANCE_ID,
+ config::EVENT_ID,
+ {config::EVENTGROUP_ID},
+ vsomeip_v3::event_type_e::ET_FIELD,
+ {},
+ false,
+ true,
+ nullptr,
+ vsomeip_v3::reliability_type_e::RT_UNRELIABLE
+ );
+
+ std::thread{
+ [this]{
+ using namespace std::chrono_literals;
+ std::this_thread::sleep_for(1s);
+
+ std::shared_ptr runtime = vsomeip_v3::runtime::get();
+ std::shared_ptr payload = runtime->create_payload();
+ for(int i = 0; i < 10; i++)
+ {
+ int j = i | 0x30;
+ payload->set_data(reinterpret_cast<vsomeip_v3::byte_t*>(&j), sizeof(j));
+ this->application->notify(
+ config::SERVICE_ID,
+ config::INSTANCE_ID,
+ config::EVENT_ID,
+ payload,
+ true
+ );
+ this->counter_event_sent++;
+
+ std::this_thread::sleep_for(1s);
+ }
+ }
+ }.detach();
+}
+
+server::~server()
+{
+ this->application->stop_offer_event(
+ config::SERVICE_ID,
+ config::INSTANCE_ID,
+ config::EVENT_ID
+ );
+
+ this->application->stop_offer_service(
+ config::SERVICE_ID,
+ config::INSTANCE_ID
+ );
+}
+
+std::size_t server::get_event_count() noexcept
+{
+ return this->counter_event_sent;
+}
+
+std::size_t server::get_method_request_count() noexcept
+{
+ return this->counter_method_request;
+}
+
+std::size_t server::get_method_response_count() noexcept
+{
+ return this->counter_method_response;
+}
+
+void server::on_state_registered()
+{
+ this->application->offer_service(
+ config::SERVICE_ID,
+ config::INSTANCE_ID
+ );
+}
+
+void server::on_state_deregistered()
+{
+ std::cout << "Server is deregistered!!! Probably could not be registered!!!\n";
+}
diff --git a/test/internal_routing_disabled_acceptance_test/server.hpp b/test/internal_routing_disabled_acceptance_test/server.hpp
new file mode 100644
index 0000000..53685f3
--- /dev/null
+++ b/test/internal_routing_disabled_acceptance_test/server.hpp
@@ -0,0 +1,24 @@
+#pragma once
+
+#include <atomic>
+#include <cstddef>
+
+#include "applet.hpp"
+
+struct server final : applet
+{
+ server();
+ ~server();
+
+ std::size_t get_event_count() noexcept;
+ std::size_t get_method_request_count() noexcept;
+ std::size_t get_method_response_count() noexcept;
+
+private:
+ void on_state_registered() override;
+ void on_state_deregistered() override;
+
+ std::atomic_size_t counter_event_sent;
+ std::atomic_size_t counter_method_request;
+ std::atomic_size_t counter_method_response;
+};
diff --git a/test/internal_routing_disabled_acceptance_test/vsomeip.json b/test/internal_routing_disabled_acceptance_test/vsomeip.json
new file mode 100644
index 0000000..f8ec145
--- /dev/null
+++ b/test/internal_routing_disabled_acceptance_test/vsomeip.json
@@ -0,0 +1,35 @@
+{
+ "logging": {
+ "level": "trace",
+ "console": "true"
+ },
+ "applications": [
+ {
+ "name": "server",
+ "id": "0x1001"
+ },
+ {
+ "name": "client",
+ "id": "0x1002"
+ }
+ ],
+ "services": [
+ {
+ "service": "0x2222",
+ "instance": "0x3333",
+ "unreliable": 12345
+ }
+ ],
+ "routing": {
+ "enabled": "false",
+ "host": "server",
+ "address": "127.0.0.1",
+ "port": 1270
+ },
+ "service-discovery": {
+ "enable": "true",
+ "multicast": "224.244.224.244",
+ "port": 2240,
+ "protocol": "udp"
+ }
+}
diff --git a/test/network_tests/CMakeLists.txt b/test/network_tests/CMakeLists.txt
new file mode 100644
index 0000000..6a14860
--- /dev/null
+++ b/test/network_tests/CMakeLists.txt
@@ -0,0 +1,4391 @@
+# Copyright (C) 2015-2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+set (VSOMEIP_NAME vsomeip3)
+
+# Add the gtest header files to the include files
+include_directories(
+ .
+ ${gtest_SOURCE_DIR}/include
+)
+
+set(TEST_LINK_LIBRARIES gtest)
+
+set(NETWORK_TEST_BIN_DIR ${PROJECT_BINARY_DIR}/test/network_tests)
+set(NETWORK_TEST_SRC_DIR ${PROJECT_SOURCE_DIR}/test/network_tests)
+
+# Function to copy files into the build directory (or anywhere else)
+# On unixoid systems this function will create symlinks instead
+# SOURCE_PATH: Path to the file which should be copied
+# DESTINATION_PATH: destination file
+# TARGET_TO_DEPEND: The copying of the file will be added as
+# a dependency to this target
+function(copy_to_builddir SOURCE_PATH DESTINATION_PATH TARGET_TO_DEPEND)
+ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows" OR NOT ${TEST_SYMLINK_CONFIG_FILES})
+ ADD_CUSTOM_COMMAND(
+ OUTPUT "${DESTINATION_PATH}"
+ COMMAND ${CMAKE_COMMAND} -E copy "${SOURCE_PATH}" "${DESTINATION_PATH}"
+ DEPENDS "${SOURCE_PATH}"
+ COMMENT "Copying \"${SOURCE_PATH}\" into build directory"
+ )
+ else()
+ if(${TEST_SYMLINK_CONFIG_FILES_RELATIVE})
+ ADD_CUSTOM_COMMAND(
+ OUTPUT "${DESTINATION_PATH}"
+ # Create a relative link
+ COMMAND ln -s -r "${SOURCE_PATH}" "${DESTINATION_PATH}"
+ DEPENDS "${SOURCE_PATH}"
+ COMMENT "Symlinking \"${SOURCE_PATH}\" into build directory"
+ )
+ else()
+ ADD_CUSTOM_COMMAND(
+ OUTPUT "${DESTINATION_PATH}"
+ # Create an absolute link
+ COMMAND ${CMAKE_COMMAND} -E create_symlink "${SOURCE_PATH}" "${DESTINATION_PATH}"
+ DEPENDS "${SOURCE_PATH}"
+ COMMENT "Symlinking \"${SOURCE_PATH}\" into build directory"
+ )
+ endif()
+ endif()
+ # Add a random number to the end of the string to avoid problems with
+ # duplicate filenames
+ set(FILENAME "")
+ get_filename_component(FILENAME ${SOURCE_PATH} NAME )
+ string(RANDOM LENGTH 4 ALPHABET 0123456789 RANDOMNUMBER)
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
+ ADD_CUSTOM_TARGET(copy_${FILENAME}_${RANDOMNUMBER}
+ DEPENDS "${DESTINATION_PATH}"
+ )
+ ADD_DEPENDENCIES(${TARGET_TO_DEPEND} copy_${FILENAME}_${RANDOMNUMBER})
+ else()
+ ADD_CUSTOM_TARGET(symlink_${FILENAME}_${RANDOMNUMBER}
+ DEPENDS "${DESTINATION_PATH}"
+ )
+ ADD_DEPENDENCIES(${TARGET_TO_DEPEND} symlink_${FILENAME}_${RANDOMNUMBER})
+ endif()
+endfunction()
+
+##############################################################################
+# configuration-test
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_CONFIGURATION configuration-test)
+
+ add_executable(${TEST_CONFIGURATION}
+ configuration_tests/configuration-test.cpp
+ ${PROJECT_SOURCE_DIR}/implementation/plugin/src/plugin_manager_impl.cpp
+ ${PROJECT_SOURCE_DIR}/test/common/utility.cpp
+ )
+ target_link_libraries(${TEST_CONFIGURATION}
+ ${VSOMEIP_NAME}
+ ${VSOMEIP_NAME}-cfg
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # The following will make sure that ${TEST_CONFIGURATION_CONFIG_FILE} is copied
+ # from the config folder into the test folder in the builddirectory
+ # This makes it possible to call the configuration test within the build directory
+ set(TEST_CONFIGURATION_CONFIG_FILE configuration-test.json)
+ set(TEST_CONFIGURATION_DEPRECATED_CONFIG_FILE configuration-test-deprecated.json)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/configuration_tests/${TEST_CONFIGURATION_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CONFIGURATION_CONFIG_FILE}
+ ${TEST_CONFIGURATION}
+ )
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/configuration_tests/${TEST_CONFIGURATION_DEPRECATED_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CONFIGURATION_DEPRECATED_CONFIG_FILE}
+ ${TEST_CONFIGURATION}
+ )
+endif()
+##############################################################################
+# application test
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_APPLICATION application_test)
+
+ add_executable(${TEST_APPLICATION} application_tests/${TEST_APPLICATION}.cpp)
+ target_link_libraries(${TEST_APPLICATION}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_APPLICATION_SINGLE_PROCESS_NAME ${TEST_APPLICATION}_single_process)
+ add_executable(${TEST_APPLICATION_SINGLE_PROCESS_NAME} application_tests/${TEST_APPLICATION_SINGLE_PROCESS_NAME}.cpp)
+ target_link_libraries(${TEST_APPLICATION_SINGLE_PROCESS_NAME}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_APPLICATION_AVAILABILITY_NAME ${TEST_APPLICATION}_availability)
+ add_executable(${TEST_APPLICATION_AVAILABILITY_NAME} application_tests/${TEST_APPLICATION_AVAILABILITY_NAME}.cpp)
+ target_link_libraries(${TEST_APPLICATION_AVAILABILITY_NAME}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_APPLICATION_SINGLE_PROCESS_CONFIGURATION_FILE ${TEST_APPLICATION}_single_process.json)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/application_tests/${TEST_APPLICATION_SINGLE_PROCESS_CONFIGURATION_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_APPLICATION_SINGLE_PROCESS_CONFIGURATION_FILE}
+ ${TEST_APPLICATION}_single_process
+ )
+
+ set(TEST_APPLICATION_CONFIGURATION_FILE ${TEST_APPLICATION}.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/application_tests/conf/${TEST_APPLICATION_CONFIGURATION_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/application_tests/${TEST_APPLICATION_CONFIGURATION_FILE}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/application_tests/${TEST_APPLICATION_CONFIGURATION_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_APPLICATION_CONFIGURATION_FILE}
+ ${TEST_APPLICATION}
+ )
+
+ set(TEST_APPLICATION_CONFIGURATION_FILE_DAEMON ${TEST_APPLICATION}_daemon.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/application_tests/conf/${TEST_APPLICATION_CONFIGURATION_FILE_DAEMON}.in
+ ${NETWORK_TEST_SRC_DIR}/application_tests/${TEST_APPLICATION_CONFIGURATION_FILE_DAEMON}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/application_tests/${TEST_APPLICATION_CONFIGURATION_FILE_DAEMON}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_APPLICATION_CONFIGURATION_FILE_DAEMON}
+ ${TEST_APPLICATION}
+ )
+
+ set(TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE ${TEST_APPLICATION}_no_dispatch_threads.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/application_tests/conf/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/application_tests/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/application_tests/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE}
+ ${TEST_APPLICATION}
+ )
+
+ set(TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE_DAEMON ${TEST_APPLICATION}_no_dispatch_threads_daemon.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/application_tests/conf/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE_DAEMON}.in
+ ${NETWORK_TEST_SRC_DIR}/application_tests/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE_DAEMON}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/application_tests/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE_DAEMON}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_APPLICATION_NO_DISPATCH_CONFIGURATION_FILE_DAEMON}
+ ${TEST_APPLICATION}
+ )
+
+ set(TEST_APPLICATION_STARTER ${TEST_APPLICATION}_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/application_tests/${TEST_APPLICATION_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_APPLICATION_STARTER}
+ ${TEST_APPLICATION}
+ )
+
+ set(TEST_APPLICATION_SINGLE_PROCESS_STARTER ${TEST_APPLICATION}_single_process_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/application_tests/${TEST_APPLICATION_SINGLE_PROCESS_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_APPLICATION_SINGLE_PROCESS_STARTER}
+ ${TEST_APPLICATION}_single_process
+ )
+
+ set(TEST_APPLICATION_AVAILABILITY_STARTER ${TEST_APPLICATION_AVAILABILITY_NAME}_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/application_tests/${TEST_APPLICATION_AVAILABILITY_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_APPLICATION_AVAILABILITY_STARTER}
+ ${TEST_APPLICATION_SINGLE_PROCESS_NAME}
+ )
+endif()
+##############################################################################
+# magic-cookies-test-client
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_MAGIC_COOKIES_NAME magic_cookies_test)
+
+ set(TEST_MAGIC_COOKIES_CLIENT ${TEST_MAGIC_COOKIES_NAME}_client)
+ add_executable(${TEST_MAGIC_COOKIES_CLIENT} magic_cookies_tests/${TEST_MAGIC_COOKIES_CLIENT}.cpp)
+ target_link_libraries(${TEST_MAGIC_COOKIES_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${CMAKE_THREAD_LIBS_INIT}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_MAGIC_COOKIES_SERVICE ${TEST_MAGIC_COOKIES_NAME}_service)
+ add_executable(${TEST_MAGIC_COOKIES_SERVICE} magic_cookies_tests/${TEST_MAGIC_COOKIES_SERVICE}.cpp)
+ target_link_libraries(${TEST_MAGIC_COOKIES_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${CMAKE_THREAD_LIBS_INIT}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for client into $BUILDDIR/test
+ set(TEST_MAGIC_COOKIES_CLIENT_CONFIG_FILE ${TEST_MAGIC_COOKIES_CLIENT}.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/magic_cookies_tests/conf/${TEST_MAGIC_COOKIES_CLIENT_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/magic_cookies_tests/${TEST_MAGIC_COOKIES_CLIENT_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/magic_cookies_tests/${TEST_MAGIC_COOKIES_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_MAGIC_COOKIES_CLIENT_CONFIG_FILE}
+ ${TEST_MAGIC_COOKIES_CLIENT}
+ )
+
+ # Copy bashscript to start client into $BUILDDIR/test
+ set(TEST_MAGIC_COOKIES_CLIENT_START_SCRIPT ${TEST_MAGIC_COOKIES_CLIENT}_start.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/magic_cookies_tests/${TEST_MAGIC_COOKIES_CLIENT_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_MAGIC_COOKIES_CLIENT_START_SCRIPT}
+ ${TEST_MAGIC_COOKIES_CLIENT}
+ )
+
+ set(TEST_MAGIC_COOKIES_SERVICE magic_cookies_test_service)
+ # Copy config file for service into $BUILDDIR/test
+ set(TEST_MAGIC_COOKIES_SERVICE_CONFIG_FILE ${TEST_MAGIC_COOKIES_SERVICE}.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/magic_cookies_tests/conf/${TEST_MAGIC_COOKIES_SERVICE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/magic_cookies_tests/${TEST_MAGIC_COOKIES_SERVICE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/magic_cookies_tests/${TEST_MAGIC_COOKIES_SERVICE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_MAGIC_COOKIES_SERVICE_CONFIG_FILE}
+ ${TEST_MAGIC_COOKIES_SERVICE}
+ )
+
+ # Copy bashscript to start service into $BUILDDIR/test
+ set(TEST_MAGIC_COOKIES_SERVICE_START_SCRIPT ${TEST_MAGIC_COOKIES_SERVICE}_start.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/magic_cookies_tests/${TEST_MAGIC_COOKIES_SERVICE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_MAGIC_COOKIES_SERVICE_START_SCRIPT}
+ ${TEST_MAGIC_COOKIES_CLIENT}
+ )
+
+ # Copy bashscript to start client and server $BUILDDIR/test
+ set(TEST_MAGIC_COOKIES_STARTER ${TEST_MAGIC_COOKIES_NAME}_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/magic_cookies_tests/${TEST_MAGIC_COOKIES_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_MAGIC_COOKIES_STARTER}
+ ${TEST_MAGIC_COOKIES_CLIENT}
+ )
+endif()
+##############################################################################
+# someip-header-factory-test
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_HEADER_FACTORY_NAME header_factory_test)
+
+ set(TEST_HEADER_FACTORY header_factory_test)
+ add_executable(${TEST_HEADER_FACTORY} header_factory_tests/header_factory_test.cpp)
+ target_link_libraries(${TEST_HEADER_FACTORY}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${CMAKE_THREAD_LIBS_INIT}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ ##############################################################################
+ # Now comes the second part of the header factory test which consists of ouf
+ # a client and a service both with settings file and bash scripts to start them
+ set(TEST_HEADER_FACTORY_CLIENT header_factory_test_client)
+ add_executable(${TEST_HEADER_FACTORY_CLIENT} header_factory_tests/${TEST_HEADER_FACTORY_CLIENT}.cpp)
+ target_link_libraries(${TEST_HEADER_FACTORY_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${CMAKE_THREAD_LIBS_INIT}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for client into $BUILDDIR/test
+ set(TEST_HEADER_FACTORY_CLIENT_CONFIG_FILE ${TEST_HEADER_FACTORY_CLIENT}.json)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/header_factory_tests/${TEST_HEADER_FACTORY_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_HEADER_FACTORY_CLIENT_CONFIG_FILE}
+ ${TEST_HEADER_FACTORY_CLIENT}
+ )
+
+ # Copy bashscript to start client into $BUILDDIR/test
+ set(TEST_HEADER_FACTORY_CLIENT_START_SCRIPT ${TEST_HEADER_FACTORY_CLIENT}_start.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/header_factory_tests/${TEST_HEADER_FACTORY_CLIENT_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_HEADER_FACTORY_CLIENT_START_SCRIPT}
+ ${TEST_HEADER_FACTORY_CLIENT}
+ )
+
+ set(TEST_HEADER_FACTORY_SERVICE header_factory_test_service)
+ add_executable(${TEST_HEADER_FACTORY_SERVICE} header_factory_tests/${TEST_HEADER_FACTORY_SERVICE}.cpp)
+ target_link_libraries(${TEST_HEADER_FACTORY_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${CMAKE_THREAD_LIBS_INIT}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for service into $BUILDDIR/test
+ set(TEST_HEADER_FACTORY_SERVICE_CONFIG_FILE ${TEST_HEADER_FACTORY_SERVICE}.json)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/header_factory_tests/${TEST_HEADER_FACTORY_SERVICE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_HEADER_FACTORY_SERVICE_CONFIG_FILE}
+ ${TEST_HEADER_FACTORY_SERVICE}
+ )
+
+ # Copy bashscript to start service into $BUILDDIR/test
+ set(TEST_HEADER_FACTORY_SERVICE_START_SCRIPT ${TEST_HEADER_FACTORY_SERVICE}_start.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/header_factory_tests/${TEST_HEADER_FACTORY_SERVICE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_HEADER_FACTORY_SERVICE_START_SCRIPT}
+ ${TEST_HEADER_FACTORY_SERVICE}
+ )
+
+ # Copy bashscript to start client and server $BUILDDIR/test
+ set(TEST_HEADER_FACTORY_STARTER header_factory_test_send_receive_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/header_factory_tests/${TEST_HEADER_FACTORY_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_HEADER_FACTORY_STARTER}
+ ${TEST_HEADER_FACTORY_CLIENT}
+ )
+endif()
+##############################################################################
+# routing-test
+##############################################################################
+
+if(NOT ${TESTS_BAT})
+ set(TEST_LOCAL_ROUTING_NAME local_routing_test)
+
+ set(TEST_LOCAL_ROUTING_SERVICE local_routing_test_service)
+ add_executable(${TEST_LOCAL_ROUTING_SERVICE} routing_tests/${TEST_LOCAL_ROUTING_SERVICE}.cpp)
+ target_link_libraries(${TEST_LOCAL_ROUTING_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for service into $BUILDDIR/test
+ set(TEST_LOCAL_ROUTING_SERVICE_CONFIG_FILE ${TEST_LOCAL_ROUTING_SERVICE}.json)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_LOCAL_ROUTING_SERVICE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_ROUTING_SERVICE_CONFIG_FILE}
+ ${TEST_LOCAL_ROUTING_SERVICE}
+ )
+
+ # Copy bashscript to start service into $BUILDDIR/test
+ set(TEST_LOCAL_ROUTING_SERVICE_START_SCRIPT ${TEST_LOCAL_ROUTING_SERVICE}_start.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_LOCAL_ROUTING_SERVICE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_ROUTING_SERVICE_START_SCRIPT}
+ ${TEST_LOCAL_ROUTING_SERVICE}
+ )
+
+ set(TEST_LOCAL_ROUTING_CLIENT local_routing_test_client)
+ add_executable(${TEST_LOCAL_ROUTING_CLIENT} routing_tests/${TEST_LOCAL_ROUTING_CLIENT}.cpp)
+ target_link_libraries(${TEST_LOCAL_ROUTING_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for client into $BUILDDIR/test
+ set(TEST_LOCAL_ROUTING_CLIENT_CONFIG_FILE ${TEST_LOCAL_ROUTING_CLIENT}.json)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_LOCAL_ROUTING_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_ROUTING_CLIENT_CONFIG_FILE}
+ ${TEST_LOCAL_ROUTING_CLIENT}
+ )
+
+ # Copy bashscript to start client into $BUILDDIR/test
+ set(TEST_LOCAL_ROUTING_CLIENT_START_SCRIPT ${TEST_LOCAL_ROUTING_CLIENT}_start.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_LOCAL_ROUTING_CLIENT_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_ROUTING_CLIENT_START_SCRIPT}
+ ${TEST_LOCAL_ROUTING_CLIENT}
+ )
+
+ # Copy bashscript to start client and server $BUILDDIR/test
+ set(TEST_LOCAL_ROUTING_STARTER local_routing_test_starter.sh)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/routing_tests/conf/${TEST_LOCAL_ROUTING_STARTER}.in
+ ${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_LOCAL_ROUTING_STARTER}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_LOCAL_ROUTING_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_ROUTING_STARTER}
+ ${TEST_LOCAL_ROUTING_CLIENT}
+ )
+
+ ##############################################################################
+ set(TEST_EXTERNAL_LOCAL_ROUTING_NAME external_local_routing_test)
+ set(TEST_EXTERNAL_LOCAL_ROUTING_SERVICE external_local_routing_test_service)
+ add_executable(${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE} routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}.cpp)
+ target_link_libraries(${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for service into $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_CONFIG_FILE ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/routing_tests/conf/${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_CONFIG_FILE}
+ ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}
+ )
+
+ # Copy bashscript to start service into $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_START_SCRIPT ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE_START_SCRIPT}
+ ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}
+ )
+
+ # Copy bashscript to start external client into $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_ROUTING_CLIENT external_local_routing_test_client_external)
+ set(TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_START_SCRIPT ${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT}_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_START_SCRIPT}
+ ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}
+ )
+
+ # Copy config file for client into $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_CONFIG_FILE ${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT}.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/routing_tests/conf/${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_ROUTING_CLIENT_CONFIG_FILE}
+ ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}
+ )
+
+ # Copy bashscript to start client and server $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_ROUTING_STARTER external_local_routing_test_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_EXTERNAL_LOCAL_ROUTING_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_ROUTING_STARTER}
+ ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE}
+ )
+else()
+ set(TEST_LOCAL_ROUTING_NAME local_routing_test)
+
+ set(TEST_LOCAL_ROUTING_SERVICE local_routing_test_service)
+ add_executable(${TEST_LOCAL_ROUTING_SERVICE} routing_tests/${TEST_LOCAL_ROUTING_SERVICE}.cpp)
+ target_link_libraries(${TEST_LOCAL_ROUTING_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for service into $BUILDDIR/test
+ set(TEST_LOCAL_ROUTING_SERVICE_CONFIG_FILE ${TEST_LOCAL_ROUTING_SERVICE}.json)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_LOCAL_ROUTING_SERVICE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_ROUTING_SERVICE_CONFIG_FILE}
+ ${TEST_LOCAL_ROUTING_SERVICE}
+ )
+
+ # Copy bashscript to start service into $BUILDDIR/test
+ set(TEST_LOCAL_ROUTING_SERVICE_START_SCRIPT ${TEST_LOCAL_ROUTING_SERVICE}_start.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_LOCAL_ROUTING_SERVICE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_ROUTING_SERVICE_START_SCRIPT}
+ ${TEST_LOCAL_ROUTING_SERVICE}
+ )
+
+ set(TEST_LOCAL_ROUTING_CLIENT local_routing_test_client)
+ add_executable(${TEST_LOCAL_ROUTING_CLIENT} routing_tests/${TEST_LOCAL_ROUTING_CLIENT}.cpp)
+ target_link_libraries(${TEST_LOCAL_ROUTING_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for client into $BUILDDIR/test
+ set(TEST_LOCAL_ROUTING_CLIENT_CONFIG_FILE ${TEST_LOCAL_ROUTING_CLIENT}.json)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_LOCAL_ROUTING_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_ROUTING_CLIENT_CONFIG_FILE}
+ ${TEST_LOCAL_ROUTING_CLIENT}
+ )
+
+ # Copy bashscript to start client into $BUILDDIR/test
+ set(TEST_LOCAL_ROUTING_CLIENT_START_SCRIPT ${TEST_LOCAL_ROUTING_CLIENT}_start.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_LOCAL_ROUTING_CLIENT_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_ROUTING_CLIENT_START_SCRIPT}
+ ${TEST_LOCAL_ROUTING_CLIENT}
+ )
+
+ # Copy bashscript to start client and server $BUILDDIR/test
+ set(TEST_LOCAL_ROUTING_STARTER local_routing_test_starter.sh)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/routing_tests/conf/${TEST_LOCAL_ROUTING_STARTER}.bat.in
+ ${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_LOCAL_ROUTING_STARTER}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/routing_tests/${TEST_LOCAL_ROUTING_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_ROUTING_STARTER}
+ ${TEST_LOCAL_ROUTING_CLIENT}
+ )
+endif()
+##############################################################################
+# restart_routing-test
+##############################################################################
+
+if(NOT ${TESTS_BAT})
+ set(TEST_RESTART_ROUTING_NAME restart_routing_test)
+
+ set(TEST_RESTART_ROUTING_SERVICE restart_routing_test_service)
+ add_executable(${TEST_RESTART_ROUTING_SERVICE} restart_routing_tests/${TEST_RESTART_ROUTING_SERVICE}.cpp)
+ target_link_libraries(${TEST_RESTART_ROUTING_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for service into $BUILDDIR/test
+ set(TEST_RESTART_ROUTING_SERVICE_CONFIG_FILE ${TEST_RESTART_ROUTING_SERVICE}.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/restart_routing_tests/${TEST_RESTART_ROUTING_SERVICE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_RESTART_ROUTING_SERVICE_CONFIG_FILE}
+ ${TEST_RESTART_ROUTING_SERVICE}
+ )
+
+ # Copy bashscript to start service into $BUILDDIR/test
+ set(TEST_RESTART_ROUTING_SERVICE_START_SCRIPT ${TEST_RESTART_ROUTING_SERVICE}_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/restart_routing_tests/${TEST_RESTART_ROUTING_SERVICE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_RESTART_ROUTING_SERVICE_START_SCRIPT}
+ ${TEST_RESTART_ROUTING_SERVICE}
+ )
+
+ set(TEST_RESTART_ROUTING_CLIENT restart_routing_test_client)
+ add_executable(${TEST_RESTART_ROUTING_CLIENT}
+ restart_routing_tests/${TEST_RESTART_ROUTING_CLIENT}.cpp
+ )
+ target_link_libraries(${TEST_RESTART_ROUTING_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for client into $BUILDDIR/test
+ set(TEST_RESTART_ROUTING_CLIENT_CONFIG_FILE ${TEST_RESTART_ROUTING_CLIENT}.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/restart_routing_tests/${TEST_RESTART_ROUTING_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_RESTART_ROUTING_CLIENT_CONFIG_FILE}
+ ${TEST_RESTART_ROUTING_CLIENT}
+ )
+
+ # Copy bashscript to start client into $BUILDDIR/test
+ set(TEST_RESTART_ROUTING_CLIENT_START_SCRIPT ${TEST_RESTART_ROUTING_CLIENT}_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/restart_routing_tests/${TEST_RESTART_ROUTING_CLIENT_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_RESTART_ROUTING_CLIENT_START_SCRIPT}
+ ${TEST_RESTART_ROUTING_CLIENT}
+ )
+
+ # Copy bashscript to start client and server $BUILDDIR/test
+ set(TEST_RESTART_ROUTING_STARTER restart_routing_test_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/restart_routing_tests/${TEST_RESTART_ROUTING_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_RESTART_ROUTING_STARTER}
+ ${TEST_RESTART_ROUTING_CLIENT}
+ )
+
+ # Copy config file for autoconfig into $BUILDDIR/test
+ set(TEST_RESTART_ROUTING_AUTO_CONFIG_FILE ${TEST_RESTART_ROUTING_NAME}_autoconfig.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/restart_routing_tests/${TEST_RESTART_ROUTING_AUTO_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_RESTART_ROUTING_AUTO_CONFIG_FILE}
+ ${TEST_RESTART_ROUTING_CLIENT}
+ )
+endif()
+
+##############################################################################
+# security test
+##############################################################################
+
+if (${TEST_SECURITY})
+ if(NOT ${TESTS_BAT})
+ set(TEST_SECURITY_NAME security_test)
+ set(TEST_SECURITY_SERVICE security_test_service)
+ set(TEST_SECURITY_CLIENT security_test_client)
+
+ add_executable(${TEST_SECURITY_SERVICE} security_tests/${TEST_SECURITY_SERVICE}.cpp)
+ target_link_libraries(${TEST_SECURITY_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for service into $BUILDDIR/test
+ set(TEST_SECURITY_LOCAL_CONFIG_FILE ${TEST_SECURITY_NAME}_local_config.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/security_tests/conf/${TEST_SECURITY_LOCAL_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/security_tests/${TEST_SECURITY_LOCAL_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/security_tests/${TEST_SECURITY_LOCAL_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SECURITY_LOCAL_CONFIG_FILE}
+ ${TEST_SECURITY_SERVICE}
+ )
+
+ # Copy service config file for external allow tests into $BUILDDIR/test
+ set(TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL ${TEST_SECURITY_NAME}_config_service_external_allow.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/security_tests/conf/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL}.in
+ ${NETWORK_TEST_SRC_DIR}/security_tests/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/security_tests/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL}
+ ${TEST_SECURITY_SERVICE}
+ )
+
+ # Copy client config file for external allow tests into $BUILDDIR/test
+ set(TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL ${TEST_SECURITY_NAME}_config_client_external_allow.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/security_tests/conf/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL}.in
+ ${NETWORK_TEST_SRC_DIR}/security_tests/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/security_tests/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL}
+ ${TEST_SECURITY_SERVICE}
+ )
+
+ # Copy service config file for external deny tests into $BUILDDIR/test
+ set(TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL_DENY ${TEST_SECURITY_NAME}_config_service_external_deny.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/security_tests/conf/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL_DENY}.in
+ ${NETWORK_TEST_SRC_DIR}/security_tests/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL_DENY}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/security_tests/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL_DENY}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SECURITY_SERVICE_CONFIG_FILE_EXTERNAL_DENY}
+ ${TEST_SECURITY_SERVICE}
+ )
+
+ # Copy client config file for external deny tests into $BUILDDIR/test
+ set(TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL_DENY ${TEST_SECURITY_NAME}_config_client_external_deny.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/security_tests/conf/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL_DENY}.in
+ ${NETWORK_TEST_SRC_DIR}/security_tests/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL_DENY}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/security_tests/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL_DENY}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SECURITY_CLIENT_CONFIG_FILE_EXTERNAL_DENY}
+ ${TEST_SECURITY_SERVICE}
+ )
+
+ # Copy bashscript to start local test into $BUILDDIR/test
+ set(TEST_SECURITY_SERVICE_LOCAL_START_SCRIPT ${TEST_SECURITY_NAME}_local_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/security_tests/${TEST_SECURITY_SERVICE_LOCAL_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SECURITY_SERVICE_LOCAL_START_SCRIPT}
+ ${TEST_SECURITY_SERVICE}
+ )
+
+ # Copy bashscript to start external tests (master) into $BUILDDIR/test
+ set(TEST_SECURITY_EXTERNAL_MASTER_START_SCRIPT ${TEST_SECURITY_NAME}_external_master_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/security_tests/${TEST_SECURITY_EXTERNAL_MASTER_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SECURITY_EXTERNAL_MASTER_START_SCRIPT}
+ ${TEST_SECURITY_SERVICE}
+ )
+
+ # Copy bashscript to start external tests (slave) into $BUILDDIR/test
+ set(TEST_SECURITY_EXTERNAL_SLAVE_START_SCRIPT ${TEST_SECURITY_NAME}_external_slave_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/security_tests/${TEST_SECURITY_EXTERNAL_SLAVE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SECURITY_EXTERNAL_SLAVE_START_SCRIPT}
+ ${TEST_SECURITY_SERVICE}
+ )
+
+ add_executable(${TEST_SECURITY_CLIENT}
+ security_tests/${TEST_SECURITY_CLIENT}.cpp
+ )
+ target_link_libraries(${TEST_SECURITY_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+ endif()
+endif()
+
+##############################################################################
+# payload-test
+##############################################################################
+
+if(NOT ${TESTS_BAT})
+ set(TEST_LOCAL_PAYLOAD_NAME local_payload_test)
+
+ set(TEST_PAYLOAD_SERVICE payload_test_service)
+ add_executable(${TEST_PAYLOAD_SERVICE} payload_tests/${TEST_PAYLOAD_SERVICE}.cpp)
+ target_link_libraries(${TEST_PAYLOAD_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for service into $BUILDDIR/test
+ set(TEST_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE local_${TEST_PAYLOAD_SERVICE}.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE}
+ ${TEST_PAYLOAD_SERVICE}
+ )
+
+ # Copy bashscript to start service into $BUILDDIR/test
+ set(TEST_LOCAL_PAYLOAD_SERVICE_START_SCRIPT local_${TEST_PAYLOAD_SERVICE}_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_LOCAL_PAYLOAD_SERVICE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_PAYLOAD_SERVICE_START_SCRIPT}
+ ${TEST_PAYLOAD_SERVICE}
+ )
+
+ set(TEST_PAYLOAD_CLIENT payload_test_client)
+ add_executable(${TEST_PAYLOAD_CLIENT}
+ payload_tests/${TEST_PAYLOAD_CLIENT}.cpp
+ payload_tests/stopwatch.cpp
+ )
+ target_link_libraries(${TEST_PAYLOAD_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for client into $BUILDDIR/test
+ set(TEST_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE local_${TEST_PAYLOAD_CLIENT}.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE}
+ ${TEST_PAYLOAD_CLIENT}
+ )
+
+ # Copy bashscript to start client into $BUILDDIR/test
+ set(TEST_LOCAL_PAYLOAD_CLIENT_START_SCRIPT local_${TEST_PAYLOAD_CLIENT}_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_LOCAL_PAYLOAD_CLIENT_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_PAYLOAD_CLIENT_START_SCRIPT}
+ ${TEST_PAYLOAD_CLIENT}
+ )
+
+ # Copy bashscript to start client and server $BUILDDIR/test
+ set(TEST_LOCAL_PAYLOAD_STARTER local_payload_test_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_LOCAL_PAYLOAD_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_PAYLOAD_STARTER}
+ ${TEST_PAYLOAD_CLIENT}
+ )
+
+ ##############################################################################
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_NAME external_local_payload_test)
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE external_local_payload_test_service)
+
+ # Copy config file for service into $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE ${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE}.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/conf/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CONFIG_FILE}
+ ${TEST_PAYLOAD_SERVICE}
+ )
+
+ # Copy bashscript to start service into $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_START_SCRIPT ${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE}_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_START_SCRIPT}
+ ${TEST_PAYLOAD_SERVICE}
+ )
+
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL external_local_payload_test_client_local)
+
+ # Copy config file for client into $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL}.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/conf/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_CONFIG_FILE}
+ ${TEST_PAYLOAD_CLIENT}
+ )
+
+ # Copy bashscript to start client into $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_START_SCRIPT ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL}_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_START_SCRIPT}
+ ${TEST_PAYLOAD_CLIENT}
+ )
+
+ # Copy bashscript to start client and server $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_NAME external_local_payload_test_client_local)
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_STARTER ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_NAME}_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_STARTER}
+ ${TEST_PAYLOAD_CLIENT}
+ )
+ ##############################################################################
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_NAME external_local_payload_test_client_external)
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL external_local_payload_test_client_external)
+
+ # Copy config file for client into $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_CONFIG_FILE ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL}.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/conf/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_CONFIG_FILE}
+ ${TEST_PAYLOAD_CLIENT}
+ )
+
+ # Copy bashscript to start client into $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_START_SCRIPT ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL}_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_START_SCRIPT}
+ ${TEST_PAYLOAD_CLIENT}
+ )
+
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CLIENT_EXTERNAL external_local_payload_test_service_client_external)
+
+ # Copy bashscript to start service into $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CLIENTT_EXTERNAL_START_SCRIPT ${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CLIENT_EXTERNAL}_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CLIENTT_EXTERNAL_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_PAYLOAD_SERVICE_CLIENTT_EXTERNAL_START_SCRIPT}
+ ${TEST_PAYLOAD_SERVICE}
+ )
+
+ # Copy bashscript to start client and server $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_STARTER ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_NAME}_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_STARTER}
+ ${TEST_PAYLOAD_CLIENT}
+ )
+
+ ##############################################################################
+ # Copy bashscript to start client and server $BUILDDIR/test
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_AND_EXTERNAL_NAME external_local_payload_test_client_local_and_external)
+ set(TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_AND_EXTERNAL_STARTER ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_AND_EXTERNAL_NAME}_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_AND_EXTERNAL_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_AND_EXTERNAL_STARTER}
+ ${TEST_PAYLOAD_CLIENT}
+ )
+
+ ##############################################################################
+ set(TEST_LOCAL_PAYLOAD_HUGE_NAME local_payload_test_huge_payload)
+ # Copy bashscript to start client and server $BUILDDIR/test
+ set(TEST_LOCAL_PAYLOAD_HUGE_STARTER ${TEST_LOCAL_PAYLOAD_HUGE_NAME}_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/payload_tests/${TEST_LOCAL_PAYLOAD_HUGE_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_PAYLOAD_HUGE_STARTER}
+ ${TEST_PAYLOAD_CLIENT}
+ )
+endif()
+
+##############################################################################
+# big_payload_test
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_BIG_PAYLOAD_NAME big_payload_test)
+
+ set(TEST_BIG_PAYLOAD_SERVICE big_payload_test_service)
+ add_executable(${TEST_BIG_PAYLOAD_SERVICE} big_payload_tests/${TEST_BIG_PAYLOAD_SERVICE}.cpp)
+ target_link_libraries(${TEST_BIG_PAYLOAD_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_BIG_PAYLOAD_CLIENT big_payload_test_client)
+ add_executable(${TEST_BIG_PAYLOAD_CLIENT} big_payload_tests/${TEST_BIG_PAYLOAD_CLIENT}.cpp)
+ target_link_libraries(${TEST_BIG_PAYLOAD_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE ${TEST_BIG_PAYLOAD_NAME}_local.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_QUEUE_LIMITED_LOCAL_BIG_PAYLOAD_CONFIG_FILE ${TEST_BIG_PAYLOAD_NAME}_local_queue_limited.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_QUEUE_LIMITED_LOCAL_BIG_PAYLOAD_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_QUEUE_LIMITED_LOCAL_BIG_PAYLOAD_CONFIG_FILE}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE_RANDOM ${TEST_BIG_PAYLOAD_NAME}_local_random.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE_RANDOM}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE_RANDOM}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE_LIMITED ${TEST_BIG_PAYLOAD_NAME}_local_limited.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE_LIMITED}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_BIG_PAYLOAD_CONFIG_FILE_LIMITED}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE ${TEST_BIG_PAYLOAD_NAME}_local_tcp_client.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE}
+ ${TEST_BIG_PAYLOAD_CLIENT}
+ )
+
+ set(TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE ${TEST_BIG_PAYLOAD_NAME}_local_tcp_service.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED ${TEST_BIG_PAYLOAD_NAME}_local_tcp_client_limited.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED}
+ ${TEST_BIG_PAYLOAD_CLIENT}
+ )
+
+ set(TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED ${TEST_BIG_PAYLOAD_NAME}_local_tcp_service_limited.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED ${TEST_BIG_PAYLOAD_NAME}_local_tcp_client_queue_limited.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED}
+ ${TEST_BIG_PAYLOAD_CLIENT}
+ )
+
+ set(TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED ${TEST_BIG_PAYLOAD_NAME}_local_tcp_service_queue_limited.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM ${TEST_BIG_PAYLOAD_NAME}_local_tcp_client_random.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_TCP_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM}
+ ${TEST_BIG_PAYLOAD_CLIENT}
+ )
+
+ set(TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM ${TEST_BIG_PAYLOAD_NAME}_local_tcp_service_random.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE ${TEST_BIG_PAYLOAD_NAME}_tcp_client.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE}
+ ${TEST_BIG_PAYLOAD_CLIENT}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE ${TEST_BIG_PAYLOAD_NAME}_tcp_service.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED ${TEST_BIG_PAYLOAD_NAME}_tcp_client_limited_general.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_LIMITED}
+ ${TEST_BIG_PAYLOAD_CLIENT}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED ${TEST_BIG_PAYLOAD_NAME}_tcp_service_limited_general.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_LIMITED}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM ${TEST_BIG_PAYLOAD_NAME}_tcp_client_random.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_RANDOM}
+ ${TEST_BIG_PAYLOAD_CLIENT}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM ${TEST_BIG_PAYLOAD_NAME}_tcp_service_random.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_RANDOM}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_GENERAL ${TEST_BIG_PAYLOAD_NAME}_tcp_client_queue_limited_general.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_GENERAL}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_GENERAL}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_GENERAL}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_GENERAL}
+ ${TEST_BIG_PAYLOAD_CLIENT}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_GENERAL ${TEST_BIG_PAYLOAD_NAME}_tcp_service_queue_limited_general.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_GENERAL}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_GENERAL}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_GENERAL}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_GENERAL}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC ${TEST_BIG_PAYLOAD_NAME}_tcp_client_queue_limited_specific.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}
+ ${TEST_BIG_PAYLOAD_CLIENT}
+ )
+
+ # Copy config file for client and service into $BUILDDIR/test
+ set(TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC ${TEST_BIG_PAYLOAD_NAME}_tcp_service_queue_limited_specific.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_CONFIG_FILE_QUEUE_LIMITED_SPECIFIC}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+ # Copy config file for UDP client and service into $BUILDDIR/test
+ set(TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_UDP_CONFIG_FILE ${TEST_BIG_PAYLOAD_NAME}_udp_service.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_UDP_CONFIG_FILE}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+ set(TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_UDP_CONFIG_FILE ${TEST_BIG_PAYLOAD_NAME}_udp_client.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/conf/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_UDP_CONFIG_FILE}
+ ${TEST_BIG_PAYLOAD_CLIENT}
+ )
+
+ # Copy bashscript to start client local to $BUILDDIR/test
+ set(TEST_LOCAL_BIG_PAYLOAD_CLIENT_START_SCRIPT ${TEST_BIG_PAYLOAD_NAME}_client_local_start.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_BIG_PAYLOAD_CLIENT_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_BIG_PAYLOAD_CLIENT_START_SCRIPT}
+ ${TEST_BIG_PAYLOAD_CLIENT}
+ )
+
+ # Copy bashscript to start service local to $BUILDDIR/test
+ set(TEST_LOCAL_BIG_PAYLOAD_SERVICE_START_SCRIPT ${TEST_BIG_PAYLOAD_NAME}_service_local_start.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_BIG_PAYLOAD_SERVICE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_BIG_PAYLOAD_SERVICE_START_SCRIPT}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy bashscript to start client and server $BUILDDIR/test
+ set(TEST_LOCAL_BIG_PAYLOAD_NAME big_payload_test_local)
+ set(TEST_LOCAL_BIG_PAYLOAD_NAME_RANDOM big_payload_test_local_random)
+ set(TEST_LOCAL_BIG_PAYLOAD_NAME_LIMITED big_payload_test_local_limited)
+ set(TEST_LOCAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED big_payload_test_local_queue_limited)
+ set(TEST_LOCAL_BIG_PAYLOAD_STARTER ${TEST_LOCAL_BIG_PAYLOAD_NAME}_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_BIG_PAYLOAD_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_BIG_PAYLOAD_STARTER}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy bashscript to start client and server $BUILDDIR/test
+ set(TEST_LOCAL_TCP_BIG_PAYLOAD_NAME big_payload_test_local_tcp)
+ set(TEST_LOCAL_TCP_BIG_PAYLOAD_NAME_RANDOM big_payload_test_local_tcp_random)
+ set(TEST_LOCAL_TCP_BIG_PAYLOAD_NAME_LIMITED big_payload_test_local_tcp_limited)
+ set(TEST_LOCAL_TCP_BIG_PAYLOAD_NAME_QUEUE_LIMITED big_payload_test_local_tcp_queue_limited)
+ # Copy starter as well as client/service start scripts for external tests
+ set(TEST_LOCAL_TCP_BIG_PAYLOAD_STARTER ${TEST_LOCAL_TCP_BIG_PAYLOAD_NAME}_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_TCP_BIG_PAYLOAD_STARTER}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+ set(TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_START_SCRIPT ${TEST_LOCAL_TCP_BIG_PAYLOAD_NAME}_service_start.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_TCP_BIG_PAYLOAD_SERVICE_START_SCRIPT}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ # Copy bashscript to start client for external test into $BUILDDIR/test
+ set(TEST_EXTERNAL_BIG_PAYLOAD_NAME big_payload_test_external)
+ set(TEST_EXTERNAL_BIG_PAYLOAD_NAME_RANDOM big_payload_test_external_random)
+ set(TEST_EXTERNAL_BIG_PAYLOAD_NAME_LIMITED big_payload_test_external_limited)
+ set(TEST_EXTERNAL_BIG_PAYLOAD_NAME_LIMITED_GENERAL big_payload_test_external_limited_general)
+ set(TEST_EXTERNAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED_GENERAL big_payload_test_external_queue_limited_general)
+ set(TEST_EXTERNAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED_SPECIFIC big_payload_test_external_queue_limited_specific)
+ set(TEST_EXTERNAL_BIG_PAYLOAD_NAME_UDP big_payload_test_external_udp)
+
+ # Copy starter as well as client/service start scripts for external tests
+ set(TEST_EXTERNAL_BIG_PAYLOAD_STARTER ${TEST_EXTERNAL_BIG_PAYLOAD_NAME}_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+ set(TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_START_SCRIPT ${TEST_EXTERNAL_BIG_PAYLOAD_NAME}_service_start.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_SERVICE_START_SCRIPT}
+ ${TEST_BIG_PAYLOAD_SERVICE}
+ )
+
+ set(TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_START_SCRIPT ${TEST_EXTERNAL_BIG_PAYLOAD_NAME}_client_start.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/big_payload_tests/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_CLIENT_START_SCRIPT}
+ ${TEST_BIG_PAYLOAD_CLIENT}
+ )
+endif()
+
+##############################################################################
+# client id tests
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_CLIENT_ID_NAME client_id_test)
+ set(TEST_CLIENT_ID_SERVICE ${TEST_CLIENT_ID_NAME}_service)
+ add_executable(${TEST_CLIENT_ID_SERVICE} client_id_tests/${TEST_CLIENT_ID_NAME}_service.cpp)
+ target_link_libraries(${TEST_CLIENT_ID_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_CLIENT_ID_UTILITY ${TEST_CLIENT_ID_NAME}_utility)
+ add_executable(${TEST_CLIENT_ID_UTILITY}
+ client_id_tests/${TEST_CLIENT_ID_UTILITY}.cpp
+ ${PROJECT_SOURCE_DIR}/implementation/utility/src/utility.cpp)
+ target_link_libraries(${TEST_CLIENT_ID_UTILITY}
+ ${VSOMEIP_NAME}
+ ${VSOMEIP_NAME}-cfg
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config files for test into $BUILDDIR/test
+ set(TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE
+ ${TEST_CLIENT_ID_NAME}_diff_client_ids_diff_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/conf/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_CLIENT_ID_SERVICE}
+ )
+
+ set(TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_CLIENT_ID_NAME}_diff_client_ids_diff_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/conf/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_CLIENT_ID_SERVICE}
+ )
+
+ set(TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE
+ ${TEST_CLIENT_ID_NAME}_diff_client_ids_same_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/conf/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_CLIENT_ID_SERVICE}
+ )
+
+ set(TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_CLIENT_ID_NAME}_diff_client_ids_same_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/conf/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_CLIENT_ID_SERVICE}
+ )
+
+ set(TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE
+ ${TEST_CLIENT_ID_NAME}_diff_client_ids_partial_same_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/conf/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_CLIENT_ID_SERVICE}
+ )
+
+ set(TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_CLIENT_ID_NAME}_diff_client_ids_partial_same_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/conf/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_CLIENT_ID_SERVICE}
+ )
+
+ set(TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE
+ ${TEST_CLIENT_ID_NAME}_same_client_ids_same_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/conf/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_CLIENT_ID_SERVICE}
+ )
+
+ set(TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_CLIENT_ID_NAME}_same_client_ids_same_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/conf/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_CLIENT_ID_SERVICE}
+ )
+
+ set(TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE
+ ${TEST_CLIENT_ID_NAME}_same_client_ids_diff_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/conf/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_CLIENT_ID_SERVICE}
+ )
+
+ set(TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_CLIENT_ID_NAME}_same_client_ids_diff_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/conf/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_CLIENT_ID_SERVICE}
+ )
+
+ set(TEST_CLIENT_ID_UTILITY_CONFIG_FILE ${TEST_CLIENT_ID_NAME}_utility.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_UTILITY_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_UTILITY_CONFIG_FILE}
+ ${TEST_CLIENT_ID_UTILITY}
+ )
+ set(TEST_CLIENT_ID_UTILITY_MASKED_511_CONFIG_FILE ${TEST_CLIENT_ID_NAME}_utility_masked_511.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_UTILITY_MASKED_511_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_UTILITY_MASKED_511_CONFIG_FILE}
+ ${TEST_CLIENT_ID_UTILITY}
+ )
+
+ set(TEST_CLIENT_ID_UTILITY_MASKED_4095_CONFIG_FILE ${TEST_CLIENT_ID_NAME}_utility_masked_4095.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_UTILITY_MASKED_4095_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_UTILITY_MASKED_4095_CONFIG_FILE}
+ ${TEST_CLIENT_ID_UTILITY}
+ )
+
+ set(TEST_CLIENT_ID_UTILITY_MASKED_127_CONFIG_FILE ${TEST_CLIENT_ID_NAME}_utility_masked_127.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_UTILITY_MASKED_127_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_UTILITY_MASKED_127_CONFIG_FILE}
+ ${TEST_CLIENT_ID_UTILITY}
+ )
+
+ set(TEST_CLIENT_ID_UTILITY_MASKED_DISCONTINUOUS_511_CONFIG_FILE ${TEST_CLIENT_ID_NAME}_utility_discontinuous_masked_511.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_UTILITY_MASKED_DISCONTINUOUS_511_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_UTILITY_MASKED_DISCONTINUOUS_511_CONFIG_FILE}
+ ${TEST_CLIENT_ID_UTILITY}
+ )
+
+ # copy starter scripts into builddir
+ set(TEST_CLIENT_ID_MASTER_STARTER ${TEST_CLIENT_ID_NAME}_master_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_MASTER_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_MASTER_STARTER}
+ ${TEST_CLIENT_ID_SERVICE}
+ )
+ set(TEST_CLIENT_ID_SLAVE_STARTER ${TEST_CLIENT_ID_NAME}_slave_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/client_id_tests/${TEST_CLIENT_ID_SLAVE_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_SLAVE_STARTER}
+ ${TEST_CLIENT_ID_SERVICE}
+ )
+endif()
+
+##############################################################################
+# debounce tests
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_DEBOUNCE_NAME debounce_test)
+ set(TEST_DEBOUNCE_CLIENT ${TEST_DEBOUNCE_NAME}_client)
+ add_executable(${TEST_DEBOUNCE_CLIENT} debounce_tests/${TEST_DEBOUNCE_CLIENT}.cpp)
+ target_link_libraries(${TEST_DEBOUNCE_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+ set(TEST_DEBOUNCE_SERVICE ${TEST_DEBOUNCE_NAME}_service)
+ add_executable(${TEST_DEBOUNCE_SERVICE} debounce_tests/${TEST_DEBOUNCE_SERVICE}.cpp)
+ target_link_libraries(${TEST_DEBOUNCE_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # copy starter scripts into builddir
+ set(TEST_DEBOUNCE_MASTER_STARTER ${TEST_DEBOUNCE_NAME}_master_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/debounce_tests/${TEST_DEBOUNCE_MASTER_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_DEBOUNCE_MASTER_STARTER}
+ ${TEST_DEBOUNCE_SERVICE}
+ )
+ set(TEST_DEBOUNCE_SLAVE_STARTER ${TEST_DEBOUNCE_NAME}_slave_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/debounce_tests/${TEST_DEBOUNCE_SLAVE_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_DEBOUNCE_SLAVE_STARTER}
+ ${TEST_DEBOUNCE_SERVICE}
+ )
+
+ # configure configurations and copy them into builddir
+ set(TEST_DEBOUNCE_MASTER_CONFIG_FILE ${TEST_DEBOUNCE_SERVICE}.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/debounce_tests/conf/${TEST_DEBOUNCE_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/debounce_tests/${TEST_DEBOUNCE_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/debounce_tests/${TEST_DEBOUNCE_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_DEBOUNCE_MASTER_CONFIG_FILE}
+ ${TEST_DEBOUNCE_SERVICE}
+ )
+ set(TEST_DEBOUNCE_SLAVE_CONFIG_FILE ${TEST_DEBOUNCE_CLIENT}.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/debounce_tests/conf/${TEST_DEBOUNCE_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/debounce_tests/${TEST_DEBOUNCE_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/debounce_tests/${TEST_DEBOUNCE_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_DEBOUNCE_SLAVE_CONFIG_FILE}
+ ${TEST_DEBOUNCE_SERVICE}
+ )
+endif()
+
+##############################################################################
+# subscribe notify tests
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_SUBSCRIBE_NOTIFY_NAME subscribe_notify_test)
+ set(TEST_SUBSCRIBE_NOTIFY_SERVICE ${TEST_SUBSCRIBE_NOTIFY_NAME}_service)
+ add_executable(${TEST_SUBSCRIBE_NOTIFY_SERVICE} subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_NAME}_service.cpp)
+ target_link_libraries(${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config files for test into $BUILDDIR/test (local communication via UDS)
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_master_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_slave_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_master_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_slave_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_master_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_slave_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_master_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_slave_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_partial_same_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_partial_same_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_same_client_ids_same_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_same_client_ids_same_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_same_client_ids_diff_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_same_client_ids_diff_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_master_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_slave_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_autoconfig_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_autoconfig_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ # copy starter scripts into builddir
+ set(TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER ${TEST_SUBSCRIBE_NOTIFY_NAME}_master_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+ set(TEST_SUBSCRIBE_NOTIFY_SLAVE_STARTER ${TEST_SUBSCRIBE_NOTIFY_NAME}_slave_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SLAVE_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_SLAVE_STARTER}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ # subscribe_notify_test_one_event_two_eventgroups
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME subscribe_notify_test_one_event_two_eventgroups)
+
+ # service
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_service)
+ add_executable(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}
+ subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}.cpp)
+ target_link_libraries(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+ # client
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_client)
+ add_executable(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT}
+ subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT}.cpp)
+ target_link_libraries(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_udp_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT}
+ )
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_tcp_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_master_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}
+ )
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_STARTER
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_slave_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_STARTER}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}
+ )
+
+ # Copy config files for test into $BUILDDIR/test (local communication via TCP)
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_master_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_slave_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_master_tcp_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_slave_tcp_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_master_udp_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_slave_udp_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_master_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_slave_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_master_tcp_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_slave_tcp_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_master_udp_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_slave_udp_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_partial_same_ports_master_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_partial_same_ports_slave_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_same_client_ids_same_ports_master_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_same_client_ids_same_ports_slave_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_SAME_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_same_client_ids_diff_ports_master_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_same_client_ids_diff_ports_slave_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_SAME_IDS_DIFF_PORTS_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_master_udp_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_slave_udp_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_autoconfig_master_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_autoconfig_slave_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_SLAVE_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ # copy starter scripts into builddir
+ set(TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER ${TEST_SUBSCRIBE_NOTIFY_NAME}_master_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+ set(TEST_SUBSCRIBE_NOTIFY_SLAVE_STARTER ${TEST_SUBSCRIBE_NOTIFY_NAME}_slave_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_SLAVE_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_SLAVE_STARTER}
+ ${TEST_SUBSCRIBE_NOTIFY_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_master_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_udp_slave_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_UDP_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT}
+ )
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_tcp_slave_local_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_TCP_LOCAL_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_master_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}
+ )
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_STARTER
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_slave_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/subscribe_notify_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SLAVE_STARTER}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE}
+ )
+
+endif()
+
+##############################################################################
+# subscribe notify one tests
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_NAME subscribe_notify_one_test)
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_service)
+ add_executable(${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE} subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_service.cpp)
+ target_link_libraries(${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config files for test into $BUILDDIR/test
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_master_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_slave_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_master_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
+ )
+
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_slave_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/conf/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
+ )
+
+ # copy starter scripts into builddir
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_MASTER_STARTER ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_master_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_MASTER_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_MASTER_STARTER}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
+ )
+ set(TEST_SUBSCRIBE_NOTIFY_ONE_SLAVE_STARTER ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_slave_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/subscribe_notify_one_tests/${TEST_SUBSCRIBE_NOTIFY_ONE_SLAVE_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_SLAVE_STARTER}
+ ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE}
+ )
+endif()
+
+##############################################################################
+# cpu-load-test
+##############################################################################
+
+if(NOT ${TESTS_BAT})
+ set(TEST_CPU_LOAD_NAME cpu_load_test)
+
+ set(TEST_CPU_LOAD_SERVICE cpu_load_test_service)
+ add_executable(${TEST_CPU_LOAD_SERVICE}
+ cpu_load_tests/${TEST_CPU_LOAD_SERVICE}.cpp
+ cpu_load_tests/cpu_load_measurer.cpp
+ )
+ target_link_libraries(${TEST_CPU_LOAD_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config files for test into $BUILDDIR/test
+ set(TEST_CPU_LOAD_SERVICE_MASTER_CONFIG_FILE ${TEST_CPU_LOAD_NAME}_service_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/cpu_load_tests/conf/${TEST_CPU_LOAD_SERVICE_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/cpu_load_tests/${TEST_CPU_LOAD_SERVICE_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/cpu_load_tests/${TEST_CPU_LOAD_SERVICE_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CPU_LOAD_SERVICE_MASTER_CONFIG_FILE}
+ ${TEST_CPU_LOAD_SERVICE}
+ )
+ set(TEST_CPU_LOAD_SERVICE_SLAVE_CONFIG_FILE ${TEST_CPU_LOAD_NAME}_service_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/cpu_load_tests/conf/${TEST_CPU_LOAD_SERVICE_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/cpu_load_tests/${TEST_CPU_LOAD_SERVICE_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/cpu_load_tests/${TEST_CPU_LOAD_SERVICE_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CPU_LOAD_SERVICE_SLAVE_CONFIG_FILE}
+ ${TEST_CPU_LOAD_SERVICE}
+ )
+
+ ##############################################################################
+ set(TEST_CPU_LOAD_CLIENT cpu_load_test_client)
+ add_executable(${TEST_CPU_LOAD_CLIENT}
+ cpu_load_tests/${TEST_CPU_LOAD_CLIENT}.cpp
+ cpu_load_tests/cpu_load_measurer.cpp
+ )
+ target_link_libraries(${TEST_CPU_LOAD_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_CPU_LOAD_CLIENT_MASTER_CONFIG_FILE ${TEST_CPU_LOAD_NAME}_client_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/cpu_load_tests/conf/${TEST_CPU_LOAD_CLIENT_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/cpu_load_tests/${TEST_CPU_LOAD_CLIENT_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/cpu_load_tests/${TEST_CPU_LOAD_CLIENT_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CPU_LOAD_CLIENT_MASTER_CONFIG_FILE}
+ ${TEST_CPU_LOAD_CLIENT}
+ )
+ set(TEST_CPU_LOAD_CLIENT_SLAVE_CONFIG_FILE ${TEST_CPU_LOAD_NAME}_client_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/cpu_load_tests/conf/${TEST_CPU_LOAD_CLIENT_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/cpu_load_tests/${TEST_CPU_LOAD_CLIENT_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/cpu_load_tests/${TEST_CPU_LOAD_CLIENT_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CPU_LOAD_CLIENT_SLAVE_CONFIG_FILE}
+ ${TEST_CPU_LOAD_CLIENT}
+ )
+
+ ##############################################################################
+ # copy starter scripts into builddir
+ set(TEST_CPU_LOAD_MASTER_STARTER ${TEST_CPU_LOAD_NAME}_master_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/cpu_load_tests/${TEST_CPU_LOAD_MASTER_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CPU_LOAD_MASTER_STARTER}
+ ${TEST_CPU_LOAD_SERVICE}
+ )
+ set(TEST_CPU_LOAD_SLAVE_STARTER ${TEST_CPU_LOAD_NAME}_slave_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/cpu_load_tests/${TEST_CPU_LOAD_SLAVE_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_CPU_LOAD_SLAVE_STARTER}
+ ${TEST_CPU_LOAD_SERVICE}
+ )
+endif()
+
+##############################################################################
+# initial event tests
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_INITIAL_EVENT_NAME initial_event_test)
+ set(TEST_INITIAL_EVENT_SERVICE ${TEST_INITIAL_EVENT_NAME}_service)
+ add_executable(${TEST_INITIAL_EVENT_SERVICE} initial_event_tests/${TEST_INITIAL_EVENT_NAME}_service.cpp)
+ target_link_libraries(${TEST_INITIAL_EVENT_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_INITIAL_EVENT_CLIENT ${TEST_INITIAL_EVENT_NAME}_client)
+ add_executable(${TEST_INITIAL_EVENT_CLIENT} initial_event_tests/${TEST_INITIAL_EVENT_NAME}_client.cpp)
+ target_link_libraries(${TEST_INITIAL_EVENT_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_INITIAL_EVENT_AVAILABILITY_CHECKER ${TEST_INITIAL_EVENT_NAME}_availability_checker)
+ add_executable(${TEST_INITIAL_EVENT_AVAILABILITY_CHECKER} initial_event_tests/${TEST_INITIAL_EVENT_NAME}_availability_checker.cpp)
+ target_link_libraries(${TEST_INITIAL_EVENT_AVAILABILITY_CHECKER}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_INITIAL_EVENT_STOP_SERVICE ${TEST_INITIAL_EVENT_NAME}_stop_service)
+ add_executable(${TEST_INITIAL_EVENT_STOP_SERVICE} initial_event_tests/${TEST_INITIAL_EVENT_NAME}_stop_service.cpp)
+ target_link_libraries(${TEST_INITIAL_EVENT_STOP_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config files for test into $BUILDDIR/test
+ set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ # Copy config files for test into $BUILDDIR/test
+ set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_master_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ # Copy config files for test into $BUILDDIR/test
+ set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_master_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_slave_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_TCP_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_slave_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SLAVE_UDP_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_master_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_slave_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_TCP_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_master_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_slave_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_SLAVE_UDP_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_partial_same_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_partial_same_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_same_client_ids_same_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_same_client_ids_same_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_SAME_IDS_SAME_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_same_client_ids_diff_ports_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_MASTER_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_same_client_ids_diff_ports_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_SAME_IDS_DIFF_PORTS_SLAVE_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_same_service_id_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ set(TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_CONFIG_FILE
+ ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_same_service_id_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/conf/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_SLAVE_CONFIG_FILE}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+
+ # copy starter scripts into builddir
+ set(TEST_INITIAL_EVENT_MASTER_STARTER ${TEST_INITIAL_EVENT_NAME}_master_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_MASTER_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+ set(TEST_INITIAL_EVENT_SLAVE_STARTER ${TEST_INITIAL_EVENT_NAME}_slave_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/initial_event_tests/${TEST_INITIAL_EVENT_SLAVE_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_SLAVE_STARTER}
+ ${TEST_INITIAL_EVENT_SERVICE}
+ )
+endif()
+
+##############################################################################
+# offer tests
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_OFFER_NAME offer_test)
+ set(TEST_OFFER_SERVICE ${TEST_OFFER_NAME}_service)
+ add_executable(${TEST_OFFER_SERVICE} offer_tests/${TEST_OFFER_NAME}_service.cpp)
+ target_link_libraries(${TEST_OFFER_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_OFFER_CLIENT ${TEST_OFFER_NAME}_client)
+ add_executable(${TEST_OFFER_CLIENT} offer_tests/${TEST_OFFER_NAME}_client.cpp)
+ target_link_libraries(${TEST_OFFER_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_OFFER_SERVICE_EXTERNAL ${TEST_OFFER_NAME}_service_external)
+ add_executable(${TEST_OFFER_SERVICE_EXTERNAL} offer_tests/${TEST_OFFER_NAME}_service_external.cpp)
+ target_link_libraries(${TEST_OFFER_SERVICE_EXTERNAL}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_OFFER_EXTERNAL_SD_MESSAGE_SENDER ${TEST_OFFER_NAME}_external_sd_msg_sender)
+ add_executable(${TEST_OFFER_EXTERNAL_SD_MESSAGE_SENDER} offer_tests/${TEST_OFFER_NAME}_external_sd_msg_sender.cpp)
+ target_link_libraries(${TEST_OFFER_EXTERNAL_SD_MESSAGE_SENDER}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # client and service for offer test big sd msg
+ set(TEST_OFFER_BIG_NAME offer_test_big_sd_msg)
+ set(TEST_OFFER_BIG_SERVICE ${TEST_OFFER_BIG_NAME}_service)
+ add_executable(${TEST_OFFER_BIG_SERVICE} offer_tests/${TEST_OFFER_BIG_NAME}_service.cpp)
+ target_link_libraries(${TEST_OFFER_BIG_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_OFFER_BIG_CLIENT ${TEST_OFFER_BIG_NAME}_client)
+ add_executable(${TEST_OFFER_BIG_CLIENT} offer_tests/${TEST_OFFER_BIG_NAME}_client.cpp)
+ target_link_libraries(${TEST_OFFER_BIG_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # copy starter scripts into builddir
+ set(TEST_OFFER_LOCAL_STARTER ${TEST_OFFER_NAME}_local_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_LOCAL_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_OFFER_LOCAL_STARTER}
+ ${TEST_OFFER_SERVICE}
+ )
+
+ # Copy config file for local test into $BUILDDIR/test
+ set(TEST_OFFER_LOCAL_CONFIG_FILE ${TEST_OFFER_NAME}_local.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_LOCAL_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_OFFER_LOCAL_CONFIG_FILE}
+ ${TEST_OFFER_SERVICE}
+ )
+
+ # generate and copy json files into builddir for external test
+ set(TEST_OFFER_SLAVE_CONFIG_FILE ${TEST_OFFER_NAME}_external_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/conf/${TEST_OFFER_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_OFFER_SLAVE_CONFIG_FILE}
+ ${TEST_OFFER_SERVICE}
+ )
+
+ set(TEST_OFFER_MASTER_CONFIG_FILE ${TEST_OFFER_NAME}_external_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/conf/${TEST_OFFER_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_OFFER_MASTER_CONFIG_FILE}
+ ${TEST_OFFER_SERVICE}
+ )
+
+ # generate and copy json files into builddir for big SD message test
+ set(TEST_OFFER_BIG_SLAVE_CONFIG_FILE ${TEST_OFFER_BIG_NAME}_slave.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/conf/${TEST_OFFER_BIG_SLAVE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_BIG_SLAVE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_BIG_SLAVE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_OFFER_BIG_SLAVE_CONFIG_FILE}
+ ${TEST_OFFER_BIG_SERVICE}
+ )
+
+ set(TEST_OFFER_BIG_MASTER_CONFIG_FILE ${TEST_OFFER_BIG_NAME}_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/conf/${TEST_OFFER_BIG_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_BIG_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_BIG_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_OFFER_BIG_MASTER_CONFIG_FILE}
+ ${TEST_OFFER_BIG_SERVICE}
+ )
+
+ # Copy starter scripts for external test to $BUILDDIR/test
+ set(TEST_OFFER_EXTERNAL_MASTER_STARTER ${TEST_OFFER_NAME}_external_master_starter.sh)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/conf/${TEST_OFFER_EXTERNAL_MASTER_STARTER}.in
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_EXTERNAL_MASTER_STARTER}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_EXTERNAL_MASTER_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_OFFER_EXTERNAL_MASTER_STARTER}
+ ${TEST_OFFER_SERVICE}
+ )
+ set(TEST_OFFER_EXTERNAL_SLAVE_STARTER ${TEST_OFFER_NAME}_external_slave_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_EXTERNAL_SLAVE_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_OFFER_EXTERNAL_SLAVE_STARTER}
+ ${TEST_OFFER_SERVICE}
+ )
+
+ # Copy starter scripts for external test to $BUILDDIR/test
+ set(TEST_OFFER_BIG_MASTER_STARTER ${TEST_OFFER_BIG_NAME}_master_starter.sh)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/conf/${TEST_OFFER_BIG_MASTER_STARTER}.in
+ ${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_BIG_MASTER_STARTER}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_BIG_MASTER_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_OFFER_BIG_MASTER_STARTER}
+ ${TEST_OFFER_BIG_SERVICE}
+ )
+ # Copy starter scripts for external test to $BUILDDIR/test
+ set(TEST_OFFER_BIG_EXTERNAL_SLAVE_STARTER ${TEST_OFFER_BIG_NAME}_slave_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/offer_tests/${TEST_OFFER_BIG_EXTERNAL_SLAVE_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_OFFER_BIG_EXTERNAL_SLAVE_STARTER}
+ ${TEST_OFFER_BIG_SERVICE}
+ )
+endif()
+
+##############################################################################
+# offered services info tests
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_OFFERED_SERVICES_INFO_NAME offered_services_info_test)
+ set(TEST_OFFERED_SERVICES_INFO_SERVICE ${TEST_OFFERED_SERVICES_INFO_NAME}_service)
+ add_executable(${TEST_OFFERED_SERVICES_INFO_SERVICE} offered_services_info_test/${TEST_OFFERED_SERVICES_INFO_NAME}_service.cpp)
+ target_link_libraries(${TEST_OFFERED_SERVICES_INFO_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_OFFERED_SERVICES_INFO_CLIENT ${TEST_OFFERED_SERVICES_INFO_NAME}_client)
+ add_executable(${TEST_OFFERED_SERVICES_INFO_CLIENT} offered_services_info_test/${TEST_OFFERED_SERVICES_INFO_NAME}_client.cpp)
+ target_link_libraries(${TEST_OFFERED_SERVICES_INFO_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # copy starter scripts into builddir
+ set(TEST_OFFERED_SERVICES_INFO_LOCAL_STARTER ${TEST_OFFERED_SERVICES_INFO_NAME}_local_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/offered_services_info_test/${TEST_OFFERED_SERVICES_INFO_LOCAL_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_OFFERED_SERVICES_INFO_LOCAL_STARTER}
+ ${TEST_OFFERED_SERVICES_INFO_SERVICE}
+ )
+
+ # Copy config file for local test into $BUILDDIR/test
+ set(TEST_OFFERED_SERVICES_INFO_LOCAL_CONFIG_FILE ${TEST_OFFERED_SERVICES_INFO_NAME}_local.json)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/offered_services_info_test/${TEST_OFFERED_SERVICES_INFO_LOCAL_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_OFFERED_SERVICES_INFO_LOCAL_CONFIG_FILE}
+ ${TEST_OFFERED_SERVICES_INFO_SERVICE}
+ )
+endif()
+
+##############################################################################
+# pending subscription tests tests
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_PENDING_SUBSCRIPTION_NAME pending_subscription_test)
+ set(TEST_PENDING_SUBSCRIPTION_SERVICE ${TEST_PENDING_SUBSCRIPTION_NAME}_service)
+ add_executable(${TEST_PENDING_SUBSCRIPTION_SERVICE} pending_subscription_tests/${TEST_PENDING_SUBSCRIPTION_NAME}_service.cpp)
+ target_link_libraries(${TEST_PENDING_SUBSCRIPTION_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ file(GLOB sd_sources
+ "../../implementation/service_discovery/src/*entry*.cpp"
+ "../../implementation/service_discovery/src/*option*.cpp"
+ "../../implementation/service_discovery/src/*message*.cpp"
+ )
+ set(TEST_PENDING_SUBSCRIPTION_CLIENT ${TEST_PENDING_SUBSCRIPTION_NAME}_sd_msg_sender)
+ add_executable(${TEST_PENDING_SUBSCRIPTION_CLIENT}
+ pending_subscription_tests/${TEST_PENDING_SUBSCRIPTION_NAME}_sd_msg_sender.cpp
+ ${PROJECT_SOURCE_DIR}/implementation/message/src/deserializer.cpp
+ ${PROJECT_SOURCE_DIR}/implementation/message/src/message_impl.cpp
+ ${PROJECT_SOURCE_DIR}/implementation/message/src/payload_impl.cpp
+ ${sd_sources}
+ )
+
+ target_link_libraries(${TEST_PENDING_SUBSCRIPTION_CLIENT}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ ${VSOMEIP_NAME}
+ ${VSOMEIP_NAME}-sd
+ )
+
+ # copy starter scripts into builddir
+ set(TEST_PENDING_SUBSCRIPTION_MASTER_STARTER ${TEST_PENDING_SUBSCRIPTION_NAME}_master_starter.sh)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/pending_subscription_tests/conf/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER}.in
+ ${NETWORK_TEST_SRC_DIR}/pending_subscription_tests/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/pending_subscription_tests/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER}
+ ${TEST_PENDING_SUBSCRIPTION_SERVICE}
+ )
+
+ # Copy config file for local test into $BUILDDIR/test
+ set(TEST_PENDING_SUBSCRIPTION_CONFIG_FILE ${TEST_PENDING_SUBSCRIPTION_NAME}_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/pending_subscription_tests/conf/${TEST_PENDING_SUBSCRIPTION_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/pending_subscription_tests/${TEST_PENDING_SUBSCRIPTION_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/pending_subscription_tests/${TEST_PENDING_SUBSCRIPTION_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_PENDING_SUBSCRIPTION_CONFIG_FILE}
+ ${TEST_PENDING_SUBSCRIPTION_SERVICE}
+ )
+endif()
+
+##############################################################################
+# malicious data tests
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_MALICIOUS_DATA_NAME malicious_data_test)
+ set(TEST_MALICIOUS_DATA_SERVICE ${TEST_MALICIOUS_DATA_NAME}_service)
+ add_executable(${TEST_MALICIOUS_DATA_SERVICE} malicious_data_tests/${TEST_MALICIOUS_DATA_NAME}_service.cpp)
+ target_link_libraries(${TEST_MALICIOUS_DATA_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ file(GLOB sd_sources
+ "../../implementation/service_discovery/src/*entry*.cpp"
+ "../../implementation/service_discovery/src/*option*.cpp"
+ "../../implementation/service_discovery/src/*message*.cpp"
+ )
+ set(TEST_MALICIOUS_DATA_CLIENT ${TEST_MALICIOUS_DATA_NAME}_msg_sender)
+ add_executable(${TEST_MALICIOUS_DATA_CLIENT}
+ malicious_data_tests/${TEST_MALICIOUS_DATA_CLIENT}.cpp
+ ${PROJECT_SOURCE_DIR}/implementation/message/src/deserializer.cpp
+ ${PROJECT_SOURCE_DIR}/implementation/message/src/message_impl.cpp
+ ${PROJECT_SOURCE_DIR}/implementation/message/src/payload_impl.cpp
+ ${sd_sources}
+ )
+
+ target_link_libraries(${TEST_MALICIOUS_DATA_CLIENT}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ ${VSOMEIP_NAME}
+ ${VSOMEIP_NAME}-sd
+ )
+
+ # copy starter scripts into builddir
+ set(TEST_MALICIOUS_DATA_MASTER_STARTER ${TEST_MALICIOUS_DATA_NAME}_master_starter.sh)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/malicious_data_tests/conf/${TEST_MALICIOUS_DATA_MASTER_STARTER}.in
+ ${NETWORK_TEST_SRC_DIR}/malicious_data_tests/${TEST_MALICIOUS_DATA_MASTER_STARTER}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/malicious_data_tests/${TEST_MALICIOUS_DATA_MASTER_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_MALICIOUS_DATA_MASTER_STARTER}
+ ${TEST_MALICIOUS_DATA_SERVICE}
+ )
+
+ # Copy config file for local test into $BUILDDIR/test
+ set(TEST_MALICIOUS_DATA_CONFIG_FILE ${TEST_MALICIOUS_DATA_NAME}_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/malicious_data_tests/conf/${TEST_MALICIOUS_DATA_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/malicious_data_tests/${TEST_MALICIOUS_DATA_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/malicious_data_tests/${TEST_MALICIOUS_DATA_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_MALICIOUS_DATA_CONFIG_FILE}
+ ${TEST_MALICIOUS_DATA_SERVICE}
+ )
+endif()
+
+##############################################################################
+# e2e test
+##############################################################################
+
+if(NOT ${TESTS_BAT})
+ set(TEST_E2E_NAME e2e_test)
+ set(TEST_E2E_SERVICE e2e_test_service)
+ set(TEST_E2E_CLIENT e2e_test_client)
+
+ add_executable(${TEST_E2E_SERVICE} e2e_tests/${TEST_E2E_SERVICE}.cpp)
+ target_link_libraries(${TEST_E2E_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ add_executable(${TEST_E2E_CLIENT}
+ e2e_tests/${TEST_E2E_CLIENT}.cpp
+ )
+ target_link_libraries(${TEST_E2E_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy service config file for external allow tests into $BUILDDIR/test
+ set(TEST_E2E_SERVICE_CONFIG_FILE_EXTERNAL ${TEST_E2E_NAME}_service_external.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/conf/${TEST_E2E_SERVICE_CONFIG_FILE_EXTERNAL}.in
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/${TEST_E2E_SERVICE_CONFIG_FILE_EXTERNAL}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/${TEST_E2E_SERVICE_CONFIG_FILE_EXTERNAL}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_E2E_SERVICE_CONFIG_FILE_EXTERNAL}
+ ${TEST_E2E_SERVICE}
+ )
+
+ # Copy client config file for external allow tests into $BUILDDIR/test
+ set(TEST_E2E_CLIENT_CONFIG_FILE_EXTERNAL ${TEST_E2E_NAME}_client_external.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/conf/${TEST_E2E_CLIENT_CONFIG_FILE_EXTERNAL}.in
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/${TEST_E2E_CLIENT_CONFIG_FILE_EXTERNAL}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/${TEST_E2E_CLIENT_CONFIG_FILE_EXTERNAL}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_E2E_CLIENT_CONFIG_FILE_EXTERNAL}
+ ${TEST_E2E_SERVICE}
+ )
+
+ # Copy bashscript to start external tests (master) into $BUILDDIR/test
+ set(TEST_E2E_EXTERNAL_MASTER_START_SCRIPT ${TEST_E2E_NAME}_external_master_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/${TEST_E2E_EXTERNAL_MASTER_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_E2E_EXTERNAL_MASTER_START_SCRIPT}
+ ${TEST_E2E_SERVICE}
+ )
+
+ # Copy bashscript to start external tests (slave) into $BUILDDIR/test
+ set(TEST_E2E_EXTERNAL_SLAVE_START_SCRIPT ${TEST_E2E_NAME}_external_slave_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/${TEST_E2E_EXTERNAL_SLAVE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_E2E_EXTERNAL_SLAVE_START_SCRIPT}
+ ${TEST_E2E_SERVICE}
+ )
+endif()
+
+##############################################################################
+# e2e profile 04 test
+##############################################################################
+
+if(NOT ${TESTS_BAT} AND ${TEST_E2E_PROFILE_04})
+ set(TEST_E2E_PROFILE_04_NAME e2e_profile_04_test)
+ set(TEST_E2E_PROFILE_04_SERVICE e2e_profile_04_test_service)
+ set(TEST_E2E_PROFILE_04_CLIENT e2e_profile_04_test_client)
+
+ add_executable(${TEST_E2E_PROFILE_04_SERVICE} e2e_tests/${TEST_E2E_PROFILE_04_SERVICE}.cpp)
+ target_link_libraries(${TEST_E2E_PROFILE_04_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ add_executable(${TEST_E2E_PROFILE_04_CLIENT}
+ e2e_tests/${TEST_E2E_PROFILE_04_CLIENT}.cpp
+ )
+ target_link_libraries(${TEST_E2E_PROFILE_04_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy service config file for external allow tests into $BUILDDIR/test
+ set(TEST_E2E_PROFILE_04_SERVICE_CONFIG_FILE_EXTERNAL ${TEST_E2E_PROFILE_04_NAME}_service_external.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/conf/${TEST_E2E_PROFILE_04_SERVICE_CONFIG_FILE_EXTERNAL}.in
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/${TEST_E2E_PROFILE_04_SERVICE_CONFIG_FILE_EXTERNAL}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/${TEST_E2E_PROFILE_04_SERVICE_CONFIG_FILE_EXTERNAL}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_E2E_PROFILE_04_SERVICE_CONFIG_FILE_EXTERNAL}
+ ${TEST_E2E_PROFILE_04_SERVICE}
+ )
+
+ # Copy client config file for external allow tests into $BUILDDIR/test
+ set(TEST_E2E_PROFILE_04_CLIENT_CONFIG_FILE_EXTERNAL ${TEST_E2E_PROFILE_04_NAME}_client_external.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/conf/${TEST_E2E_PROFILE_04_CLIENT_CONFIG_FILE_EXTERNAL}.in
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/${TEST_E2E_PROFILE_04_CLIENT_CONFIG_FILE_EXTERNAL}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/${TEST_E2E_PROFILE_04_CLIENT_CONFIG_FILE_EXTERNAL}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_E2E_PROFILE_04_CLIENT_CONFIG_FILE_EXTERNAL}
+ ${TEST_E2E_PROFILE_04_SERVICE}
+ )
+
+ # Copy bashscript to start external tests (master) into $BUILDDIR/test
+ set(TEST_E2E_PROFILE_04_EXTERNAL_MASTER_START_SCRIPT ${TEST_E2E_PROFILE_04_NAME}_external_master_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/${TEST_E2E_PROFILE_04_EXTERNAL_MASTER_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_E2E_PROFILE_04_EXTERNAL_MASTER_START_SCRIPT}
+ ${TEST_E2E_PROFILE_04_SERVICE}
+ )
+
+ # Copy bashscript to start external tests (slave) into $BUILDDIR/test
+ set(TEST_E2E_PROFILE_04_EXTERNAL_SLAVE_START_SCRIPT ${TEST_E2E_PROFILE_04_NAME}_external_slave_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/e2e_tests/${TEST_E2E_PROFILE_04_EXTERNAL_SLAVE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_E2E_PROFILE_04_EXTERNAL_SLAVE_START_SCRIPT}
+ ${TEST_E2E_PROFILE_04_SERVICE}
+ )
+endif()
+
+##############################################################################
+# event tests
+##############################################################################
+
+if(NOT ${TESTS_BAT})
+ set(TEST_EVENT_NAME event_test)
+ set(TEST_EVENT_SERVICE ${TEST_EVENT_NAME}_service)
+ set(TEST_EVENT_CLIENT ${TEST_EVENT_NAME}_client)
+
+ add_executable(${TEST_EVENT_SERVICE} event_tests/${TEST_EVENT_SERVICE}.cpp)
+ target_link_libraries(${TEST_EVENT_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ add_executable(${TEST_EVENT_CLIENT}
+ event_tests/${TEST_EVENT_CLIENT}.cpp
+ )
+ target_link_libraries(${TEST_EVENT_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+ # Copy service config file for external allow tests into $BUILDDIR/test
+ set(TEST_EVENT_SLAVE_TCP_CONFIG_FILE ${TEST_EVENT_NAME}_slave_tcp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/event_tests/conf/${TEST_EVENT_SLAVE_TCP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/event_tests/${TEST_EVENT_SLAVE_TCP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/event_tests/${TEST_EVENT_SLAVE_TCP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EVENT_SLAVE_TCP_CONFIG_FILE}
+ ${TEST_EVENT_SERVICE}
+ )
+
+ set(TEST_EVENT_SLAVE_UDP_CONFIG_FILE ${TEST_EVENT_NAME}_slave_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/event_tests/conf/${TEST_EVENT_SLAVE_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/event_tests/${TEST_EVENT_SLAVE_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/event_tests/${TEST_EVENT_SLAVE_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EVENT_SLAVE_UDP_CONFIG_FILE}
+ ${TEST_EVENT_SERVICE}
+ )
+
+ set(TEST_EVENT_MASTER_CONFIG_FILE ${TEST_EVENT_NAME}_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/event_tests/conf/${TEST_EVENT_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/event_tests/${TEST_EVENT_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/event_tests/${TEST_EVENT_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EVENT_MASTER_CONFIG_FILE}
+ ${TEST_EVENT_CLIENT}
+ )
+
+ # Copy bashscript to start test (master) into $BUILDDIR/test
+ set(TEST_EVENT_MASTER_START_SCRIPT ${TEST_EVENT_NAME}_master_starter.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/event_tests/${TEST_EVENT_MASTER_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EVENT_MASTER_START_SCRIPT}
+ ${TEST_EVENT_SERVICE}
+ )
+
+ # Copy bashscript to start external tests (slave) into $BUILDDIR/test
+ set(TEST_EVENT_SLAVE_START_SCRIPT ${TEST_EVENT_NAME}_slave_starter.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/event_tests/${TEST_EVENT_SLAVE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_EVENT_SLAVE_START_SCRIPT}
+ ${TEST_EVENT_CLIENT}
+ )
+
+endif()
+
+##############################################################################
+# npdu-test
+##############################################################################
+if(NOT ${TESTS_BAT})
+ set(TEST_NPDU_NAME npdu_test)
+
+ set(TEST_NPDU_DAEMON npdu_test_rmd)
+ set(TEST_NPDU_DAEMON_CLIENT ${TEST_NPDU_DAEMON}_client_side)
+ add_executable(${TEST_NPDU_DAEMON_CLIENT} npdu_tests/${TEST_NPDU_DAEMON}.cpp)
+ set_target_properties(${TEST_NPDU_DAEMON_CLIENT} PROPERTIES COMPILE_FLAGS -DRMD_CLIENT_SIDE)
+ target_link_libraries(${TEST_NPDU_DAEMON_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_NPDU_DAEMON_SERVICE ${TEST_NPDU_DAEMON}_service_side)
+ add_executable(${TEST_NPDU_DAEMON_SERVICE} npdu_tests/${TEST_NPDU_DAEMON}.cpp)
+ set_target_properties(${TEST_NPDU_DAEMON_SERVICE} PROPERTIES COMPILE_FLAGS -DRMD_SERVICE_SIDE)
+ target_link_libraries(${TEST_NPDU_DAEMON_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ ##############################################################################
+
+ set(TEST_NPDU_SERVICE npdu_test_service)
+
+ set(TEST_NPDU_SERVICE_ONE npdu_test_service_1)
+ add_executable(${TEST_NPDU_SERVICE_ONE} npdu_tests/${TEST_NPDU_SERVICE}.cpp)
+ set_target_properties(${TEST_NPDU_SERVICE_ONE} PROPERTIES COMPILE_FLAGS -DSERVICE_NUMBER=0)
+ target_link_libraries(${TEST_NPDU_SERVICE_ONE}
+ ${VSOMEIP_NAME}
+ ${VSOMEIP_NAME}-cfg
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_NPDU_SERVICE_TWO npdu_test_service_2)
+ add_executable(${TEST_NPDU_SERVICE_TWO} npdu_tests/${TEST_NPDU_SERVICE}.cpp)
+ set_target_properties(${TEST_NPDU_SERVICE_TWO} PROPERTIES COMPILE_FLAGS -DSERVICE_NUMBER=1)
+ target_link_libraries(${TEST_NPDU_SERVICE_TWO}
+ ${VSOMEIP_NAME}
+ ${VSOMEIP_NAME}-cfg
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_NPDU_SERVICE_THREE npdu_test_service_3)
+ add_executable(${TEST_NPDU_SERVICE_THREE} npdu_tests/${TEST_NPDU_SERVICE}.cpp)
+ set_target_properties(${TEST_NPDU_SERVICE_THREE} PROPERTIES COMPILE_FLAGS -DSERVICE_NUMBER=2)
+ target_link_libraries(${TEST_NPDU_SERVICE_THREE}
+ ${VSOMEIP_NAME}
+ ${VSOMEIP_NAME}-cfg
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_NPDU_SERVICE_FOUR npdu_test_service_4)
+ add_executable(${TEST_NPDU_SERVICE_FOUR} npdu_tests/${TEST_NPDU_SERVICE}.cpp)
+ set_target_properties(${TEST_NPDU_SERVICE_FOUR} PROPERTIES COMPILE_FLAGS -DSERVICE_NUMBER=3)
+ target_link_libraries(${TEST_NPDU_SERVICE_FOUR}
+ ${VSOMEIP_NAME}
+ ${VSOMEIP_NAME}-cfg
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config file for service w/o npdu into $BUILDDIR/test
+ set(TEST_NPDU_SERVICE_CONFIG_FILE ${TEST_NPDU_SERVICE}_no_npdu.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/npdu_tests/conf/${TEST_NPDU_SERVICE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/npdu_tests/${TEST_NPDU_SERVICE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/npdu_tests/${TEST_NPDU_SERVICE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_NPDU_SERVICE_CONFIG_FILE}
+ ${TEST_NPDU_SERVICE_ONE}
+ )
+
+ # Copy bashscript to start service w/o npdu into $BUILDDIR/test
+ set(TEST_NPDU_SERVICE_START_SCRIPT ${TEST_NPDU_SERVICE}_no_npdu_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/npdu_tests/${TEST_NPDU_SERVICE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_NPDU_SERVICE_START_SCRIPT}
+ ${TEST_NPDU_SERVICE_ONE}
+ )
+
+ # Copy config file for service with npdu into $BUILDDIR/test
+ set(TEST_NPDU_SERVICE_CONFIG_FILE ${TEST_NPDU_SERVICE}_npdu.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/npdu_tests/conf/${TEST_NPDU_SERVICE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/npdu_tests/${TEST_NPDU_SERVICE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/npdu_tests/${TEST_NPDU_SERVICE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_NPDU_SERVICE_CONFIG_FILE}
+ ${TEST_NPDU_SERVICE_ONE}
+ )
+
+ # Copy bashscript to start service with npdu into $BUILDDIR/test
+ set(TEST_NPDU_SERVICE_START_SCRIPT ${TEST_NPDU_SERVICE}_npdu_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/npdu_tests/${TEST_NPDU_SERVICE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_NPDU_SERVICE_START_SCRIPT}
+ ${TEST_NPDU_SERVICE_ONE}
+ )
+
+ ##############################################################################
+
+ set(TEST_NPDU_CLIENT npdu_test_client)
+
+ set(TEST_NPDU_CLIENT_ONE npdu_test_client_1)
+ add_executable(${TEST_NPDU_CLIENT_ONE} npdu_tests/${TEST_NPDU_CLIENT}.cpp)
+ target_link_libraries(${TEST_NPDU_CLIENT_ONE}
+ ${VSOMEIP_NAME}
+ ${VSOMEIP_NAME}-cfg
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_NPDU_CLIENT_TWO npdu_test_client_2)
+ add_executable(${TEST_NPDU_CLIENT_TWO} npdu_tests/${TEST_NPDU_CLIENT}.cpp)
+ target_link_libraries(${TEST_NPDU_CLIENT_TWO}
+ ${VSOMEIP_NAME}
+ ${VSOMEIP_NAME}-cfg
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_NPDU_CLIENT_THREE npdu_test_client_3)
+ add_executable(${TEST_NPDU_CLIENT_THREE} npdu_tests/${TEST_NPDU_CLIENT}.cpp)
+ target_link_libraries(${TEST_NPDU_CLIENT_THREE}
+ ${VSOMEIP_NAME}
+ ${VSOMEIP_NAME}-cfg
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_NPDU_CLIENT_FOUR npdu_test_client_4)
+ add_executable(${TEST_NPDU_CLIENT_FOUR} npdu_tests/${TEST_NPDU_CLIENT}.cpp)
+ target_link_libraries(${TEST_NPDU_CLIENT_FOUR}
+ ${VSOMEIP_NAME}
+ ${VSOMEIP_NAME}-cfg
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ # Copy config files for client w/o npdu into $BUILDDIR/test
+ set(TEST_NPDU_CLIENT_CONFIG_FILE ${TEST_NPDU_CLIENT}_no_npdu.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/npdu_tests/conf/${TEST_NPDU_CLIENT_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/npdu_tests/${TEST_NPDU_CLIENT_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/npdu_tests/${TEST_NPDU_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_NPDU_CLIENT_CONFIG_FILE}
+ ${TEST_NPDU_CLIENT_ONE}
+ )
+
+ # Copy bashscript to start client w/o npdu into $BUILDDIR/test
+ set(TEST_NPDU_CLIENT_START_SCRIPT ${TEST_NPDU_CLIENT}_no_npdu_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/npdu_tests/${TEST_NPDU_CLIENT_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_NPDU_CLIENT_START_SCRIPT}
+ ${TEST_NPDU_CLIENT_ONE}
+ )
+
+ # Copy config file for client with npdu into $BUILDDIR/test
+ set(TEST_NPDU_CLIENT_CONFIG_FILE ${TEST_NPDU_CLIENT}_npdu.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/npdu_tests/conf/${TEST_NPDU_CLIENT_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/npdu_tests/${TEST_NPDU_CLIENT_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/npdu_tests/${TEST_NPDU_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_NPDU_CLIENT_CONFIG_FILE}
+ ${TEST_NPDU_CLIENT_ONE}
+ )
+
+ # Copy bashscript to start client with npdu into $BUILDDIR/test
+ set(TEST_NPDU_CLIENT_START_SCRIPT ${TEST_NPDU_CLIENT}_npdu_start.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/npdu_tests/${TEST_NPDU_CLIENT_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_NPDU_CLIENT_START_SCRIPT}
+ ${TEST_NPDU_CLIENT_ONE}
+ )
+
+ ##############################################################################
+
+ set(TEST_NPDU_STARTER ${TEST_NPDU_NAME}_starter.sh)
+ copy_to_builddir(${NETWORK_TEST_SRC_DIR}/npdu_tests/${TEST_NPDU_STARTER}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_NPDU_STARTER}
+ ${TEST_NPDU_DAEMON_CLIENT}
+ )
+endif()
+
+##############################################################################
+# someip tp tests
+##############################################################################
+
+if(NOT ${TESTS_BAT})
+ set(TEST_SOMEIPTP_NAME someip_tp_test)
+ set(TEST_SOMEIPTP_SERVICE ${TEST_SOMEIPTP_NAME}_service)
+
+ add_executable(${TEST_SOMEIPTP_SERVICE} someip_tp_tests/${TEST_SOMEIPTP_SERVICE}.cpp)
+ target_link_libraries(${TEST_SOMEIPTP_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ file(GLOB sd_sources
+ "../../implementation/service_discovery/src/*entry*.cpp"
+ "../../implementation/service_discovery/src/*option*.cpp"
+ "../../implementation/service_discovery/src/*message*.cpp"
+ )
+ set(TEST_SOMEIPTP_CLIENT ${TEST_SOMEIPTP_NAME}_msg_sender)
+ add_executable(${TEST_SOMEIPTP_CLIENT}
+ someip_tp_tests/${TEST_SOMEIPTP_CLIENT}.cpp
+ ${PROJECT_SOURCE_DIR}/implementation/message/src/deserializer.cpp
+ ${PROJECT_SOURCE_DIR}/implementation/message/src/message_impl.cpp
+ ${PROJECT_SOURCE_DIR}/implementation/message/src/payload_impl.cpp
+ ${PROJECT_SOURCE_DIR}/implementation/endpoints/src/tp.cpp
+ ${PROJECT_SOURCE_DIR}/implementation/endpoints/src/tp_reassembler.cpp
+ ${PROJECT_SOURCE_DIR}/implementation/endpoints/src/tp_message.cpp
+ ${sd_sources}
+ )
+
+ target_link_libraries(${TEST_SOMEIPTP_CLIENT}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ ${VSOMEIP_NAME}
+ ${VSOMEIP_NAME}-sd
+ )
+
+ # Copy service config file for external allow tests into $BUILDDIR/test
+ set(TEST_SOMEIPTP_MASTER_CONFIG_FILE ${TEST_SOMEIPTP_NAME}_master.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/someip_tp_tests/conf/${TEST_SOMEIPTP_MASTER_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/someip_tp_tests/${TEST_SOMEIPTP_MASTER_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/someip_tp_tests/${TEST_SOMEIPTP_MASTER_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SOMEIPTP_MASTER_CONFIG_FILE}
+ ${TEST_SOMEIPTP_CLIENT}
+ )
+
+ # Copy bashscript to start test (master) into $BUILDDIR/test
+ set(TEST_SOMEIPTP_MASTER_START_SCRIPT ${TEST_SOMEIPTP_NAME}_master_starter.sh)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/someip_tp_tests/conf/${TEST_SOMEIPTP_MASTER_START_SCRIPT}.in
+ ${NETWORK_TEST_SRC_DIR}/someip_tp_tests/${TEST_SOMEIPTP_MASTER_START_SCRIPT}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/someip_tp_tests/${TEST_SOMEIPTP_MASTER_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SOMEIPTP_MASTER_START_SCRIPT}
+ ${TEST_SOMEIPTP_SERVICE}
+ )
+endif()
+
+##############################################################################
+# second IP address tests
+##############################################################################
+
+if(NOT ${TESTS_BAT} AND ${TEST_SECOND_ADDRESS})
+ set(TEST_SECOND_ADDRESS_NAME second_address_test)
+ set(TEST_SECOND_ADDRESS_SERVICE ${TEST_SECOND_ADDRESS_NAME}_service)
+ set(TEST_SECOND_ADDRESS_CLIENT ${TEST_SECOND_ADDRESS_NAME}_client)
+
+ add_executable(${TEST_SECOND_ADDRESS_SERVICE}
+ second_address_tests/${TEST_SECOND_ADDRESS_SERVICE}.cpp
+ )
+ target_link_libraries(${TEST_SECOND_ADDRESS_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ add_executable(${TEST_SECOND_ADDRESS_CLIENT}
+ second_address_tests/${TEST_SECOND_ADDRESS_CLIENT}.cpp
+ )
+ target_link_libraries(${TEST_SECOND_ADDRESS_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_SECOND_ADDRESS_MASTER_SERVICE_UDP_CONFIG_FILE ${TEST_SECOND_ADDRESS_NAME}_master_service_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/conf/${TEST_SECOND_ADDRESS_MASTER_SERVICE_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/${TEST_SECOND_ADDRESS_MASTER_SERVICE_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/${TEST_SECOND_ADDRESS_MASTER_SERVICE_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SECOND_ADDRESS_MASTER_SERVICE_UDP_CONFIG_FILE}
+ ${TEST_SECOND_ADDRESS_SERVICE}
+ )
+
+ set(TEST_SECOND_ADDRESS_SLAVE_CLIENT_CONFIG_FILE ${TEST_SECOND_ADDRESS_NAME}_slave_client.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/conf/${TEST_SECOND_ADDRESS_SLAVE_CLIENT_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/${TEST_SECOND_ADDRESS_SLAVE_CLIENT_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/${TEST_SECOND_ADDRESS_SLAVE_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SECOND_ADDRESS_SLAVE_CLIENT_CONFIG_FILE}
+ ${TEST_SECOND_ADDRESS_CLIENT}
+ )
+
+ set(TEST_SECOND_ADDRESS_MASTER_CLIENT_CONFIG_FILE ${TEST_SECOND_ADDRESS_NAME}_master_client.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/conf/${TEST_SECOND_ADDRESS_MASTER_CLIENT_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/${TEST_SECOND_ADDRESS_MASTER_CLIENT_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/${TEST_SECOND_ADDRESS_MASTER_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SECOND_ADDRESS_MASTER_CLIENT_CONFIG_FILE}
+ ${TEST_SECOND_ADDRESS_CLIENT}
+ )
+
+ set(TEST_SECOND_ADDRESS_SLAVE_SERVICE_UDP_CONFIG_FILE ${TEST_SECOND_ADDRESS_NAME}_slave_service_udp.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/conf/${TEST_SECOND_ADDRESS_SLAVE_SERVICE_UDP_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/${TEST_SECOND_ADDRESS_SLAVE_SERVICE_UDP_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/${TEST_SECOND_ADDRESS_SLAVE_SERVICE_UDP_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SECOND_ADDRESS_SLAVE_SERVICE_UDP_CONFIG_FILE}
+ ${TEST_SECOND_ADDRESS_SERVICE}
+ )
+
+ set(TEST_SECOND_ADDRESS_MASTER_START_SCRIPT ${TEST_SECOND_ADDRESS_NAME}_master_starter.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/${TEST_SECOND_ADDRESS_MASTER_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SECOND_ADDRESS_MASTER_START_SCRIPT}
+ ${TEST_SECOND_ADDRESS_SERVICE}
+ )
+
+ set(TEST_SECOND_ADDRESS_SLAVE_START_SCRIPT ${TEST_SECOND_ADDRESS_NAME}_slave_starter.sh)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/conf/${TEST_SECOND_ADDRESS_SLAVE_START_SCRIPT}.in
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/${TEST_SECOND_ADDRESS_SLAVE_START_SCRIPT}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/second_address_tests/${TEST_SECOND_ADDRESS_SLAVE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SECOND_ADDRESS_SLAVE_START_SCRIPT}
+ ${TEST_SECOND_ADDRESS_CLIENT}
+ )
+endif()
+
+##############################################################################
+# suspend resume tests
+##############################################################################
+if(NOT ${TESTS_BAT})
+
+ set(TEST_SUSPEND_RESUME_NAME suspend_resume_test)
+ set(TEST_SUSPEND_RESUME_SERVICE ${TEST_SUSPEND_RESUME_NAME}_service)
+ set(TEST_SUSPEND_RESUME_CLIENT ${TEST_SUSPEND_RESUME_NAME}_client)
+
+ add_executable(${TEST_SUSPEND_RESUME_SERVICE}
+ suspend_resume_tests/${TEST_SUSPEND_RESUME_SERVICE}.cpp
+ )
+ target_link_libraries(${TEST_SUSPEND_RESUME_SERVICE}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ add_executable(${TEST_SUSPEND_RESUME_CLIENT}
+ suspend_resume_tests/${TEST_SUSPEND_RESUME_CLIENT}.cpp
+ )
+ target_link_libraries(${TEST_SUSPEND_RESUME_CLIENT}
+ ${VSOMEIP_NAME}
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ ${TEST_LINK_LIBRARIES}
+ )
+
+ set(TEST_SUSPEND_RESUME_SERVICE_CONFIG_FILE ${TEST_SUSPEND_RESUME_SERVICE}.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/suspend_resume_tests/conf/${TEST_SUSPEND_RESUME_SERVICE_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/suspend_resume_tests/${TEST_SUSPEND_RESUME_SERVICE_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/suspend_resume_tests/${TEST_SUSPEND_RESUME_SERVICE_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUSPEND_RESUME_SERVICE_CONFIG_FILE}
+ ${TEST_SUSPEND_RESUME_CLIENT}
+ )
+
+ set(TEST_SUSPEND_RESUME_CLIENT_CONFIG_FILE ${TEST_SUSPEND_RESUME_CLIENT}.json)
+ configure_file(
+ ${NETWORK_TEST_SRC_DIR}/suspend_resume_tests/conf/${TEST_SUSPEND_RESUME_CLIENT_CONFIG_FILE}.in
+ ${NETWORK_TEST_SRC_DIR}/suspend_resume_tests/${TEST_SUSPEND_RESUME_CLIENT_CONFIG_FILE}
+ @ONLY)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/suspend_resume_tests/${TEST_SUSPEND_RESUME_CLIENT_CONFIG_FILE}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUSPEND_RESUME_CLIENT_CONFIG_FILE}
+ ${TEST_SUSPEND_RESUME_CLIENT}
+ )
+
+ set(TEST_SUSPEND_RESUME_MASTER_START_SCRIPT ${TEST_SUSPEND_RESUME_NAME}_master_starter.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/suspend_resume_tests/${TEST_SUSPEND_RESUME_MASTER_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUSPEND_RESUME_MASTER_START_SCRIPT}
+ ${TEST_SUSPEND_RESUME_CLIENT}
+ )
+
+ set(TEST_SUSPEND_RESUME_SLAVE_START_SCRIPT ${TEST_SUSPEND_RESUME_NAME}_slave_starter.sh)
+ copy_to_builddir(
+ ${NETWORK_TEST_SRC_DIR}/suspend_resume_tests/${TEST_SUSPEND_RESUME_SLAVE_START_SCRIPT}
+ ${NETWORK_TEST_BIN_DIR}/${TEST_SUSPEND_RESUME_SLAVE_START_SCRIPT}
+ ${TEST_SUSPEND_RESUME_CLIENT}
+ )
+
+endif()
+
+##############################################################################
+# Add for every test a dependency to gtest
+##############################################################################
+
+if(NOT ${TESTS_BAT})
+ add_dependencies(${TEST_CONFIGURATION} gtest)
+ add_dependencies(${TEST_APPLICATION} gtest)
+ add_dependencies(${TEST_APPLICATION_SINGLE_PROCESS_NAME} gtest)
+ add_dependencies(${TEST_APPLICATION_AVAILABILITY_NAME} gtest)
+ add_dependencies(${TEST_MAGIC_COOKIES_CLIENT} gtest)
+ add_dependencies(${TEST_MAGIC_COOKIES_SERVICE} gtest)
+ add_dependencies(${TEST_HEADER_FACTORY} gtest)
+ add_dependencies(${TEST_HEADER_FACTORY_CLIENT} gtest)
+ add_dependencies(${TEST_HEADER_FACTORY_SERVICE} gtest)
+ add_dependencies(${TEST_LOCAL_ROUTING_SERVICE} gtest)
+ add_dependencies(${TEST_LOCAL_ROUTING_CLIENT} gtest)
+ add_dependencies(${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE} gtest)
+ add_dependencies(${TEST_PAYLOAD_SERVICE} gtest)
+ add_dependencies(${TEST_PAYLOAD_CLIENT} gtest)
+ add_dependencies(${TEST_BIG_PAYLOAD_SERVICE} gtest)
+ add_dependencies(${TEST_BIG_PAYLOAD_CLIENT} gtest)
+ add_dependencies(${TEST_CLIENT_ID_SERVICE} gtest)
+ add_dependencies(${TEST_CLIENT_ID_UTILITY} gtest)
+ add_dependencies(${TEST_DEBOUNCE_CLIENT} gtest)
+ add_dependencies(${TEST_DEBOUNCE_SERVICE} gtest)
+ add_dependencies(${TEST_SUBSCRIBE_NOTIFY_SERVICE} gtest)
+ add_dependencies(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE} gtest)
+ add_dependencies(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT} gtest)
+ add_dependencies(${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE} gtest)
+ add_dependencies(${TEST_CPU_LOAD_SERVICE} gtest)
+ add_dependencies(${TEST_CPU_LOAD_CLIENT} gtest)
+ add_dependencies(${TEST_INITIAL_EVENT_SERVICE} gtest)
+ add_dependencies(${TEST_INITIAL_EVENT_CLIENT} gtest)
+ add_dependencies(${TEST_INITIAL_EVENT_AVAILABILITY_CHECKER} gtest)
+ add_dependencies(${TEST_INITIAL_EVENT_STOP_SERVICE} gtest)
+ add_dependencies(${TEST_OFFER_SERVICE} gtest)
+ add_dependencies(${TEST_OFFER_CLIENT} gtest)
+ add_dependencies(${TEST_OFFER_SERVICE_EXTERNAL} gtest)
+ add_dependencies(${TEST_OFFER_EXTERNAL_SD_MESSAGE_SENDER} gtest)
+ add_dependencies(${TEST_OFFERED_SERVICES_INFO_CLIENT} gtest)
+ add_dependencies(${TEST_OFFERED_SERVICES_INFO_SERVICE} gtest)
+ add_dependencies(${TEST_PENDING_SUBSCRIPTION_SERVICE} gtest)
+ add_dependencies(${TEST_PENDING_SUBSCRIPTION_CLIENT} gtest)
+ add_dependencies(${TEST_MALICIOUS_DATA_SERVICE} gtest)
+ add_dependencies(${TEST_MALICIOUS_DATA_CLIENT} gtest)
+ if (${TEST_SECURITY})
+ add_dependencies(${TEST_SECURITY_SERVICE} gtest)
+ add_dependencies(${TEST_SECURITY_CLIENT} gtest)
+ endif()
+ add_dependencies(${TEST_E2E_SERVICE} gtest)
+ add_dependencies(${TEST_E2E_CLIENT} gtest)
+ if (${TEST_E2E_PROFILE_04})
+ add_dependencies(${TEST_E2E_PROFILE_04_SERVICE} gtest)
+ add_dependencies(${TEST_E2E_PROFILE_04_CLIENT} gtest)
+ endif()
+ add_dependencies(${TEST_EVENT_SERVICE} gtest)
+ add_dependencies(${TEST_EVENT_CLIENT} gtest)
+ add_dependencies(${TEST_NPDU_SERVICE_ONE} gtest)
+ add_dependencies(${TEST_NPDU_SERVICE_TWO} gtest)
+ add_dependencies(${TEST_NPDU_SERVICE_THREE} gtest)
+ add_dependencies(${TEST_NPDU_SERVICE_FOUR} gtest)
+ add_dependencies(${TEST_NPDU_CLIENT_ONE} gtest)
+ add_dependencies(${TEST_NPDU_CLIENT_TWO} gtest)
+ add_dependencies(${TEST_NPDU_CLIENT_THREE} gtest)
+ add_dependencies(${TEST_NPDU_CLIENT_FOUR} gtest)
+ add_dependencies(${TEST_NPDU_DAEMON_CLIENT} gtest)
+ add_dependencies(${TEST_NPDU_DAEMON_SERVICE} gtest)
+ add_dependencies(${TEST_SOMEIPTP_CLIENT} gtest)
+ add_dependencies(${TEST_SOMEIPTP_SERVICE} gtest)
+ if(${TEST_SECOND_ADDRESS})
+ add_dependencies(${TEST_SECOND_ADDRESS_CLIENT} gtest)
+ add_dependencies(${TEST_SECOND_ADDRESS_SERVICE} gtest)
+ endif()
+ add_dependencies(${TEST_SUSPEND_RESUME_CLIENT} gtest)
+ add_dependencies(${TEST_SUSPEND_RESUME_SERVICE} gtest)
+else()
+ add_dependencies(${TEST_LOCAL_ROUTING_SERVICE} gtest)
+ add_dependencies(${TEST_LOCAL_ROUTING_CLIENT} gtest)
+endif()
+
+##############################################################################
+# Add tests to the target build_network_tests
+##############################################################################
+
+if(NOT ${TESTS_BAT})
+ add_dependencies(build_network_tests ${TEST_CONFIGURATION})
+ add_dependencies(build_network_tests ${TEST_APPLICATION})
+ add_dependencies(build_network_tests ${TEST_APPLICATION_SINGLE_PROCESS_NAME})
+ add_dependencies(build_network_tests ${TEST_APPLICATION_AVAILABILITY_NAME})
+ add_dependencies(build_network_tests ${TEST_MAGIC_COOKIES_CLIENT})
+ add_dependencies(build_network_tests ${TEST_MAGIC_COOKIES_SERVICE})
+ add_dependencies(build_network_tests ${TEST_HEADER_FACTORY})
+ add_dependencies(build_network_tests ${TEST_HEADER_FACTORY_CLIENT})
+ add_dependencies(build_network_tests ${TEST_HEADER_FACTORY_SERVICE})
+ add_dependencies(build_network_tests ${TEST_LOCAL_ROUTING_SERVICE})
+ add_dependencies(build_network_tests ${TEST_LOCAL_ROUTING_CLIENT})
+ add_dependencies(build_network_tests ${TEST_EXTERNAL_LOCAL_ROUTING_SERVICE})
+ add_dependencies(build_network_tests ${TEST_PAYLOAD_SERVICE})
+ add_dependencies(build_network_tests ${TEST_PAYLOAD_CLIENT})
+ add_dependencies(build_network_tests ${TEST_BIG_PAYLOAD_SERVICE})
+ add_dependencies(build_network_tests ${TEST_BIG_PAYLOAD_CLIENT})
+ add_dependencies(build_network_tests ${TEST_CLIENT_ID_SERVICE})
+ add_dependencies(build_network_tests ${TEST_CLIENT_ID_UTILITY})
+ add_dependencies(build_network_tests ${TEST_DEBOUNCE_CLIENT})
+ add_dependencies(build_network_tests ${TEST_DEBOUNCE_SERVICE})
+ add_dependencies(build_network_tests ${TEST_SUBSCRIBE_NOTIFY_SERVICE})
+ add_dependencies(build_network_tests ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_SERVICE})
+ add_dependencies(build_network_tests ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_CLIENT})
+ add_dependencies(build_network_tests ${TEST_SUBSCRIBE_NOTIFY_ONE_SERVICE})
+ add_dependencies(build_network_tests ${TEST_CPU_LOAD_SERVICE})
+ add_dependencies(build_network_tests ${TEST_CPU_LOAD_CLIENT})
+ add_dependencies(build_network_tests ${TEST_INITIAL_EVENT_SERVICE})
+ add_dependencies(build_network_tests ${TEST_INITIAL_EVENT_CLIENT})
+ add_dependencies(build_network_tests ${TEST_INITIAL_EVENT_AVAILABILITY_CHECKER})
+ add_dependencies(build_network_tests ${TEST_INITIAL_EVENT_STOP_SERVICE})
+ add_dependencies(build_network_tests ${TEST_OFFER_SERVICE})
+ add_dependencies(build_network_tests ${TEST_OFFER_CLIENT})
+ add_dependencies(build_network_tests ${TEST_OFFER_SERVICE_EXTERNAL})
+ add_dependencies(build_network_tests ${TEST_OFFER_EXTERNAL_SD_MESSAGE_SENDER})
+ add_dependencies(build_network_tests ${TEST_OFFER_BIG_SERVICE})
+ add_dependencies(build_network_tests ${TEST_OFFER_BIG_CLIENT})
+ add_dependencies(build_network_tests ${TEST_RESTART_ROUTING_SERVICE})
+ add_dependencies(build_network_tests ${TEST_RESTART_ROUTING_CLIENT})
+ if (${TEST_SECURITY})
+ add_dependencies(build_network_tests ${TEST_SECURITY_SERVICE})
+ add_dependencies(build_network_tests ${TEST_SECURITY_CLIENT})
+ endif()
+ add_dependencies(build_network_tests ${TEST_OFFERED_SERVICES_INFO_CLIENT})
+ add_dependencies(build_network_tests ${TEST_OFFERED_SERVICES_INFO_SERVICE})
+ add_dependencies(build_network_tests ${TEST_PENDING_SUBSCRIPTION_SERVICE})
+ add_dependencies(build_network_tests ${TEST_PENDING_SUBSCRIPTION_CLIENT})
+ add_dependencies(build_network_tests ${TEST_MALICIOUS_DATA_SERVICE})
+ add_dependencies(build_network_tests ${TEST_MALICIOUS_DATA_CLIENT})
+ add_dependencies(build_network_tests ${TEST_E2E_SERVICE})
+ add_dependencies(build_network_tests ${TEST_E2E_CLIENT})
+ if (${TEST_E2E_PROFILE_04})
+ add_dependencies(build_network_tests ${TEST_E2E_PROFILE_04_SERVICE})
+ add_dependencies(build_network_tests ${TEST_E2E_PROFILE_04_CLIENT})
+ endif()
+ add_dependencies(build_network_tests ${TEST_EVENT_SERVICE})
+ add_dependencies(build_network_tests ${TEST_EVENT_CLIENT})
+ add_dependencies(build_network_tests ${TEST_NPDU_SERVICE_ONE})
+ add_dependencies(build_network_tests ${TEST_NPDU_SERVICE_TWO})
+ add_dependencies(build_network_tests ${TEST_NPDU_SERVICE_THREE})
+ add_dependencies(build_network_tests ${TEST_NPDU_SERVICE_FOUR})
+ add_dependencies(build_network_tests ${TEST_NPDU_CLIENT_ONE})
+ add_dependencies(build_network_tests ${TEST_NPDU_CLIENT_TWO})
+ add_dependencies(build_network_tests ${TEST_NPDU_CLIENT_THREE})
+ add_dependencies(build_network_tests ${TEST_NPDU_CLIENT_FOUR})
+ add_dependencies(build_network_tests ${TEST_NPDU_DAEMON_CLIENT})
+ add_dependencies(build_network_tests ${TEST_NPDU_DAEMON_SERVICE})
+ add_dependencies(build_network_tests ${TEST_SOMEIPTP_CLIENT})
+ add_dependencies(build_network_tests ${TEST_SOMEIPTP_SERVICE})
+ if(${TEST_SECOND_ADDRESS})
+ add_dependencies(build_network_tests ${TEST_SECOND_ADDRESS_CLIENT})
+ add_dependencies(build_network_tests ${TEST_SECOND_ADDRESS_SERVICE})
+ endif()
+ add_dependencies(build_network_tests ${TEST_SUSPEND_RESUME_CLIENT})
+ add_dependencies(build_network_tests ${TEST_SUSPEND_RESUME_SERVICE})
+else()
+ add_dependencies(build_network_tests ${TEST_LOCAL_ROUTING_SERVICE})
+ add_dependencies(build_network_tests ${TEST_LOCAL_ROUTING_CLIENT})
+endif()
+
+# some tests require the routingmanagerd
+add_dependencies(build_network_tests routingmanagerd)
+
+##############################################################################
+# Add tests
+##############################################################################
+
+if(NOT ${TESTS_BAT})
+ add_test(NAME ${TEST_CONFIGURATION}
+ COMMAND ${TEST_CONFIGURATION}
+ )
+
+ # application test
+ add_test(NAME ${TEST_APPLICATION}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_APPLICATION_STARTER}
+ )
+ set_tests_properties(${TEST_APPLICATION} PROPERTIES TIMEOUT 80)
+ add_test(NAME ${TEST_APPLICATION_SINGLE_PROCESS_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_APPLICATION_SINGLE_PROCESS_STARTER}
+ )
+ set_tests_properties(${TEST_APPLICATION_SINGLE_PROCESS_NAME} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_APPLICATION_AVAILABILITY_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_APPLICATION_AVAILABILITY_STARTER}
+ )
+ set_tests_properties(${TEST_APPLICATION_AVAILABILITY_NAME} PROPERTIES TIMEOUT 120)
+
+ # magic cookies test
+ add_test(NAME ${TEST_MAGIC_COOKIES_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_MAGIC_COOKIES_STARTER}
+ )
+ set_tests_properties(${TEST_MAGIC_COOKIES_NAME} PROPERTIES TIMEOUT 250)
+
+ # Header/Factory tets
+ add_test(NAME ${TEST_HEADER_FACTORY_NAME} COMMAND ${TEST_HEADER_FACTORY})
+ add_test(NAME ${TEST_HEADER_FACTORY_NAME}_send_receive
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_HEADER_FACTORY_STARTER}
+ )
+
+ # Routing tests
+ add_test(NAME ${TEST_LOCAL_ROUTING_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_ROUTING_STARTER}
+ )
+
+ add_test(NAME ${TEST_EXTERNAL_LOCAL_ROUTING_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_ROUTING_STARTER}
+ )
+ set_tests_properties(${TEST_EXTERNAL_LOCAL_ROUTING_NAME} PROPERTIES TIMEOUT 120)
+
+ # Payload tests
+ add_test(NAME ${TEST_LOCAL_PAYLOAD_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_PAYLOAD_STARTER}
+ )
+ add_test(NAME ${TEST_LOCAL_PAYLOAD_HUGE_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_PAYLOAD_HUGE_STARTER}
+ )
+ set_tests_properties(${TEST_LOCAL_PAYLOAD_HUGE_NAME} PROPERTIES TIMEOUT 960)
+ add_test(NAME ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_STARTER}
+ )
+ add_test(NAME ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_STARTER}
+ )
+ set_tests_properties(${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_NAME} PROPERTIES TIMEOUT 480)
+ add_test(NAME ${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_AND_EXTERNAL_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_LOCAL_AND_EXTERNAL_STARTER}
+ )
+ set_tests_properties(${TEST_EXTERNAL_LOCAL_PAYLOAD_CLIENT_EXTERNAL_NAME} PROPERTIES TIMEOUT 480)
+
+ # big payload tests
+ add_test(NAME ${TEST_LOCAL_BIG_PAYLOAD_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_BIG_PAYLOAD_STARTER}
+ )
+ set_tests_properties(${TEST_LOCAL_BIG_PAYLOAD_NAME} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_LOCAL_BIG_PAYLOAD_NAME_RANDOM}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_BIG_PAYLOAD_STARTER} RANDOM
+ )
+ set_tests_properties(${TEST_LOCAL_BIG_PAYLOAD_NAME_RANDOM} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_LOCAL_BIG_PAYLOAD_NAME_LIMITED}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_BIG_PAYLOAD_STARTER} LIMITED
+ )
+ set_tests_properties(${TEST_LOCAL_BIG_PAYLOAD_NAME_LIMITED} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_LOCAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_BIG_PAYLOAD_STARTER} QUEUELIMITEDGENERAL
+ )
+ set_tests_properties(${TEST_LOCAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_LOCAL_TCP_BIG_PAYLOAD_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_TCP_BIG_PAYLOAD_STARTER}
+ )
+ set_tests_properties(${TEST_LOCAL_TCP_BIG_PAYLOAD_NAME} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_LOCAL_TCP_BIG_PAYLOAD_NAME_RANDOM}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_TCP_BIG_PAYLOAD_STARTER} RANDOM
+ )
+ set_tests_properties(${TEST_LOCAL_TCP_TCP_BIG_PAYLOAD_NAME_RANDOM} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_LOCAL_TCP_BIG_PAYLOAD_NAME_LIMITED}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_TCP_BIG_PAYLOAD_STARTER} LIMITED
+ )
+ set_tests_properties(${TEST_LOCAL_TCP_BIG_PAYLOAD_NAME_LIMITED} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_LOCAL_TCP_BIG_PAYLOAD_NAME_QUEUE_LIMITED}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_TCP_BIG_PAYLOAD_STARTER} QUEUELIMITEDGENERAL
+ )
+ set_tests_properties(${TEST_LOCAL_TCP_BIG_PAYLOAD_NAME_QUEUE_LIMITED} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_EXTERNAL_BIG_PAYLOAD_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER}
+ )
+ set_tests_properties(${TEST_EXTERNAL_BIG_PAYLOAD_NAME} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_EXTERNAL_BIG_PAYLOAD_NAME_RANDOM}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER} RANDOM
+ )
+ set_tests_properties(${TEST_EXTERNAL_BIG_PAYLOAD_NAME_RANDOM} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_EXTERNAL_BIG_PAYLOAD_NAME_LIMITED}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER} LIMITED
+ )
+ set_tests_properties(${TEST_EXTERNAL_BIG_PAYLOAD_NAME_LIMITED} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_EXTERNAL_BIG_PAYLOAD_NAME_LIMITED_GENERAL}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER} LIMITEDGENERAL
+ )
+ set_tests_properties(${TEST_EXTERNAL_BIG_PAYLOAD_NAME_LIMITED_GENERAL} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_EXTERNAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED_GENERAL}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER} QUEUELIMITEDGENERAL
+ )
+ set_tests_properties(${TEST_EXTERNAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED_GENERAL} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_EXTERNAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED_SPECIFIC}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER} QUEUELIMITEDSPECIFIC
+ )
+ set_tests_properties(${TEST_EXTERNAL_BIG_PAYLOAD_NAME_QUEUE_LIMITED_SPECIFIC} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_EXTERNAL_BIG_PAYLOAD_NAME_UDP}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EXTERNAL_BIG_PAYLOAD_STARTER} UDP
+ )
+ set_tests_properties(${TEST_EXTERNAL_BIG_PAYLOAD_NAME_UDP} PROPERTIES TIMEOUT 120)
+
+ # client id tests
+ add_test(NAME ${TEST_CLIENT_ID_NAME}_diff_client_ids_diff_ports
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_MASTER_STARTER} ${TEST_CLIENT_ID_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE})
+ set_tests_properties(${TEST_CLIENT_ID_NAME}_diff_client_ids_diff_ports PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_CLIENT_ID_NAME}_diff_client_ids_same_ports
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_MASTER_STARTER} ${TEST_CLIENT_ID_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE})
+ set_tests_properties(${TEST_CLIENT_ID_NAME}_diff_client_ids_same_ports PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_CLIENT_ID_NAME}_diff_client_ids_partial_same_ports
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_MASTER_STARTER} ${TEST_CLIENT_ID_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE})
+ set_tests_properties(${TEST_CLIENT_ID_NAME}_diff_client_ids_partial_same_ports PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_CLIENT_ID_UTILITY}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_UTILITY})
+ set_property(TEST ${TEST_CLIENT_ID_UTILITY}
+ APPEND PROPERTY ENVIRONMENT
+ "VSOMEIP_CONFIGURATION=${TEST_CLIENT_ID_UTILITY_CONFIG_FILE}")
+ set_tests_properties(${TEST_CLIENT_ID_UTILITY} PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_CLIENT_ID_UTILITY}_masked_511
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_UTILITY})
+ set_property(TEST ${TEST_CLIENT_ID_UTILITY}_masked_511
+ APPEND PROPERTY ENVIRONMENT
+ "VSOMEIP_CONFIGURATION=${TEST_CLIENT_ID_UTILITY_MASKED_511_CONFIG_FILE}")
+ set_tests_properties(${TEST_CLIENT_ID_UTILITY}_masked_511 PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_CLIENT_ID_UTILITY}_masked_4095
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_UTILITY})
+ set_property(TEST ${TEST_CLIENT_ID_UTILITY}_masked_4095
+ APPEND PROPERTY ENVIRONMENT
+ "VSOMEIP_CONFIGURATION=${TEST_CLIENT_ID_UTILITY_MASKED_4095_CONFIG_FILE}")
+ set_tests_properties(${TEST_CLIENT_ID_UTILITY}_masked_4095 PROPERTIES TIMEOUT 600)
+
+ add_test(NAME ${TEST_CLIENT_ID_UTILITY}_masked_127
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_UTILITY})
+ set_property(TEST ${TEST_CLIENT_ID_UTILITY}_masked_127
+ APPEND PROPERTY ENVIRONMENT
+ "VSOMEIP_CONFIGURATION=${TEST_CLIENT_ID_UTILITY_MASKED_127_CONFIG_FILE}")
+ set_tests_properties(${TEST_CLIENT_ID_UTILITY}_masked_127 PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_CLIENT_ID_UTILITY}_discontinuous_masked_511
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_CLIENT_ID_UTILITY})
+ set_property(TEST ${TEST_CLIENT_ID_UTILITY}_discontinuous_masked_511
+ APPEND PROPERTY ENVIRONMENT
+ "VSOMEIP_CONFIGURATION=${TEST_CLIENT_ID_UTILITY_MASKED_DISCONTINUOUS_511_CONFIG_FILE}")
+ set_tests_properties(${TEST_CLIENT_ID_UTILITY}_discontinuous_masked_511 PROPERTIES TIMEOUT 120)
+
+ # debounce tests
+ add_test(NAME ${TEST_DEBOUNCE_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_DEBOUNCE_MASTER_STARTER})
+ set_tests_properties(${TEST_DEBOUNCE_UTILITY} PROPERTIES TIMEOUT 30)
+
+ # subscribe notify tests (local communication via UDS)
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_udp_local_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_LOCAL_TCP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_udp_local_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_tcp_local_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_LOCAL_TCP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_tcp_local_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_both_tcp_and_udp_local_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP_AND_UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_both_tcp_and_udp_local_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_udp_local_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_LOCAL_TCP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_udp_local_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_tcp_local_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_LOCAL_TCP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_tcp_local_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_both_tcp_and_udp_local_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP_AND_UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_both_tcp_and_udp_local_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_partial_same_ports_both_tcp_and_udp_local_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP_AND_UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_LOCAL_TCP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_partial_same_ports_both_tcp_and_udp_local_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_udp_local_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_LOCAL_TCP_CONFIG_FILE} SAME_SERVICE_ID)
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_udp_local_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_autoconfig_udp_local_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_LOCAL_TCP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_udp_local_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_udp_local_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_LOCAL_TCP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_udp_local_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_tcp_local_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER} TCP ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_LOCAL_TCP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_tcp_local_tcp PROPERTIES TIMEOUT 120)
+
+ # subscribe_notify_tests (local communication via TCP)
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_both_tcp_and_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP_AND_UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_both_tcp_and_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP_AND_UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_partial_same_ports_both_tcp_and_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} TCP_AND_UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_partial_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_UDP_CONFIG_FILE} SAME_SERVICE_ID)
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_autoconfig_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_DIFF_IDS_DIFF_PORTS_AUTOCONFIG_MASTER_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_NAME}_diff_client_ids_diff_ports_same_service_id_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_STARTER} TCP ${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_MASTER_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_ONE_EVENT_TWO_EVENTGROUPS_NAME}_tcp PROPERTIES TIMEOUT 120)
+
+ # subscribe notify one id tests
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_MASTER_STARTER} UDP ${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_MASTER_STARTER} TCP ${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_both_tcp_and_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUBSCRIBE_NOTIFY_ONE_MASTER_STARTER} TCP_AND_UDP ${TEST_SUBSCRIBE_NOTIFY_ONE_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE})
+ set_tests_properties(${TEST_SUBSCRIBE_NOTIFY_ONE_NAME}_diff_client_ids_diff_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
+
+ # cpu load tests
+ add_test(NAME ${TEST_CPU_LOAD_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_CPU_LOAD_MASTER_STARTER}
+ )
+ set_tests_properties(${TEST_CPU_LOAD_NAME} PROPERTIES TIMEOUT 3000)
+
+ # initial event tests
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE} UDP)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE} TCP)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_both_tcp_and_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE} UDP)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE} TCP)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_both_tcp_and_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_partial_same_ports_both_tcp_and_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_partial_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_same_service_id_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE} TCP_AND_UDP SAME_SERVICE_ID)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_diff_ports_same_service_id_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE} UDP MULTIPLE_EVENTS)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE} TCP MULTIPLE_EVENTS)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_both_tcp_and_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP MULTIPLE_EVENTS)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_same_ports_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE} UDP MULTIPLE_EVENTS)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_same_ports_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_same_ports_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE} TCP MULTIPLE_EVENTS)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_same_ports_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_same_ports_both_tcp_and_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP MULTIPLE_EVENTS)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_partial_same_ports_both_tcp_and_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP MULTIPLE_EVENTS)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_partial_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_same_service_id_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE} TCP_AND_UDP SAME_SERVICE_ID MULTIPLE_EVENTS)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_same_service_id_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE} UDP MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE} TCP MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_both_tcp_and_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_same_ports_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE} UDP MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_same_ports_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_same_ports_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_TCP_CONFIG_FILE} TCP MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_same_ports_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_same_ports_both_tcp_and_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_partial_same_ports_both_tcp_and_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_PARTIAL_SAME_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_partial_same_ports_both_tcp_and_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_same_service_id_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_SAME_SERVICEID_MASTER_CONFIG_FILE} TCP_AND_UDP SAME_SERVICE_ID MULTIPLE_EVENTS SUBSCRIBE_ON_AVAILABILITY)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_subscribe_on_availability_diff_client_ids_diff_ports_same_service_id_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_partial_subscription_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_UDP_CONFIG_FILE} UDP MULTIPLE_EVENTS SUBSCRIBE_ONLY_ONE)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_partial_subscription_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_partial_subscription_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_TCP_CONFIG_FILE} TCP MULTIPLE_EVENTS SUBSCRIBE_ONLY_ONE)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_partial_subscription_tcp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_partial_subscription_both_tcp_and_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_DIFF_PORTS_MASTER_CONFIG_FILE} TCP_AND_UDP MULTIPLE_EVENTS SUBSCRIBE_ONLY_ONE)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_multiple_events_diff_client_ids_diff_ports_partial_subscription_both_tcp_and_udp PROPERTIES TIMEOUT 120)
+
+ add_test(NAME ${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_udp_client_subscribes_twice
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_INITIAL_EVENT_MASTER_STARTER} ${TEST_INITIAL_EVENT_DIFF_IDS_SAME_PORTS_MASTER_UDP_CONFIG_FILE} UDP CLIENT_SUBSCRIBES_TWICE)
+ set_tests_properties(${TEST_INITIAL_EVENT_NAME}_diff_client_ids_same_ports_udp_client_subscribes_twice PROPERTIES TIMEOUT 120)
+
+ # offer tests
+ add_test(NAME ${TEST_OFFER_NAME}_local
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_OFFER_LOCAL_STARTER})
+ set_tests_properties(${TEST_OFFER_NAME}_local PROPERTIES TIMEOUT 180)
+ add_test(NAME ${TEST_OFFER_NAME}_external
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_OFFER_EXTERNAL_MASTER_STARTER})
+ set_tests_properties(${TEST_OFFER_NAME}_local PROPERTIES TIMEOUT 360)
+ add_test(NAME ${TEST_OFFER_BIG_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_OFFER_BIG_MASTER_STARTER})
+ set_tests_properties(${TEST_OFFER_BIG_NAME} PROPERTIES TIMEOUT 360)
+
+ # offered services info tets
+ add_test(NAME ${TEST_OFFERED_SERVICES_INFO_NAME}_local
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_OFFERED_SERVICES_INFO_LOCAL_STARTER})
+ set_tests_properties(${TEST_OFFERED_SERVICES_INFO_NAME}_local PROPERTIES TIMEOUT 180)
+
+ # Restart-Routing tests
+ add_test(NAME ${TEST_RESTART_ROUTING_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_RESTART_ROUTING_STARTER}
+ )
+ if (${TEST_SECURITY})
+ # Security tests
+ add_test(NAME ${TEST_SECURITY_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SECURITY_SERVICE_LOCAL_START_SCRIPT}
+ )
+ add_test(NAME ${TEST_SECURITY_NAME}_external_allow
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SECURITY_EXTERNAL_MASTER_START_SCRIPT} security_test_config_client_external_allow.json --allow
+ )
+ add_test(NAME ${TEST_SECURITY_NAME}_external_deny
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SECURITY_EXTERNAL_MASTER_START_SCRIPT} security_test_config_client_external_deny.json --deny
+ )
+ endif()
+
+ # pending subscriptions test
+ add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_subscribe
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} SUBSCRIBE)
+ set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_subscribe PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_alternating_subscribe_unsubscribe
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} SUBSCRIBE_UNSUBSCRIBE)
+ set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_alternating_subscribe_unsubscribe PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_unsubscribe
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} UNSUBSCRIBE)
+ set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_unsubscribe PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_alternating_subscribe_unsubscribe_nack
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} SUBSCRIBE_UNSUBSCRIBE_NACK)
+ set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_alternating_subscribe_unsubscribe_nack PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_alternating_subscribe_unsubscribe_same_port
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} SUBSCRIBE_UNSUBSCRIBE_SAME_PORT)
+ set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_alternating_subscribe_unsubscribe_same_port PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_subscribe_resubscribe_mixed
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} SUBSCRIBE_RESUBSCRIBE_MIXED)
+ set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_subscribe_resubscribe_mixed PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_subscribe_stopsubscribe_subscribe
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} SUBSCRIBE_STOPSUBSCRIBE_SUBSCRIBE)
+ set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_subscribe_stopsubscribe_subscribe PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_PENDING_SUBSCRIPTION_NAME}_send_request_to_sd_port
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_PENDING_SUBSCRIPTION_MASTER_STARTER} REQUEST_TO_SD)
+ set_tests_properties(${TEST_PENDING_SUBSCRIPTION_NAME}_send_request_to_sd_port PROPERTIES TIMEOUT 180)
+
+ # malicious data test
+ add_test(NAME ${TEST_MALICIOUS_DATA_NAME}_events
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_MALICIOUS_DATA_MASTER_STARTER} MALICIOUS_EVENTS)
+ set_tests_properties(${TEST_MALICIOUS_DATA_NAME}_events PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_MALICIOUS_DATA_NAME}_protocol_version
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_MALICIOUS_DATA_MASTER_STARTER} PROTOCOL_VERSION)
+ set_tests_properties(${TEST_MALICIOUS_DATA_NAME}_protocol_version PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_MALICIOUS_DATA_NAME}_message_type
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_MALICIOUS_DATA_MASTER_STARTER} MESSAGE_TYPE)
+ set_tests_properties(${TEST_MALICIOUS_DATA_NAME}_message_type PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_MALICIOUS_DATA_NAME}_return_code
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_MALICIOUS_DATA_MASTER_STARTER} RETURN_CODE)
+ set_tests_properties(${TEST_MALICIOUS_DATA_NAME}_return_code PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_MALICIOUS_DATA_NAME}_wrong_header_fields_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_MALICIOUS_DATA_MASTER_STARTER} WRONG_HEADER_FIELDS_UDP)
+ set_tests_properties(${TEST_MALICIOUS_DATA_NAME}_wrong_header_fields_udp PROPERTIES TIMEOUT 180)
+
+ # npdu tests
+ add_test(NAME ${TEST_NPDU_NAME}_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_NPDU_STARTER} UDP sync)
+ set_tests_properties(${TEST_NPDU_NAME}_udp PROPERTIES TIMEOUT 840)
+
+ add_test(NAME ${TEST_NPDU_NAME}_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_NPDU_STARTER} TCP sync)
+ set_tests_properties(${TEST_NPDU_NAME}_tcp PROPERTIES TIMEOUT 840)
+
+ # e2e tests
+ add_test(NAME ${TEST_E2E_NAME}_external
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_E2E_EXTERNAL_MASTER_START_SCRIPT} e2e_test_client_external.json)
+ set_tests_properties(${TEST_E2E_NAME}_external PROPERTIES TIMEOUT 180)
+
+ if (${TEST_E2E_PROFILE_04})
+ add_test(NAME ${TEST_E2E_PROFILE_04_NAME}_external
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_E2E_PROFILE_04_EXTERNAL_MASTER_START_SCRIPT} e2e_profile_04_test_client_external.json)
+ set_tests_properties(${TEST_E2E_PROFILE_04_NAME}_external PROPERTIES TIMEOUT 180)
+ endif ()
+
+ # event tests
+ add_test(NAME ${TEST_EVENT_NAME}_payload_fixed_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EVENT_MASTER_START_SCRIPT} PAYLOAD_FIXED UDP)
+ set_tests_properties(${TEST_EVENT_NAME}_payload_fixed_udp PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_EVENT_NAME}_payload_fixed_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EVENT_MASTER_START_SCRIPT} PAYLOAD_FIXED TCP)
+ set_tests_properties(${TEST_EVENT_NAME}_payload_fixed_tcp PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_EVENT_NAME}_payload_dynamic_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EVENT_MASTER_START_SCRIPT} PAYLOAD_DYNAMIC UDP)
+ set_tests_properties(${TEST_EVENT_NAME}_payload_dynamic_udp PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_EVENT_NAME}_payload_dynamic_tcp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_EVENT_MASTER_START_SCRIPT} PAYLOAD_DYNAMIC TCP)
+ set_tests_properties(${TEST_EVENT_NAME}_payload_dynamic_tcp PROPERTIES TIMEOUT 180)
+
+ # SOME/IP-TP tests
+ add_test(NAME ${TEST_SOMEIPTP_NAME}_in_sequence
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SOMEIPTP_MASTER_START_SCRIPT} IN_SEQUENCE)
+ set_tests_properties(${TEST_SOMEIPTP_NAME}_in_sequence PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_SOMEIPTP_NAME}_mixed
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SOMEIPTP_MASTER_START_SCRIPT} MIXED)
+ set_tests_properties(${TEST_SOMEIPTP_NAME}_mixed PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_SOMEIPTP_NAME}_incomplete
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SOMEIPTP_MASTER_START_SCRIPT} INCOMPLETE)
+ set_tests_properties(${TEST_SOMEIPTP_NAME}_incomplete PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_SOMEIPTP_NAME}_duplicate
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SOMEIPTP_MASTER_START_SCRIPT} DUPLICATE)
+ set_tests_properties(${TEST_SOMEIPTP_NAME}_duplicate PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_SOMEIPTP_NAME}_overlap
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SOMEIPTP_MASTER_START_SCRIPT} OVERLAP)
+ set_tests_properties(${TEST_SOMEIPTP_NAME}_overlap PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_SOMEIPTP_NAME}_overlap_front_back
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SOMEIPTP_MASTER_START_SCRIPT} OVERLAP_FRONT_BACK)
+ set_tests_properties(${TEST_SOMEIPTP_NAME}_overlap_front_back PROPERTIES TIMEOUT 180)
+
+ if(${TEST_SECOND_ADDRESS})
+ add_test(NAME ${TEST_SECOND_ADDRESS_NAME}_second_ip_address_service_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SECOND_ADDRESS_MASTER_START_SCRIPT} SERVICE UDP
+ )
+ set_tests_properties(${TEST_SECOND_ADDRESS_NAME}_second_ip_address_service_udp PROPERTIES TIMEOUT 180)
+
+ add_test(NAME ${TEST_SECOND_ADDRESS_NAME}_second_ip_address_client_udp
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SECOND_ADDRESS_MASTER_START_SCRIPT} CLIENT UDP
+ )
+ set_tests_properties(${TEST_SECOND_ADDRESS_NAME}_second_ip_address_client_udp PROPERTIES TIMEOUT 180)
+ endif()
+
+ # suspend resume test
+ add_test(NAME ${TEST_SUSPEND_RESUME_NAME}_initial
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_SUSPEND_RESUME_MASTER_START_SCRIPT} SERVICE
+ )
+
+else()
+ # Routing tests
+ add_test(NAME ${TEST_LOCAL_ROUTING_NAME}
+ COMMAND ${NETWORK_TEST_BIN_DIR}/${TEST_LOCAL_ROUTING_STARTER}
+ )
+endif()
diff --git a/test/application_tests/application_test.cpp b/test/network_tests/application_tests/application_test.cpp
index e39cf1f..c7ad4f8 100644
--- a/test/application_tests/application_test.cpp
+++ b/test/network_tests/application_tests/application_test.cpp
@@ -466,7 +466,7 @@ TEST_F(someip_application_exception_test, catch_exception_in_invoked_handler) {
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/application_tests/application_test_availability.cpp b/test/network_tests/application_tests/application_test_availability.cpp
index 06fd33e..89d94c1 100644
--- a/test/application_tests/application_test_availability.cpp
+++ b/test/network_tests/application_tests/application_test_availability.cpp
@@ -30,7 +30,7 @@ TEST(someip_application_test_availability, register_availability_handlers)
its_daemon.stop();
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/application_tests/application_test_availability_starter.sh b/test/network_tests/application_tests/application_test_availability_starter.sh
index 645e347..645e347 100755
--- a/test/application_tests/application_test_availability_starter.sh
+++ b/test/network_tests/application_tests/application_test_availability_starter.sh
diff --git a/test/application_tests/application_test_client.cpp b/test/network_tests/application_tests/application_test_client.cpp
index 30d0084..30d0084 100644
--- a/test/application_tests/application_test_client.cpp
+++ b/test/network_tests/application_tests/application_test_client.cpp
diff --git a/test/application_tests/application_test_client_availability.cpp b/test/network_tests/application_tests/application_test_client_availability.cpp
index 16fe87b..16fe87b 100644
--- a/test/application_tests/application_test_client_availability.cpp
+++ b/test/network_tests/application_tests/application_test_client_availability.cpp
diff --git a/test/application_tests/application_test_daemon.cpp b/test/network_tests/application_tests/application_test_daemon.cpp
index 2f0b244..2f0b244 100644
--- a/test/application_tests/application_test_daemon.cpp
+++ b/test/network_tests/application_tests/application_test_daemon.cpp
diff --git a/test/application_tests/application_test_globals.hpp b/test/network_tests/application_tests/application_test_globals.hpp
index 7caa9db..7caa9db 100644
--- a/test/application_tests/application_test_globals.hpp
+++ b/test/network_tests/application_tests/application_test_globals.hpp
diff --git a/test/application_tests/application_test_service.cpp b/test/network_tests/application_tests/application_test_service.cpp
index 77d40cd..77d40cd 100644
--- a/test/application_tests/application_test_service.cpp
+++ b/test/network_tests/application_tests/application_test_service.cpp
diff --git a/test/application_tests/application_test_single_process.cpp b/test/network_tests/application_tests/application_test_single_process.cpp
index b4497a7..c738899 100644
--- a/test/application_tests/application_test_single_process.cpp
+++ b/test/network_tests/application_tests/application_test_single_process.cpp
@@ -38,7 +38,7 @@ TEST(someip_application_test_single_process, notify_increasing_counter)
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/application_tests/application_test_single_process.json b/test/network_tests/application_tests/application_test_single_process.json
index b604d9a..b604d9a 100644
--- a/test/application_tests/application_test_single_process.json
+++ b/test/network_tests/application_tests/application_test_single_process.json
diff --git a/test/application_tests/application_test_single_process_starter.sh b/test/network_tests/application_tests/application_test_single_process_starter.sh
index 3919358..3919358 100755
--- a/test/application_tests/application_test_single_process_starter.sh
+++ b/test/network_tests/application_tests/application_test_single_process_starter.sh
diff --git a/test/application_tests/application_test_starter.sh b/test/network_tests/application_tests/application_test_starter.sh
index bb17515..7e8c022 100755
--- a/test/application_tests/application_test_starter.sh
+++ b/test/network_tests/application_tests/application_test_starter.sh
@@ -30,7 +30,7 @@ cat <<End-of-message
*******************************************************************************
End-of-message
export VSOMEIP_CONFIGURATION=application_test_no_dispatch_threads_daemon.json
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
DAEMON_PID=$!
./application_test
if [ $? -ne 0 ]
@@ -42,7 +42,7 @@ kill $DAEMON_PID
wait $DAEMON_PID
export VSOMEIP_CONFIGURATION=application_test_daemon.json
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
DAEMON_PID=$!
./application_test
if [ $? -ne 0 ]
diff --git a/test/application_tests/conf/application_test.json.in b/test/network_tests/application_tests/conf/application_test.json.in
index ed5a7fc..ed5a7fc 100644
--- a/test/application_tests/conf/application_test.json.in
+++ b/test/network_tests/application_tests/conf/application_test.json.in
diff --git a/test/application_tests/conf/application_test_daemon.json.in b/test/network_tests/application_tests/conf/application_test_daemon.json.in
index f7fd3dc..f7fd3dc 100644
--- a/test/application_tests/conf/application_test_daemon.json.in
+++ b/test/network_tests/application_tests/conf/application_test_daemon.json.in
diff --git a/test/application_tests/conf/application_test_no_dispatch_threads.json.in b/test/network_tests/application_tests/conf/application_test_no_dispatch_threads.json.in
index 20d0ebd..20d0ebd 100644
--- a/test/application_tests/conf/application_test_no_dispatch_threads.json.in
+++ b/test/network_tests/application_tests/conf/application_test_no_dispatch_threads.json.in
diff --git a/test/application_tests/conf/application_test_no_dispatch_threads_daemon.json.in b/test/network_tests/application_tests/conf/application_test_no_dispatch_threads_daemon.json.in
index 8c7622a..8c7622a 100644
--- a/test/application_tests/conf/application_test_no_dispatch_threads_daemon.json.in
+++ b/test/network_tests/application_tests/conf/application_test_no_dispatch_threads_daemon.json.in
diff --git a/test/big_payload_tests/big_payload_test_client.cpp b/test/network_tests/big_payload_tests/big_payload_test_client.cpp
index 48ee6c2..55c3ff2 100644
--- a/test/big_payload_tests/big_payload_test_client.cpp
+++ b/test/network_tests/big_payload_tests/big_payload_test_client.cpp
@@ -279,7 +279,7 @@ TEST(someip_big_payload_test, send_ten_messages_to_service)
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/big_payload_tests/big_payload_test_client.hpp b/test/network_tests/big_payload_tests/big_payload_test_client.hpp
index bb81fdc..bb81fdc 100644
--- a/test/big_payload_tests/big_payload_test_client.hpp
+++ b/test/network_tests/big_payload_tests/big_payload_test_client.hpp
diff --git a/test/big_payload_tests/big_payload_test_client_local_start.sh b/test/network_tests/big_payload_tests/big_payload_test_client_local_start.sh
index adbf9f4..adbf9f4 100755
--- a/test/big_payload_tests/big_payload_test_client_local_start.sh
+++ b/test/network_tests/big_payload_tests/big_payload_test_client_local_start.sh
diff --git a/test/big_payload_tests/big_payload_test_client_start.sh b/test/network_tests/big_payload_tests/big_payload_test_external_client_start.sh
index 5258ce8..5258ce8 100755
--- a/test/big_payload_tests/big_payload_test_client_start.sh
+++ b/test/network_tests/big_payload_tests/big_payload_test_external_client_start.sh
diff --git a/test/big_payload_tests/big_payload_test_service_external_start.sh b/test/network_tests/big_payload_tests/big_payload_test_external_service_start.sh
index ac8dd60..ac8dd60 100755
--- a/test/big_payload_tests/big_payload_test_service_external_start.sh
+++ b/test/network_tests/big_payload_tests/big_payload_test_external_service_start.sh
diff --git a/test/big_payload_tests/big_payload_test_external_starter.sh b/test/network_tests/big_payload_tests/big_payload_test_external_starter.sh
index 9db425d..58d20d7 100755
--- a/test/big_payload_tests/big_payload_test_external_starter.sh
+++ b/test/network_tests/big_payload_tests/big_payload_test_external_starter.sh
@@ -39,28 +39,22 @@ BIG_PAYLOAD_TEST_PID=$!
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting big payload test on slave LXC"
if [[ $# -gt 0 ]]; then
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./big_payload_test_service_external_start.sh $1\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./big_payload_test_external_service_start.sh $1\"" &
else
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP 'bash -ci "set -m; cd \$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./big_payload_test_service_external_start.sh"' &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP 'bash -ci "set -m; cd \$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./big_payload_test_external_service_start.sh"' &
fi
elif [ ! -z "$USE_DOCKER" ]; then
if [[ $# -gt 0 ]]; then
- docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./big_payload_test_service_external_start.sh $1" &
+ docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./big_payload_test_external_service_start.sh $1" &
else
- docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./big_payload_test_service_external_start.sh" &
- fi
-elif [ ! -z "$JENKINS" ]; then
- if [[ $# -gt 0 ]]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./big_payload_test_service_external_start.sh $1\" >> $WS_ROOT/slave_test_output 2>&1" &
- else
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./big_payload_test_service_external_start.sh \" >> $WS_ROOT/slave_test_output 2>&1" &
+ docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./big_payload_test_external_service_start.sh" &
fi
else
cat <<End-of-message
*******************************************************************************
*******************************************************************************
** Please now run:
-** big_payload_test_service_external_start.sh $1
+** big_payload_test_external_service_start.sh $1
** from an external host to successfully complete this test.
**
** You probably will need to adapt the 'unicast' settings in
@@ -79,5 +73,5 @@ do
wait $job || ((FAIL+=1))
done
-# Check if client and server both exited successfully
+# Check if client and server both exited successfully
exit $FAIL
diff --git a/test/big_payload_tests/big_payload_test_globals.hpp b/test/network_tests/big_payload_tests/big_payload_test_globals.hpp
index 187ff4a..187ff4a 100644
--- a/test/big_payload_tests/big_payload_test_globals.hpp
+++ b/test/network_tests/big_payload_tests/big_payload_test_globals.hpp
diff --git a/test/big_payload_tests/big_payload_test_local.json b/test/network_tests/big_payload_tests/big_payload_test_local.json
index 983dea6..983dea6 100644
--- a/test/big_payload_tests/big_payload_test_local.json
+++ b/test/network_tests/big_payload_tests/big_payload_test_local.json
diff --git a/test/big_payload_tests/big_payload_test_local_limited.json b/test/network_tests/big_payload_tests/big_payload_test_local_limited.json
index 4e8c666..4e8c666 100644
--- a/test/big_payload_tests/big_payload_test_local_limited.json
+++ b/test/network_tests/big_payload_tests/big_payload_test_local_limited.json
diff --git a/test/big_payload_tests/big_payload_test_local_queue_limited.json b/test/network_tests/big_payload_tests/big_payload_test_local_queue_limited.json
index 9700309..584e77e 100644
--- a/test/big_payload_tests/big_payload_test_local_queue_limited.json
+++ b/test/network_tests/big_payload_tests/big_payload_test_local_queue_limited.json
@@ -31,7 +31,7 @@
"instance":"0x5678"
}
],
- "endpoint-queue-limit-local" : "614429",
+ "endpoint-queue-limit-local" : "614431",
"routing":"big_payload_test_service",
"service-discovery":
{
diff --git a/test/big_payload_tests/big_payload_test_local_random.json b/test/network_tests/big_payload_tests/big_payload_test_local_random.json
index 0cf2081..0cf2081 100644
--- a/test/big_payload_tests/big_payload_test_local_random.json
+++ b/test/network_tests/big_payload_tests/big_payload_test_local_random.json
diff --git a/test/big_payload_tests/big_payload_test_local_starter.sh b/test/network_tests/big_payload_tests/big_payload_test_local_starter.sh
index 6439cac..6439cac 100755
--- a/test/big_payload_tests/big_payload_test_local_starter.sh
+++ b/test/network_tests/big_payload_tests/big_payload_test_local_starter.sh
diff --git a/test/network_tests/big_payload_tests/big_payload_test_local_tcp_client_start.sh b/test/network_tests/big_payload_tests/big_payload_test_local_tcp_client_start.sh
new file mode 100755
index 0000000..bc7fc97
--- /dev/null
+++ b/test/network_tests/big_payload_tests/big_payload_test_local_tcp_client_start.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+# Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# Start the client
+export VSOMEIP_APPLICATION_NAME=big_payload_test_client
+export VSOMEIP_CONFIGURATION=big_payload_test_local_tcp_client.json
+./big_payload_test_client
diff --git a/test/network_tests/big_payload_tests/big_payload_test_local_tcp_service_start.sh b/test/network_tests/big_payload_tests/big_payload_test_local_tcp_service_start.sh
new file mode 100755
index 0000000..5bc73fc
--- /dev/null
+++ b/test/network_tests/big_payload_tests/big_payload_test_local_tcp_service_start.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+# Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+if [[ $# -gt 0 && $1 != "RANDOM" && $1 != "LIMITED" && $1 != "QUEUELIMITEDGENERAL" ]]
+then
+ echo "The only allowed parameter to this script is RANDOM, LIMITED or QUEUELIMITEDGENERAL"
+ echo "Like $0 RANDOM"
+ exit 1
+fi
+
+# Start the service
+if [[ $# -gt 0 && $1 == "RANDOM" ]]; then
+ export VSOMEIP_CONFIGURATION=big_payload_test_local_tcp_service_random.json
+elif [[ $# -gt 0 && $1 == "LIMITED" ]]; then
+ export VSOMEIP_CONFIGURATION=big_payload_test_local_tcp_service_limited.json
+elif [[ $# -gt 0 && $1 == "QUEUELIMITEDGENERAL" ]]; then
+ export VSOMEIP_CONFIGURATION=big_payload_test_local_tcp_service_queue_limited.json
+else
+ export VSOMEIP_CONFIGURATION=big_payload_test_local_tcp_service.json
+fi
+./big_payload_test_service $1
diff --git a/test/network_tests/big_payload_tests/big_payload_test_local_tcp_starter.sh b/test/network_tests/big_payload_tests/big_payload_test_local_tcp_starter.sh
new file mode 100755
index 0000000..633b8f2
--- /dev/null
+++ b/test/network_tests/big_payload_tests/big_payload_test_local_tcp_starter.sh
@@ -0,0 +1,74 @@
+#!/bin/bash
+# Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+# Purpose: This script is needed to start the client and service with
+# one command. This is necessary as ctest - which is used to run the
+# tests - isn't able to start two binaries for one testcase. Therefore
+# the testcase simply executes this script. This script then runs client
+# and service and checks that both exit successfully.
+
+if [[ $# -gt 0 && $1 != "RANDOM" && $1 != "LIMITED" && $1 != "QUEUELIMITEDGENERAL" ]]
+then
+ echo "The only allowed parameter to this script is RANDOM or LIMITED or QUEUELIMITEDGENERAL."
+ echo "Like $0 RANDOM"
+ exit 1
+fi
+
+
+FAIL=0
+
+# Start the service
+if [[ $# -gt 0 && $1 == "RANDOM" ]]; then
+ export VSOMEIP_CONFIGURATION=big_payload_test_local_tcp_client_random.json
+elif [[ $# -gt 0 && $1 == "LIMITED" ]]; then
+ export VSOMEIP_CONFIGURATION=big_payload_test_local_tcp_client_limited.json
+elif [[ $# -gt 0 && $1 == "QUEUELIMITEDGENERAL" ]]; then
+ export VSOMEIP_CONFIGURATION=big_payload_test_local_tcp_client_queue_limited.json
+else
+ export VSOMEIP_CONFIGURATION=big_payload_test_local_tcp_client.json
+fi
+./big_payload_test_client $1 &
+BIG_PAYLOAD_TEST_PID=$!
+
+if [ ! -z "$USE_LXC_TEST" ]; then
+ echo "starting big payload test on slave LXC"
+ if [[ $# -gt 0 ]]; then
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./big_payload_test_local_tcp_service_start.sh $1\"" &
+ else
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP 'bash -ci "set -m; cd \$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./big_payload_test_local_tcp_service_start.sh"' &
+ fi
+elif [ ! -z "$USE_DOCKER" ]; then
+ if [[ $# -gt 0 ]]; then
+ docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./big_payload_test_local_tcp_service_start.sh $1" &
+ else
+ docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./big_payload_test_local_tcp_service_start.sh" &
+ fi
+else
+cat <<End-of-message
+*******************************************************************************
+*******************************************************************************
+** Please now run:
+** big_payload_test_local_tcp_service_start.sh $1
+** from an external host to successfully complete this test.
+**
+** You probably will need to adapt the 'unicast' settings in
+** big_payload_test_local_tcp_service.json and
+** big_payload_test_local_tcp_client.json to your personal setup.
+*******************************************************************************
+*******************************************************************************
+End-of-message
+fi
+
+# Wait until client and service are finished
+for job in $(jobs -p)
+do
+ # Fail gets incremented if either client or service exit
+ # with a non-zero exit code
+ wait $job || ((FAIL+=1))
+done
+
+# Check if client and server both exited successfully
+exit $FAIL
diff --git a/test/big_payload_tests/big_payload_test_service.cpp b/test/network_tests/big_payload_tests/big_payload_test_service.cpp
index ab70046..9d37301 100644
--- a/test/big_payload_tests/big_payload_test_service.cpp
+++ b/test/network_tests/big_payload_tests/big_payload_test_service.cpp
@@ -251,7 +251,7 @@ TEST(someip_big_payload_test, receive_ten_messages_and_send_reply)
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/big_payload_tests/big_payload_test_service.hpp b/test/network_tests/big_payload_tests/big_payload_test_service.hpp
index 44af28a..44af28a 100644
--- a/test/big_payload_tests/big_payload_test_service.hpp
+++ b/test/network_tests/big_payload_tests/big_payload_test_service.hpp
diff --git a/test/big_payload_tests/big_payload_test_service_local_start.sh b/test/network_tests/big_payload_tests/big_payload_test_service_local_start.sh
index 299af82..299af82 100755
--- a/test/big_payload_tests/big_payload_test_service_local_start.sh
+++ b/test/network_tests/big_payload_tests/big_payload_test_service_local_start.sh
diff --git a/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client.json.in
new file mode 100644
index 0000000..41c88f5
--- /dev/null
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client.json.in
@@ -0,0 +1,64 @@
+{
+ "unicast":"127.0.0.1",
+ "logging":
+ {
+ "level":"error",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"big_payload_test_service",
+ "id":"0x1277",
+ "max_dispatchers" : "0"
+ },
+ {
+ "name":"big_payload_test_client",
+ "id":"0x1344",
+ "max_dispatchers" : "0"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1234",
+ "instance":"0x5678"
+ }
+ ],
+ "payload-sizes":
+ [
+ {
+ "unicast":"127.0.0.1",
+ "ports":
+ [
+ {
+ "port":"30509",
+ "max-payload-size":"614400"
+ }
+ ]
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "big_payload_test_client",
+ "unicast" : "@TEST_IP_MASTER@",
+ "port" : "31490"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.244.224.245",
+ "port":"30490",
+ "protocol":"udp"
+ }
+}
+
diff --git a/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client_limited.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client_limited.json.in
new file mode 100644
index 0000000..cd52a3c
--- /dev/null
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client_limited.json.in
@@ -0,0 +1,52 @@
+{
+ "unicast":"127.0.0.1",
+ "logging":
+ {
+ "level":"info",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"big_payload_test_service",
+ "id":"0x1277",
+ "max_dispatchers" : "0"
+ },
+ {
+ "name":"big_payload_test_client",
+ "id":"0x1344",
+ "max_dispatchers" : "0"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1234",
+ "instance":"0x5678"
+ }
+ ],
+ "max-payload-size-local" : "614400",
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "big_payload_test_client",
+ "unicast" : "@TEST_IP_MASTER@",
+ "port" : "31490"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.244.224.245",
+ "port":"30490",
+ "protocol":"udp"
+ }
+}
+
diff --git a/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client_queue_limited.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client_queue_limited.json.in
new file mode 100644
index 0000000..b233f74
--- /dev/null
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client_queue_limited.json.in
@@ -0,0 +1,52 @@
+{
+ "unicast":"127.0.0.1",
+ "logging":
+ {
+ "level":"info",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"big_payload_test_service",
+ "id":"0x1277",
+ "max_dispatchers" : "0"
+ },
+ {
+ "name":"big_payload_test_client",
+ "id":"0x1344",
+ "max_dispatchers" : "0"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1234",
+ "instance":"0x5678"
+ }
+ ],
+ "endpoint-queue-limit-local" : "614431",
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "big_payload_test_client",
+ "unicast" : "@TEST_IP_MASTER@",
+ "port" : "31490"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.244.224.245",
+ "port":"30490",
+ "protocol":"udp"
+ }
+}
+
diff --git a/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client_random.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client_random.json.in
new file mode 100644
index 0000000..521f46e
--- /dev/null
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_client_random.json.in
@@ -0,0 +1,52 @@
+{
+ "unicast":"127.0.0.1",
+ "logging":
+ {
+ "level":"info",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"big_payload_test_service",
+ "id":"0x1277",
+ "max_dispatchers" : "0"
+ },
+ {
+ "name":"big_payload_test_client",
+ "id":"0x1344",
+ "max_dispatchers" : "0"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1234",
+ "instance":"0x5678"
+ }
+ ],
+ "buffer-shrink-threshold" : "2",
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "big_payload_test_client",
+ "unicast" : "@TEST_IP_MASTER@",
+ "port" : "31490"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.244.224.245",
+ "port":"30490",
+ "protocol":"udp"
+ }
+}
+
diff --git a/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service.json.in
new file mode 100644
index 0000000..6f64035
--- /dev/null
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service.json.in
@@ -0,0 +1,68 @@
+{
+ "unicast":"127.0.0.1",
+ "logging":
+ {
+ "level":"info",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"big_payload_test_service",
+ "id":"0x1277",
+ "max_dispatchers" : "0"
+ },
+ {
+ "name":"big_payload_test_client",
+ "id":"0x1344",
+ "max_dispatchers" : "0"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1234",
+ "instance":"0x5678"
+ }
+ ],
+ "payload-sizes":
+ [
+ {
+ "unicast":"127.0.0.1",
+ "ports":
+ [
+ {
+ "port":"30509",
+ "max-payload-size":"614400"
+ }
+ ]
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "big_payload_test_client",
+ "unicast" : "@TEST_IP_MASTER@",
+ "port" : "31490"
+ },
+ "guests" :
+ {
+ "unicast" : "@TEST_IP_SLAVE@"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.244.224.245",
+ "port":"30490",
+ "protocol":"udp"
+ }
+}
+
diff --git a/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service_limited.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service_limited.json.in
new file mode 100644
index 0000000..2373eaa
--- /dev/null
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service_limited.json.in
@@ -0,0 +1,56 @@
+{
+ "unicast":"127.0.0.1",
+ "logging":
+ {
+ "level":"info",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"big_payload_test_service",
+ "id":"0x1277",
+ "max_dispatchers" : "0"
+ },
+ {
+ "name":"big_payload_test_client",
+ "id":"0x1344",
+ "max_dispatchers" : "0"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1234",
+ "instance":"0x5678"
+ }
+ ],
+ "max-payload-size-local" : "614400",
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "big_payload_test_client",
+ "unicast" : "@TEST_IP_MASTER@",
+ "port" : "31490"
+ },
+ "guests" :
+ {
+ "unicast" : "@TEST_IP_SLAVE@"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.244.224.245",
+ "port":"30490",
+ "protocol":"udp"
+ }
+}
+
diff --git a/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service_queue_limited.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service_queue_limited.json.in
new file mode 100644
index 0000000..eac3dce
--- /dev/null
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service_queue_limited.json.in
@@ -0,0 +1,56 @@
+{
+ "unicast":"127.0.0.1",
+ "logging":
+ {
+ "level":"info",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"big_payload_test_service",
+ "id":"0x1277",
+ "max_dispatchers" : "0"
+ },
+ {
+ "name":"big_payload_test_client",
+ "id":"0x1344",
+ "max_dispatchers" : "0"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1234",
+ "instance":"0x5678"
+ }
+ ],
+ "endpoint-queue-limit-local" : "614431",
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "big_payload_test_client",
+ "unicast" : "@TEST_IP_MASTER@",
+ "port" : "31490"
+ },
+ "guests" :
+ {
+ "unicast" : "@TEST_IP_SLAVE@"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.244.224.245",
+ "port":"30490",
+ "protocol":"udp"
+ }
+}
+
diff --git a/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service_random.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service_random.json.in
new file mode 100644
index 0000000..c66e09f
--- /dev/null
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_local_tcp_service_random.json.in
@@ -0,0 +1,56 @@
+{
+ "unicast":"127.0.0.1",
+ "logging":
+ {
+ "level":"info",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"big_payload_test_service",
+ "id":"0x1277",
+ "max_dispatchers" : "0"
+ },
+ {
+ "name":"big_payload_test_client",
+ "id":"0x1344",
+ "max_dispatchers" : "0"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1234",
+ "instance":"0x5678"
+ }
+ ],
+ "buffer-shrink-threshold" : "2",
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "big_payload_test_client",
+ "unicast" : "@TEST_IP_MASTER@",
+ "port" : "31490"
+ },
+ "guests" :
+ {
+ "unicast" : "@TEST_IP_SLAVE@"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.244.224.245",
+ "port":"30490",
+ "protocol":"udp"
+ }
+}
+
diff --git a/test/big_payload_tests/conf/big_payload_test_tcp_client.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client.json.in
index 0f23a10..0f23a10 100644
--- a/test/big_payload_tests/conf/big_payload_test_tcp_client.json.in
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client.json.in
diff --git a/test/big_payload_tests/conf/big_payload_test_tcp_client_limited_general.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client_limited_general.json.in
index f28efc8..f28efc8 100644
--- a/test/big_payload_tests/conf/big_payload_test_tcp_client_limited_general.json.in
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client_limited_general.json.in
diff --git a/test/big_payload_tests/conf/big_payload_test_tcp_client_queue_limited_general.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client_queue_limited_general.json.in
index a193ab8..a193ab8 100644
--- a/test/big_payload_tests/conf/big_payload_test_tcp_client_queue_limited_general.json.in
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client_queue_limited_general.json.in
diff --git a/test/big_payload_tests/conf/big_payload_test_tcp_client_queue_limited_specific.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client_queue_limited_specific.json.in
index 79f3486..79f3486 100644
--- a/test/big_payload_tests/conf/big_payload_test_tcp_client_queue_limited_specific.json.in
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client_queue_limited_specific.json.in
diff --git a/test/big_payload_tests/conf/big_payload_test_tcp_client_random.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client_random.json.in
index 85cf393..85cf393 100644
--- a/test/big_payload_tests/conf/big_payload_test_tcp_client_random.json.in
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_client_random.json.in
diff --git a/test/big_payload_tests/conf/big_payload_test_tcp_service.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service.json.in
index 08149bb..08149bb 100644
--- a/test/big_payload_tests/conf/big_payload_test_tcp_service.json.in
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service.json.in
diff --git a/test/big_payload_tests/conf/big_payload_test_tcp_service_limited_general.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service_limited_general.json.in
index f8414f3..f8414f3 100644
--- a/test/big_payload_tests/conf/big_payload_test_tcp_service_limited_general.json.in
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service_limited_general.json.in
diff --git a/test/big_payload_tests/conf/big_payload_test_tcp_service_queue_limited_general.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service_queue_limited_general.json.in
index ad5b28c..ad5b28c 100644
--- a/test/big_payload_tests/conf/big_payload_test_tcp_service_queue_limited_general.json.in
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service_queue_limited_general.json.in
diff --git a/test/big_payload_tests/conf/big_payload_test_tcp_service_queue_limited_specific.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service_queue_limited_specific.json.in
index 87bcdaa..87bcdaa 100644
--- a/test/big_payload_tests/conf/big_payload_test_tcp_service_queue_limited_specific.json.in
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service_queue_limited_specific.json.in
diff --git a/test/big_payload_tests/conf/big_payload_test_tcp_service_random.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service_random.json.in
index d583fd1..d583fd1 100644
--- a/test/big_payload_tests/conf/big_payload_test_tcp_service_random.json.in
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_tcp_service_random.json.in
diff --git a/test/big_payload_tests/conf/big_payload_test_udp_client.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_udp_client.json.in
index 5a7ee36..5a7ee36 100644
--- a/test/big_payload_tests/conf/big_payload_test_udp_client.json.in
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_udp_client.json.in
diff --git a/test/big_payload_tests/conf/big_payload_test_udp_service.json.in b/test/network_tests/big_payload_tests/conf/big_payload_test_udp_service.json.in
index 7f71a05..7f71a05 100644
--- a/test/big_payload_tests/conf/big_payload_test_udp_service.json.in
+++ b/test/network_tests/big_payload_tests/conf/big_payload_test_udp_service.json.in
diff --git a/test/client_id_tests/client_id_test_globals.hpp b/test/network_tests/client_id_tests/client_id_test_globals.hpp
index e4b2cb8..e4b2cb8 100644
--- a/test/client_id_tests/client_id_test_globals.hpp
+++ b/test/network_tests/client_id_tests/client_id_test_globals.hpp
diff --git a/test/client_id_tests/client_id_test_master_starter.sh b/test/network_tests/client_id_tests/client_id_test_master_starter.sh
index 1351fb1..5495c44 100755
--- a/test/client_id_tests/client_id_test_master_starter.sh
+++ b/test/network_tests/client_id_tests/client_id_test_master_starter.sh
@@ -42,12 +42,9 @@ sleep 1
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting client id test on slave LXC"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./client_id_test_slave_starter.sh $CLIENT_JSON_FILE\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./client_id_test_slave_starter.sh $CLIENT_JSON_FILE\"" &
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./client_id_test_slave_starter.sh $CLIENT_JSON_FILE" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./client_id_test_slave_starter.sh $CLIENT_JSON_FILE\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
@@ -74,7 +71,7 @@ do
fi
done
-# Check if both exited successfully
+# Check if both exited successfully
if [ $FAIL -eq 0 ]
then
exit 0
diff --git a/test/client_id_tests/client_id_test_service.cpp b/test/network_tests/client_id_tests/client_id_test_service.cpp
index ca2dc57..f78151f 100644
--- a/test/client_id_tests/client_id_test_service.cpp
+++ b/test/network_tests/client_id_tests/client_id_test_service.cpp
@@ -277,7 +277,7 @@ TEST(someip_client_id_test, send_ten_messages_to_service)
client_id_test::service_infos[static_cast<size_t>(service_number)]);
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/client_id_tests/client_id_test_slave_starter.sh b/test/network_tests/client_id_tests/client_id_test_slave_starter.sh
index 4553521..4553521 100755
--- a/test/client_id_tests/client_id_test_slave_starter.sh
+++ b/test/network_tests/client_id_tests/client_id_test_slave_starter.sh
diff --git a/test/client_id_tests/client_id_test_utility.cpp b/test/network_tests/client_id_tests/client_id_test_utility.cpp
index 9cfe5ab..a74f922 100644
--- a/test/client_id_tests/client_id_test_utility.cpp
+++ b/test/network_tests/client_id_tests/client_id_test_utility.cpp
@@ -49,7 +49,7 @@ public:
if (its_plugin) {
auto its_config_plugin = std::dynamic_pointer_cast<vsomeip::configuration_plugin>(its_plugin);
if (its_config_plugin) {
- configuration_ = its_config_plugin->get_configuration(APPLICATION_NAME_ROUTING_MANAGER);
+ configuration_ = its_config_plugin->get_configuration(APPLICATION_NAME_ROUTING_MANAGER, "");
}
}
}
@@ -76,7 +76,7 @@ protected:
app_->start();
});
// ensure clean preconditions
- utility::reset_client_ids();
+ utility::reset_client_ids(configuration_->get_network());
// required as there are two static versions of the utility class in this
// test, one in the test itself and one in libvsomeip...
@@ -93,7 +93,7 @@ protected:
rm_impl_thread_.join();
}
app_.reset();
- utility::release_client_id(client_id_routing_manager_);
+ utility::release_client_id(configuration_->get_network(), client_id_routing_manager_);
}
protected:
@@ -312,8 +312,8 @@ TEST_F(client_id_utility_test, exhaust_client_id_range_sequential) {
EXPECT_EQ(VSOMEIP_CLIENT_UNSET, vsomeip::utility::request_client_id(
configuration_, APPLICATION_NAME_NOT_PREDEFINED + "max",
VSOMEIP_CLIENT_UNSET));
- for (const auto& c : its_clients) {
- utility::release_client_id(c);
+ for (const auto c : its_clients) {
+ utility::release_client_id(configuration_->get_network(), c);
}
}
}
@@ -360,7 +360,7 @@ TEST_F(client_id_utility_test, exhaust_client_id_range_fragmented) {
for (size_t i = 0; i < its_clients.size(); i++ ) {
if (i % 2) {
its_released_client_ids.push_back(its_clients[i]);
- utility::release_client_id(its_clients[i]);
+ utility::release_client_id(configuration_->get_network(), its_clients[i]);
}
}
for (const client_t c : its_released_client_ids) {
@@ -396,8 +396,8 @@ TEST_F(client_id_utility_test, exhaust_client_id_range_fragmented) {
VSOMEIP_CLIENT_UNSET));
// release all
- for (const auto& c : its_clients) {
- utility::release_client_id(c);
+ for (const auto c : its_clients) {
+ utility::release_client_id(configuration_->get_network(), c);
}
its_clients.clear();
}
@@ -447,7 +447,7 @@ TEST_F(client_id_utility_test, exhaust_client_id_range_fragmented_extended) {
std::vector<client_t> its_intermediate_released_client_ids;
for (size_t i = 0; i < intermediate_release; i++ ) {
its_intermediate_released_client_ids.push_back(its_client_ids[i]);
- utility::release_client_id(its_client_ids[i]);
+ utility::release_client_id(configuration_->get_network(), its_client_ids[i]);
its_client_ids.erase(its_client_ids.begin() + i);
}
@@ -496,7 +496,7 @@ TEST_F(client_id_utility_test, exhaust_client_id_range_fragmented_extended) {
for (size_t i = 0; i < its_client_ids.size(); i++ ) {
if (i % 2) {
its_released_client_ids.push_back(its_client_ids[i]);
- utility::release_client_id(its_client_ids[i]);
+ utility::release_client_id(configuration_->get_network(), its_client_ids[i]);
}
}
for (const client_t c : its_released_client_ids) {
@@ -534,7 +534,7 @@ TEST_F(client_id_utility_test, exhaust_client_id_range_fragmented_extended) {
// release all
for (const client_t c : its_client_ids) {
- utility::release_client_id(c);
+ utility::release_client_id(configuration_->get_network(), c);
}
}
@@ -566,7 +566,7 @@ TEST_F(client_id_utility_test, request_released_client_id_after_maximum_client_i
}
// release a client ID
- utility::release_client_id(its_client_ids[10]);
+ utility::release_client_id(configuration_->get_network(), its_client_ids[10]);
// requesting an ID should return the maximum possible ID
client_t its_max_client_id = utility::request_client_id(configuration_,
@@ -586,7 +586,7 @@ TEST_F(client_id_utility_test, request_released_client_id_after_maximum_client_i
EXPECT_EQ(VSOMEIP_CLIENT_UNSET, its_illegal_client_id);
// release another ID
- utility::release_client_id(its_client_ids[5]);
+ utility::release_client_id(configuration_->get_network(), its_client_ids[5]);
its_client_id = utility::request_client_id(configuration_,
APPLICATION_NAME_NOT_PREDEFINED, VSOMEIP_CLIENT_UNSET);
@@ -595,12 +595,12 @@ TEST_F(client_id_utility_test, request_released_client_id_after_maximum_client_i
// release all
for (const client_t c : its_client_ids) {
- utility::release_client_id(c);
+ utility::release_client_id(configuration_->get_network(), c);
}
its_client_ids.clear();
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
diff --git a/test/client_id_tests/client_id_test_utility.json b/test/network_tests/client_id_tests/client_id_test_utility.json
index e07eb9a..e07eb9a 100644
--- a/test/client_id_tests/client_id_test_utility.json
+++ b/test/network_tests/client_id_tests/client_id_test_utility.json
diff --git a/test/client_id_tests/client_id_test_utility_discontinuous_masked_511.json b/test/network_tests/client_id_tests/client_id_test_utility_discontinuous_masked_511.json
index af3dfd6..af3dfd6 100644
--- a/test/client_id_tests/client_id_test_utility_discontinuous_masked_511.json
+++ b/test/network_tests/client_id_tests/client_id_test_utility_discontinuous_masked_511.json
diff --git a/test/client_id_tests/client_id_test_utility_masked_127.json b/test/network_tests/client_id_tests/client_id_test_utility_masked_127.json
index 8aa5135..8aa5135 100644
--- a/test/client_id_tests/client_id_test_utility_masked_127.json
+++ b/test/network_tests/client_id_tests/client_id_test_utility_masked_127.json
diff --git a/test/client_id_tests/client_id_test_utility_masked_4095.json b/test/network_tests/client_id_tests/client_id_test_utility_masked_4095.json
index 8604435..8604435 100644
--- a/test/client_id_tests/client_id_test_utility_masked_4095.json
+++ b/test/network_tests/client_id_tests/client_id_test_utility_masked_4095.json
diff --git a/test/client_id_tests/client_id_test_utility_masked_511.json b/test/network_tests/client_id_tests/client_id_test_utility_masked_511.json
index a57d382..a57d382 100644
--- a/test/client_id_tests/client_id_test_utility_masked_511.json
+++ b/test/network_tests/client_id_tests/client_id_test_utility_masked_511.json
diff --git a/test/client_id_tests/conf/client_id_test_diff_client_ids_diff_ports_master.json.in b/test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_diff_ports_master.json.in
index a986dd9..a986dd9 100644
--- a/test/client_id_tests/conf/client_id_test_diff_client_ids_diff_ports_master.json.in
+++ b/test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_diff_ports_master.json.in
diff --git a/test/client_id_tests/conf/client_id_test_diff_client_ids_diff_ports_slave.json.in b/test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_diff_ports_slave.json.in
index 596f842..596f842 100644
--- a/test/client_id_tests/conf/client_id_test_diff_client_ids_diff_ports_slave.json.in
+++ b/test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_diff_ports_slave.json.in
diff --git a/test/client_id_tests/conf/client_id_test_diff_client_ids_partial_same_ports_master.json.in b/test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_partial_same_ports_master.json.in
index bb3507b..bb3507b 100644
--- a/test/client_id_tests/conf/client_id_test_diff_client_ids_partial_same_ports_master.json.in
+++ b/test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_partial_same_ports_master.json.in
diff --git a/test/client_id_tests/conf/client_id_test_diff_client_ids_partial_same_ports_slave.json.in b/test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_partial_same_ports_slave.json.in
index a7337e9..a7337e9 100644
--- a/test/client_id_tests/conf/client_id_test_diff_client_ids_partial_same_ports_slave.json.in
+++ b/test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_partial_same_ports_slave.json.in
diff --git a/test/client_id_tests/conf/client_id_test_diff_client_ids_same_ports_master.json.in b/test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_same_ports_master.json.in
index 9f7062f..9f7062f 100644
--- a/test/client_id_tests/conf/client_id_test_diff_client_ids_same_ports_master.json.in
+++ b/test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_same_ports_master.json.in
diff --git a/test/client_id_tests/conf/client_id_test_diff_client_ids_same_ports_slave.json.in b/test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_same_ports_slave.json.in
index 1aaf2cb..1aaf2cb 100644
--- a/test/client_id_tests/conf/client_id_test_diff_client_ids_same_ports_slave.json.in
+++ b/test/network_tests/client_id_tests/conf/client_id_test_diff_client_ids_same_ports_slave.json.in
diff --git a/test/client_id_tests/conf/client_id_test_same_client_ids_diff_ports_master.json.in b/test/network_tests/client_id_tests/conf/client_id_test_same_client_ids_diff_ports_master.json.in
index a986dd9..a986dd9 100644
--- a/test/client_id_tests/conf/client_id_test_same_client_ids_diff_ports_master.json.in
+++ b/test/network_tests/client_id_tests/conf/client_id_test_same_client_ids_diff_ports_master.json.in
diff --git a/test/client_id_tests/conf/client_id_test_same_client_ids_diff_ports_slave.json.in b/test/network_tests/client_id_tests/conf/client_id_test_same_client_ids_diff_ports_slave.json.in
index 2acb37b..2acb37b 100644
--- a/test/client_id_tests/conf/client_id_test_same_client_ids_diff_ports_slave.json.in
+++ b/test/network_tests/client_id_tests/conf/client_id_test_same_client_ids_diff_ports_slave.json.in
diff --git a/test/client_id_tests/conf/client_id_test_same_client_ids_same_ports_master.json.in b/test/network_tests/client_id_tests/conf/client_id_test_same_client_ids_same_ports_master.json.in
index 9f7062f..9f7062f 100644
--- a/test/client_id_tests/conf/client_id_test_same_client_ids_same_ports_master.json.in
+++ b/test/network_tests/client_id_tests/conf/client_id_test_same_client_ids_same_ports_master.json.in
diff --git a/test/client_id_tests/conf/client_id_test_same_client_ids_same_ports_slave.json.in b/test/network_tests/client_id_tests/conf/client_id_test_same_client_ids_same_ports_slave.json.in
index ae534b1..ae534b1 100644
--- a/test/client_id_tests/conf/client_id_test_same_client_ids_same_ports_slave.json.in
+++ b/test/network_tests/client_id_tests/conf/client_id_test_same_client_ids_same_ports_slave.json.in
diff --git a/test/configuration_tests/configuration-test-deprecated.json b/test/network_tests/configuration_tests/configuration-test-deprecated.json
index 5a8b0ee..5a8b0ee 100644
--- a/test/configuration_tests/configuration-test-deprecated.json
+++ b/test/network_tests/configuration_tests/configuration-test-deprecated.json
diff --git a/test/configuration_tests/configuration-test.cpp b/test/network_tests/configuration_tests/configuration-test.cpp
index ad4faa7..800852e 100644
--- a/test/configuration_tests/configuration-test.cpp
+++ b/test/network_tests/configuration_tests/configuration-test.cpp
@@ -8,6 +8,8 @@
#include <gtest/gtest.h>
+#include "../../common/utility.hpp"
+
#include <vsomeip/constants.hpp>
#include <vsomeip/plugins/application_plugin.hpp>
#include <vsomeip/internal/logger.hpp>
@@ -16,7 +18,8 @@
#include "../../implementation/plugin/include/plugin_manager_impl.hpp"
#include "../../implementation/configuration/include/configuration_impl.hpp"
#include "../../implementation/configuration/include/configuration_plugin.hpp"
-#include "../../implementation/security/include/security_impl.hpp"
+#include "../../implementation/protocol/include/protocol.hpp"
+#include "../../implementation/security/include/policy_manager_impl.hpp"
namespace vsomeip = vsomeip_v3;
@@ -156,7 +159,7 @@ void check_file(const std::string &_config_file,
// 0. Set environment variable to config file and load it
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
setenv("VSOMEIP_CONFIGURATION", _config_file.c_str(), 1);
#else
_putenv_s("VSOMEIP_CONFIGURATION", _config_file.c_str()
@@ -170,7 +173,7 @@ void check_file(const std::string &_config_file,
auto its_configuration_plugin
= std::dynamic_pointer_cast<vsomeip::configuration_plugin>(its_plugin);
if (its_configuration_plugin)
- its_configuration = its_configuration_plugin->get_configuration(EXPECTED_ROUTING_MANAGER_HOST);
+ its_configuration = its_configuration_plugin->get_configuration(EXPECTED_ROUTING_MANAGER_HOST, "");
}
// 2. Did we get a configuration object?
@@ -263,47 +266,47 @@ void check_file(const std::string &_config_file,
if (its_channel_name == std::string("testname")) {
EXPECT_EQ(2u, its_matches.size());
- for (const vsomeip::trace::match_t m : its_matches) {
+ for (const vsomeip::trace::match_t &m : its_matches) {
EXPECT_TRUE(std::get<0>(m) == vsomeip::service_t(0x1111) ||
std::get<0>(m) == vsomeip::service_t(2222));
EXPECT_TRUE(std::get<1>(m) == vsomeip::instance_t(0xffff));
EXPECT_TRUE(std::get<2>(m) == vsomeip::method_t(0xffff));
- EXPECT_TRUE(f->is_positive_);
+ EXPECT_EQ(f->ftype_, vsomeip_v3::trace::filter_type_e::POSITIVE);
EXPECT_FALSE(f->is_range_);
}
} else if (its_channel_name == std::string("testname2")) {
EXPECT_EQ(2u, its_matches.size());
- for (const vsomeip::trace::match_t m : its_matches) {
+ for (const vsomeip::trace::match_t &m : its_matches) {
EXPECT_TRUE(std::get<0>(m) == vsomeip::service_t(0x3333) ||
std::get<0>(m) == vsomeip::service_t(4444));
EXPECT_TRUE(std::get<1>(m) == vsomeip::instance_t(0xffff));
EXPECT_TRUE(std::get<2>(m) == vsomeip::method_t(0xffff));
- EXPECT_FALSE(f->is_positive_);
+ EXPECT_NE(f->ftype_, vsomeip_v3::trace::filter_type_e::POSITIVE);
EXPECT_FALSE(f->is_range_);
}
} else if (its_channel_name == std::string("testname3")) {
EXPECT_EQ(2u, its_matches.size());
- for (const vsomeip::trace::match_t m : its_matches) {
+ for (const vsomeip::trace::match_t &m : its_matches) {
EXPECT_TRUE(std::get<0>(m) == vsomeip::service_t(0x1111) ||
std::get<0>(m) == vsomeip::service_t(0x3333));
EXPECT_TRUE(std::get<1>(m) == vsomeip::instance_t(0xffff));
EXPECT_TRUE(std::get<2>(m) == vsomeip::method_t(0xffff) ||
std::get<2>(m) == vsomeip::method_t(0x8888));
- EXPECT_FALSE(f->is_positive_);
+ EXPECT_NE(f->ftype_, vsomeip_v3::trace::filter_type_e::POSITIVE);
EXPECT_FALSE(f->is_range_);
}
} else if (its_channel_name == std::string("testname4")) {
EXPECT_EQ(2u, its_matches.size());
- for (const vsomeip::trace::match_t m : its_matches) {
+ for (const vsomeip::trace::match_t &m : its_matches) {
EXPECT_TRUE(std::get<0>(m) == vsomeip::service_t(0x1111) ||
std::get<0>(m) == vsomeip::service_t(0x3333));
EXPECT_TRUE(std::get<1>(m) == vsomeip::instance_t(0x0001));
EXPECT_TRUE(std::get<2>(m) == vsomeip::method_t(0xffff) ||
std::get<2>(m) == vsomeip::method_t(0x8888));
- EXPECT_FALSE(f->is_positive_);
+ EXPECT_NE(f->ftype_, vsomeip_v3::trace::filter_type_e::POSITIVE);
EXPECT_TRUE(f->is_range_);
}
}
@@ -516,7 +519,7 @@ void check_file(const std::string &_config_file,
// use 17000 instead of 1500 as configured max-local-payload size will be
// increased to bigger max-reliable-payload-size
std::uint32_t max_local_message_size(
- 17000u + 16u + + VSOMEIP_SEND_COMMAND_SIZE);
+ 17000u + 16u + vsomeip::protocol::SEND_COMMAND_HEADER_SIZE);
EXPECT_EQ(max_local_message_size, its_configuration->get_max_message_size_local());
EXPECT_EQ(11u, its_configuration->get_buffer_shrink_threshold());
EXPECT_EQ(14999u + 16u, its_configuration->get_max_message_size_reliable("10.10.10.10", 7777));
@@ -524,103 +527,120 @@ void check_file(const std::string &_config_file,
EXPECT_EQ(15001u + 16, its_configuration->get_max_message_size_reliable("10.10.10.11", 7778));
// security
- EXPECT_TRUE(its_configuration->check_routing_credentials(0x7788, 0x123, 0x456));
+#ifndef VSOMEIP_DISABLE_SECURITY
+ vsomeip_sec_client_t its_x123_x456 = utility::create_uds_client(0x123, 0x456);
+ EXPECT_TRUE(its_configuration->check_routing_credentials(0x7788, &its_x123_x456));
// GID does not match
- EXPECT_FALSE(its_configuration->check_routing_credentials(0x7788, 0x123, 0x222));
+ vsomeip_sec_client_t its_x123_x222 = utility::create_uds_client(0x123, 0x222);
+ EXPECT_FALSE(its_configuration->check_routing_credentials(0x7788, &its_x123_x222));
// UID does not match
- EXPECT_FALSE(its_configuration->check_routing_credentials(0x7788, 0x333, 0x456));
+ vsomeip_sec_client_t its_x333_x456 = utility::create_uds_client(0x333, 0x456);
+ EXPECT_FALSE(its_configuration->check_routing_credentials(0x7788, &its_x333_x456));
// client is not the routing manager
- EXPECT_TRUE(its_configuration->check_routing_credentials(0x7777, 0x888, 0x999));
-
- auto its_security = vsomeip::security_impl::get();
- EXPECT_TRUE(its_security->is_enabled());
- EXPECT_TRUE(its_security->is_offer_allowed(1000, 1000, 0x1277, 0x1234, 0x5678));
- EXPECT_TRUE(its_security->is_offer_allowed(1000, 1000, 0x1277, 0x1235, 0x5678));
- EXPECT_TRUE(its_security->is_offer_allowed(1000, 1000, 0x1277, 0x1236, 0x5678));
- EXPECT_TRUE(its_security->is_offer_allowed(1000, 1000, 0x1277, 0x1236, 0x5676));
-
- EXPECT_FALSE(its_security->is_offer_allowed(1000, 1000, 0x1277, 0x1236, 0x5679));
- EXPECT_FALSE(its_security->is_offer_allowed(1000, 1000, 0x1277, 0x1234, 0x5679));
- EXPECT_FALSE(its_security->is_offer_allowed(1000, 1000, 0x1277, 0x1233, 0x5679));
- EXPECT_FALSE(its_security->is_offer_allowed(1001, 1001, 0x1266, 0x1233, 0x5679));
+ vsomeip_sec_client_t its_x888_x999 = utility::create_uds_client(0x888, 0x999);
+ EXPECT_TRUE(its_configuration->check_routing_credentials(0x7777, &its_x888_x999));
+
+ EXPECT_TRUE(its_configuration->is_security_enabled());
+ vsomeip_sec_client_t its_1000_1000 = utility::create_uds_client(1000, 1000);
+ vsomeip_sec_client_t its_1001_1001 = utility::create_uds_client(1001, 1001);
+ vsomeip_sec_client_t its_2000_2000 = utility::create_uds_client(2000, 2000);
+ vsomeip_sec_client_t its_2001_2001 = utility::create_uds_client(2001, 2001);
+ vsomeip_sec_client_t its_4000_4000 = utility::create_uds_client(4000, 4000);
+ vsomeip_sec_client_t its_4001_4001 = utility::create_uds_client(4001, 4001);
+ vsomeip_sec_client_t its_5000_5000 = utility::create_uds_client(5000, 5000);
+ vsomeip_sec_client_t its_6000_6000 = utility::create_uds_client(6000, 6000);
+ vsomeip_sec_client_t its_7000_7000 = utility::create_uds_client(7000, 7000);
+ vsomeip_sec_client_t its_8000_8000 = utility::create_uds_client(8000, 8000);
+ vsomeip_sec_client_t its_9000_9000 = utility::create_uds_client(9000, 9000);
+
+ auto its_security = vsomeip::policy_manager_impl::get();
+ EXPECT_TRUE(its_security->is_offer_allowed(&its_1000_1000, 0x1234, 0x5678));
+ EXPECT_TRUE(its_security->is_offer_allowed(&its_1000_1000, 0x1235, 0x5678));
+ EXPECT_TRUE(its_security->is_offer_allowed(&its_1000_1000, 0x1236, 0x5678));
+ EXPECT_TRUE(its_security->is_offer_allowed(&its_1000_1000, 0x1236, 0x5676));
+
+ EXPECT_FALSE(its_security->is_offer_allowed(&its_1000_1000, 0x1236, 0x5679));
+ EXPECT_FALSE(its_security->is_offer_allowed(&its_1000_1000, 0x1234, 0x5679));
+ EXPECT_FALSE(its_security->is_offer_allowed(&its_1000_1000, 0x1233, 0x5679));
+ EXPECT_FALSE(its_security->is_offer_allowed(&its_1001_1001, 0x1233, 0x5679));
// explicitly denied offers
- EXPECT_FALSE(its_security->is_offer_allowed(4000, 4000, 0x1443, 0x1234, 0x5678));
- EXPECT_FALSE(its_security->is_offer_allowed(4000, 4000, 0x1443, 0x1235, 0x5678));
- EXPECT_TRUE(its_security->is_offer_allowed(4000, 4000, 0x1443, 0x1234, 0x5679));
- EXPECT_TRUE(its_security->is_offer_allowed(4000, 4000, 0x1443, 0x1300, 0x1));
- EXPECT_TRUE(its_security->is_offer_allowed(4000, 4000, 0x1443, 0x1300, 0x2));
- EXPECT_FALSE(its_security->is_offer_allowed(4000, 4000, 0x1443, 0x1236, 0x5678));
- EXPECT_FALSE(its_security->is_offer_allowed(4000, 4000, 0x1443, 0x1236, 0x5675));
- EXPECT_FALSE(its_security->is_offer_allowed(4000, 4000, 0x1443, 0x1236, 0x5676));
- EXPECT_FALSE(its_security->is_offer_allowed(4000, 4000, 0x1443, 0x1236, 0x5677));
- EXPECT_TRUE(its_security->is_offer_allowed(4000, 4000, 0x1443, 0x1236, 0x5679));
+ EXPECT_FALSE(its_security->is_offer_allowed(&its_4000_4000, 0x1234, 0x5678));
+ EXPECT_FALSE(its_security->is_offer_allowed(&its_4000_4000, 0x1235, 0x5678));
+ EXPECT_TRUE(its_security->is_offer_allowed(&its_4000_4000, 0x1234, 0x5679));
+ EXPECT_TRUE(its_security->is_offer_allowed(&its_4000_4000, 0x1300, 0x1));
+ EXPECT_TRUE(its_security->is_offer_allowed(&its_4000_4000, 0x1300, 0x2));
+ EXPECT_FALSE(its_security->is_offer_allowed(&its_4000_4000, 0x1236, 0x5678));
+ EXPECT_FALSE(its_security->is_offer_allowed(&its_4000_4000, 0x1236, 0x5675));
+ EXPECT_FALSE(its_security->is_offer_allowed(&its_4000_4000, 0x1236, 0x5676));
+ EXPECT_FALSE(its_security->is_offer_allowed(&its_4000_4000, 0x1236, 0x5677));
+ EXPECT_TRUE(its_security->is_offer_allowed(&its_4000_4000, 0x1236, 0x5679));
// explicitly allowed requests of methods / events
- EXPECT_TRUE(its_security->is_client_allowed(2000, 2000, 0x1343, 0x1234, 0x5678, 0x0001));
- EXPECT_TRUE(its_security->is_client_allowed(2000, 2000, 0x1343, 0x1234, 0x5678, 0x8002));
- EXPECT_TRUE(its_security->is_client_allowed(2000, 2000, 0x1346, 0x1234, 0x5688, 0x8002));
- EXPECT_TRUE(its_security->is_client_allowed(2000, 2000, 0x1343, 0x1234, 0x5699, 0x8006));
- EXPECT_TRUE(its_security->is_client_allowed(2000, 2000, 0x1343, 0x1234, 0x5699, 0x8001));
-
- EXPECT_FALSE(its_security->is_client_allowed(2001, 2001, 0x1347, 0x1234, 0x5678, 0xFFFF));
- EXPECT_FALSE(its_security->is_client_allowed(2001, 2001, 0x1342, 0x1234, 0x5678, 0xFFFF));
- EXPECT_FALSE(its_security->is_client_allowed(2000, 2000, 0x1343, 0x1234, 0x5677, 0xFFFF));
- EXPECT_FALSE(its_security->is_client_allowed(2000, 2000, 0x1343, 0x1234, 0x5700, 0x0001));
- EXPECT_FALSE(its_security->is_client_allowed(2000, 2000, 0x1343, 0x1234, 0x5699, 0x8007));
- EXPECT_FALSE(its_security->is_client_allowed(2000, 2000, 0x1343, 0x1234, 0x5700, 0xFFFF));
- EXPECT_FALSE(its_security->is_client_allowed(2000, 2000, 0x1343, 0x1230, 0x5678, 0x0001));
- EXPECT_FALSE(its_security->is_client_allowed(2000, 2000, 0x1343, 0x1230, 0x5678, 0xFFFF));
- EXPECT_FALSE(its_security->is_client_allowed(4000, 4000, 0x1443, 0x1234, 0x5678, 0x0002));
- EXPECT_FALSE(its_security->is_client_allowed(4000, 4000, 0x1446, 0x1234, 0x5678, 0xFFFF));
- EXPECT_TRUE(its_security->is_client_allowed(4000, 4000, 0x1443, 0x1234, 0x5679, 0x0003));
- EXPECT_FALSE(its_security->is_client_allowed(4000, 4000, 0x1443, 0x1234, 0x5679, 0xFFFF));
- EXPECT_FALSE(its_security->is_client_allowed(4000, 4000, 0x1443, 0x1234, 0x5699, 0x9001));
- EXPECT_FALSE(its_security->is_client_allowed(4000, 4000, 0x1443, 0x1234, 0x5699, 0x9006));
- EXPECT_FALSE(its_security->is_client_allowed(4001, 4001, 0x1442, 0x1234, 0x5678, 0xFFFF));
- EXPECT_FALSE(its_security->is_client_allowed(4001, 4001, 0x1447, 0x1234, 0x5678, 0xFFFF));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_2000_2000, 0x1234, 0x5678, 0x0001));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_2000_2000, 0x1234, 0x5678, 0x8002));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_2000_2000, 0x1234, 0x5688, 0x8002));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_2000_2000, 0x1234, 0x5699, 0x8006));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_2000_2000, 0x1234, 0x5699, 0x8001));
+
+ EXPECT_FALSE(its_security->is_client_allowed(&its_2001_2001, 0x1234, 0x5678, 0xFFFF));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_2001_2001, 0x1234, 0x5678, 0xFFFF));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_2000_2000, 0x1234, 0x5677, 0xFFFF));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_2000_2000, 0x1234, 0x5700, 0x0001));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_2000_2000, 0x1234, 0x5699, 0x8007));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_2000_2000, 0x1234, 0x5700, 0xFFFF));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_2000_2000, 0x1230, 0x5678, 0x0001));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_2000_2000, 0x1230, 0x5678, 0xFFFF));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_4000_4000, 0x1234, 0x5678, 0x0002));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_4000_4000, 0x1234, 0x5678, 0xFFFF));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_4000_4000, 0x1234, 0x5679, 0x0003));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_4000_4000, 0x1234, 0x5679, 0xFFFF));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_4000_4000, 0x1234, 0x5699, 0x9001));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_4000_4000, 0x1234, 0x5699, 0x9006));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_4001_4001, 0x1234, 0x5678, 0xFFFF));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_4001_4001, 0x1234, 0x5678, 0xFFFF));
// check that any method ID is allowed
- EXPECT_TRUE(its_security->is_client_allowed(2000, 2000, 0x1343, 0x1237, 0x5678, 0x0001));
- EXPECT_TRUE(its_security->is_client_allowed(2000, 2000, 0x1343, 0x1237, 0x5678, 0xFFFF));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_2000_2000, 0x1237, 0x5678, 0x0001));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_2000_2000, 0x1237, 0x5678, 0xFFFF));
// check that any instance ID is allowed but only one method ID
- EXPECT_TRUE(its_security->is_client_allowed(2000, 2000, 0x1343, 0x1238, 0x0004, 0x0001));
- EXPECT_FALSE(its_security->is_client_allowed(2000, 2000, 0x1343, 0x1238, 0x0004, 0x0002));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_2000_2000, 0x1238, 0x0004, 0x0001));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_2000_2000, 0x1238, 0x0004, 0x0002));
// DENY NOTHING policy
// check that ANY_METHOD is allowed in a "deny nothing" policy
- EXPECT_TRUE(its_security->is_client_allowed(5000, 5000, 0x1550, 0x1234, 0x5678, 0xFFFF));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_5000_5000, 0x1234, 0x5678, 0xFFFF));
// check that specific method ID is allowed in a "deny nothing" policy
- EXPECT_TRUE(its_security->is_client_allowed(5000, 5000, 0x1550, 0x1234, 0x5678, 0x0001));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_5000_5000, 0x1234, 0x5678, 0x0001));
// ALLOW NOTHING policy
// check that ANY_METHOD is denied in a "allow nothing" policy
- EXPECT_FALSE(its_security->is_client_allowed(6000, 6000, 0x1660, 0x1234, 0x5678, 0xFFFF));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_6000_6000, 0x1234, 0x5678, 0xFFFF));
// check that specific method ID is denied in a "allow nothing" policy
- EXPECT_FALSE(its_security->is_client_allowed(6000, 6000, 0x1660, 0x1234, 0x5678, 0x0001));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_6000_6000, 0x1234, 0x5678, 0x0001));
// DENY only one service instance and ANY_METHOD (0x01 - 0xFFFF) policy
- EXPECT_FALSE(its_security->is_client_allowed(7000, 7000, 0x1770, 0x1234, 0x5678, 0xFFFF));
- EXPECT_FALSE(its_security->is_client_allowed(7000, 7000, 0x1770, 0x1234, 0x5678, 0x0001));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_7000_7000, 0x1234, 0x5678, 0xFFFF));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_7000_7000, 0x1234, 0x5678, 0x0001));
// allow only one service instance and ANY_METHOD policy
- EXPECT_TRUE(its_security->is_client_allowed(8000, 8000, 0x1880, 0x1234, 0x5678, 0xFFFF));
- EXPECT_TRUE(its_security->is_client_allowed(8000, 8000, 0x1880, 0x1234, 0x5678, 0x0001));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_8000_8000, 0x1234, 0x5678, 0xFFFF));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_8000_8000, 0x1234, 0x5678, 0x0001));
// check request service
- EXPECT_TRUE(its_security->is_client_allowed(5000, 5000, 0x1550, 0x1234, 0x5678, 0x00, true));
- EXPECT_FALSE(its_security->is_client_allowed(6000, 6000, 0x1660, 0x1234, 0x5678, 0x00, true));
- EXPECT_FALSE(its_security->is_client_allowed(7000, 7000, 0x1770, 0x1234, 0x5678, 0x00, true));
- EXPECT_TRUE(its_security->is_client_allowed(7000, 7000, 0x1770, 0x2222, 0x5678, 0x00, true));
- EXPECT_TRUE(its_security->is_client_allowed(8000, 8000, 0x1880, 0x1234, 0x5678, 0x00, true));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_5000_5000, 0x1234, 0x5678, 0x00, true));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_6000_6000, 0x1234, 0x5678, 0x00, true));
+ EXPECT_FALSE(its_security->is_client_allowed(&its_7000_7000, 0x1234, 0x5678, 0x00, true));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_7000_7000, 0x2222, 0x5678, 0x00, true));
+ EXPECT_TRUE(its_security->is_client_allowed(&its_8000_8000, 0x1234, 0x5678, 0x00, true));
- EXPECT_TRUE(its_security->check_credentials(0x1277, 1000, 1000));
- EXPECT_FALSE(its_security->check_credentials(0x1277, 1001, 1001));
- EXPECT_TRUE(its_security->check_credentials(0x1278, 1000, 1000));
- EXPECT_TRUE(its_security->check_credentials(0x1278, 9000, 9000));
+ EXPECT_TRUE(its_security->check_credentials(0x1277, &its_1000_1000));
+ EXPECT_FALSE(its_security->check_credentials(0x1277, &its_1001_1001));
+ EXPECT_TRUE(its_security->check_credentials(0x1278, &its_1000_1000));
+ EXPECT_TRUE(its_security->check_credentials(0x1278, &its_9000_9000));
// Security update / removal whitelist
EXPECT_TRUE(its_security->is_policy_removal_allowed(1000));
@@ -682,6 +702,7 @@ void check_file(const std::string &_config_file,
boost::icl::interval_bounds::closed()),
its_instances_methods);
EXPECT_FALSE(its_security->is_policy_update_allowed(1000, _policy));
+#endif // !VSOMEIP_DISABLE_SECURITY
// TCP connection setting:
// max TCP connect time / max allowed number of aborted TCP endpoint restarts until forced restart
diff --git a/test/configuration_tests/configuration-test.json b/test/network_tests/configuration_tests/configuration-test.json
index e18026e..e18026e 100644
--- a/test/configuration_tests/configuration-test.json
+++ b/test/network_tests/configuration_tests/configuration-test.json
diff --git a/test/cpu_load_tests/conf/cpu_load_test_client_master.json.in b/test/network_tests/cpu_load_tests/conf/cpu_load_test_client_master.json.in
index ec9dcd7..ec9dcd7 100644
--- a/test/cpu_load_tests/conf/cpu_load_test_client_master.json.in
+++ b/test/network_tests/cpu_load_tests/conf/cpu_load_test_client_master.json.in
diff --git a/test/cpu_load_tests/conf/cpu_load_test_client_slave.json.in b/test/network_tests/cpu_load_tests/conf/cpu_load_test_client_slave.json.in
index 4da82f4..4da82f4 100644
--- a/test/cpu_load_tests/conf/cpu_load_test_client_slave.json.in
+++ b/test/network_tests/cpu_load_tests/conf/cpu_load_test_client_slave.json.in
diff --git a/test/cpu_load_tests/conf/cpu_load_test_service_master.json.in b/test/network_tests/cpu_load_tests/conf/cpu_load_test_service_master.json.in
index da34e22..da34e22 100644
--- a/test/cpu_load_tests/conf/cpu_load_test_service_master.json.in
+++ b/test/network_tests/cpu_load_tests/conf/cpu_load_test_service_master.json.in
diff --git a/test/cpu_load_tests/conf/cpu_load_test_service_slave.json.in b/test/network_tests/cpu_load_tests/conf/cpu_load_test_service_slave.json.in
index 389aea0..389aea0 100644
--- a/test/cpu_load_tests/conf/cpu_load_test_service_slave.json.in
+++ b/test/network_tests/cpu_load_tests/conf/cpu_load_test_service_slave.json.in
diff --git a/test/cpu_load_tests/cpu_load_measurer.cpp b/test/network_tests/cpu_load_tests/cpu_load_measurer.cpp
index d4360b3..d4360b3 100644
--- a/test/cpu_load_tests/cpu_load_measurer.cpp
+++ b/test/network_tests/cpu_load_tests/cpu_load_measurer.cpp
diff --git a/test/cpu_load_tests/cpu_load_measurer.hpp b/test/network_tests/cpu_load_tests/cpu_load_measurer.hpp
index dfdcf80..dfdcf80 100644
--- a/test/cpu_load_tests/cpu_load_measurer.hpp
+++ b/test/network_tests/cpu_load_tests/cpu_load_measurer.hpp
diff --git a/test/cpu_load_tests/cpu_load_test_client.cpp b/test/network_tests/cpu_load_tests/cpu_load_test_client.cpp
index 05c8cf1..d1d5104 100644
--- a/test/cpu_load_tests/cpu_load_test_client.cpp
+++ b/test/network_tests/cpu_load_tests/cpu_load_test_client.cpp
@@ -319,7 +319,7 @@ TEST(someip_load_test, DISABLED_send_messages_and_measure_cpu_load)
cpu_load_test_client test_client_(protocol, number_of_calls, payload_size, call_service_sync, shutdown_service);
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
int i = 0;
diff --git a/test/cpu_load_tests/cpu_load_test_globals.hpp b/test/network_tests/cpu_load_tests/cpu_load_test_globals.hpp
index e6897e3..e6897e3 100644
--- a/test/cpu_load_tests/cpu_load_test_globals.hpp
+++ b/test/network_tests/cpu_load_tests/cpu_load_test_globals.hpp
diff --git a/test/cpu_load_tests/cpu_load_test_master_starter.sh b/test/network_tests/cpu_load_tests/cpu_load_test_master_starter.sh
index 138d00e..30010c2 100755
--- a/test/cpu_load_tests/cpu_load_test_master_starter.sh
+++ b/test/network_tests/cpu_load_tests/cpu_load_test_master_starter.sh
@@ -19,12 +19,9 @@ sleep 1
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting cpu load test on slave LXC"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP 'bash -ci "set -m; cd \$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./cpu_load_test_slave_starter.sh"' &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP 'bash -ci "set -m; cd \$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./cpu_load_test_slave_starter.sh"' &
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./cpu_load_test_slave_starter.sh" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./cpu_load_test_slave_starter.sh\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
@@ -69,7 +66,7 @@ do
wait $job || FAIL=$(($FAIL+1))
done
-# Check if both exited successfully
+# Check if both exited successfully
if [ $FAIL -eq 0 ]
then
exit 0
diff --git a/test/cpu_load_tests/cpu_load_test_service.cpp b/test/network_tests/cpu_load_tests/cpu_load_test_service.cpp
index 6cc7714..58c72e7 100644
--- a/test/cpu_load_tests/cpu_load_test_service.cpp
+++ b/test/network_tests/cpu_load_tests/cpu_load_test_service.cpp
@@ -200,7 +200,7 @@ TEST(someip_payload_test, DISABLED_send_response_for_every_request)
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/cpu_load_tests/cpu_load_test_slave_starter.sh b/test/network_tests/cpu_load_tests/cpu_load_test_slave_starter.sh
index 83ef19d..83ef19d 100755
--- a/test/cpu_load_tests/cpu_load_test_slave_starter.sh
+++ b/test/network_tests/cpu_load_tests/cpu_load_test_slave_starter.sh
diff --git a/test/debounce_tests/debounce_test_client.json b/test/network_tests/debounce_tests/conf/debounce_test_client.json.in
index a19c85b..fd83c03 100644
--- a/test/debounce_tests/debounce_test_client.json
+++ b/test/network_tests/debounce_tests/conf/debounce_test_client.json.in
@@ -1,5 +1,5 @@
{
- "unicast" : "10.0.3.1",
+ "unicast" : "@TEST_IP_MASTER@",
"debounce" :
[
{
@@ -49,4 +49,4 @@
"protocol" : "udp",
"cyclic_offer_delay" : "1000"
}
-}
+} \ No newline at end of file
diff --git a/test/debounce_tests/debounce_test_service.json b/test/network_tests/debounce_tests/conf/debounce_test_service.json.in
index 4aeff9c..48d1931 100644
--- a/test/debounce_tests/debounce_test_service.json
+++ b/test/network_tests/debounce_tests/conf/debounce_test_service.json.in
@@ -1,5 +1,5 @@
{
- "unicast" : "10.0.3.188",
+ "unicast" : "@TEST_IP_SLAVE@",
"services" :
[
{
@@ -16,4 +16,4 @@
"protocol" : "udp",
"cyclic_offer_delay" : "1000"
}
-}
+} \ No newline at end of file
diff --git a/test/network_tests/debounce_tests/debounce_test_client.cpp b/test/network_tests/debounce_tests/debounce_test_client.cpp
new file mode 100644
index 0000000..bf2d6ce
--- /dev/null
+++ b/test/network_tests/debounce_tests/debounce_test_client.cpp
@@ -0,0 +1,402 @@
+// Copyright (C) 2020 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <chrono>
+#include <iomanip>
+
+#include <vsomeip/internal/logger.hpp>
+
+#include "debounce_test_client.hpp"
+
+static std::vector<std::vector<std::shared_ptr<vsomeip::payload> > > payloads__;
+
+
+debounce_test_client::debounce_test_client(debounce_test_id_e _test_id)
+ : test_id_(_test_id),
+ index_(0),
+ is_available_(false),
+ runner_(std::bind(&debounce_test_client::run, this)),
+ app_(vsomeip::runtime::get()->create_application("debounce_test_client")) {
+}
+
+bool
+debounce_test_client::init() {
+
+ bool its_result = app_->init();
+ if (its_result) {
+ app_->register_availability_handler(
+ DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE,
+ std::bind(&debounce_test_client::on_availability, this,
+ std::placeholders::_1,
+ std::placeholders::_2,
+ std::placeholders::_3),
+ DEBOUNCE_MAJOR, DEBOUNCE_MINOR);
+ app_->register_message_handler(
+ DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, vsomeip::ANY_EVENT,
+ std::bind(&debounce_test_client::on_message, this,
+ std::placeholders::_1));
+ app_->request_event(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE,
+ DEBOUNCE_EVENT, { DEBOUNCE_EVENTGROUP },
+ vsomeip::event_type_e::ET_FIELD,
+ vsomeip::reliability_type_e::RT_UNRELIABLE);
+ app_->request_event(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE,
+ DEBOUNCE_EVENT_2, { DEBOUNCE_EVENTGROUP },
+ vsomeip::event_type_e::ET_FIELD,
+ vsomeip::reliability_type_e::RT_UNRELIABLE);
+ app_->request_event(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE,
+ DEBOUNCE_EVENT_4, { DEBOUNCE_EVENTGROUP },
+ vsomeip::event_type_e::ET_FIELD,
+ vsomeip::reliability_type_e::RT_UNRELIABLE);
+ app_->request_service(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE,
+ DEBOUNCE_MAJOR, DEBOUNCE_MINOR);
+ app_->subscribe(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE,
+ DEBOUNCE_EVENTGROUP, DEBOUNCE_MAJOR, DEBOUNCE_EVENT);
+ app_->subscribe(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE,
+ DEBOUNCE_EVENTGROUP, DEBOUNCE_MAJOR, DEBOUNCE_EVENT_2);
+ app_->subscribe(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE,
+ DEBOUNCE_EVENTGROUP, DEBOUNCE_MAJOR, DEBOUNCE_EVENT_4);
+ }
+ return (its_result);
+}
+
+void
+debounce_test_client::start() {
+
+ app_->start();
+}
+
+void
+debounce_test_client::stop() {
+
+ app_->stop();
+}
+
+void
+debounce_test_client::run() {
+
+ {
+ std::unique_lock<std::mutex> its_lock(run_mutex_);
+ while (!is_available_) {
+ auto its_status
+ = run_condition_.wait_for(its_lock, std::chrono::milliseconds(15000));
+ EXPECT_EQ(its_status, std::cv_status::no_timeout);
+ if (its_status == std::cv_status::timeout) {
+ VSOMEIP_ERROR << __func__ << ": Debounce service did not become available after 15s.";
+ stop();
+ return;
+ }
+ }
+ }
+
+ VSOMEIP_INFO << __func__ << ": Running test.";
+ run_test();
+
+ unsubscribe_all();
+
+ VSOMEIP_INFO << __func__ << ": Stopping the service.";
+ stop_service();
+
+ std::this_thread::sleep_for(std::chrono::milliseconds(100));
+
+ stop();
+}
+
+void
+debounce_test_client::wait() {
+
+ if (runner_.joinable())
+ runner_.join();
+}
+
+void
+debounce_test_client::on_availability(
+ vsomeip::service_t _service, vsomeip::instance_t _instance,
+ bool _is_available) {
+
+ if (_service == DEBOUNCE_SERVICE
+ && _instance == DEBOUNCE_INSTANCE) {
+
+ if (_is_available) {
+ VSOMEIP_ERROR << __func__ << ": Debounce service becomes available.";
+ {
+ std::lock_guard<std::mutex> its_lock(run_mutex_);
+ is_available_ = true;
+ }
+ run_condition_.notify_one();
+ } else {
+ VSOMEIP_ERROR << __func__ << ": Debounce service becomes unavailable.";
+ is_available_ = false;
+ }
+ }
+}
+
+void
+debounce_test_client::on_message(
+ const std::shared_ptr<vsomeip::message> &_message) {
+
+ std::stringstream s;
+ s << "RECV: ";
+ for (uint32_t i = 0; i < _message->get_payload()->get_length(); i++)
+ s << std::hex << std::setw(2) << std::setfill('0')
+ << (int)_message->get_payload()->get_data()[i] << " ";
+ VSOMEIP_DEBUG << s.str();
+
+ if (DEBOUNCE_SERVICE == _message->get_service()
+ && DEBOUNCE_EVENT == _message->get_method()) {
+
+ if (test_id_ == debounce_test_id_e::DTI_FLAT) {
+ bool is_equal = compare_payload(_message->get_payload(), index_++);
+ EXPECT_EQ(is_equal, true);
+ if (!is_equal || index_ == 5)
+ run_condition_.notify_one();
+ }
+
+ return;
+ }
+
+ if (DEBOUNCE_SERVICE == _message->get_service()
+ && DEBOUNCE_EVENT_2 == _message->get_method()) {
+
+ if (test_id_ == debounce_test_id_e::DTI_INCREASE
+ || test_id_ == debounce_test_id_e::DTI_DECREASE) {
+ bool is_equal = compare_payload(_message->get_payload(), index_++);
+ EXPECT_EQ(is_equal, true);
+
+ if (!is_equal || index_ == 6)
+ run_condition_.notify_one();
+ }
+
+ return;
+ }
+
+ if (DEBOUNCE_SERVICE == _message->get_service()
+ && DEBOUNCE_EVENT_4 == _message->get_method()) {
+
+ if (test_id_ == debounce_test_id_e::DTI_MASK) {
+ bool is_equal = compare_payload(_message->get_payload(), index_++);
+ EXPECT_EQ(is_equal, true);
+
+ if (!is_equal || index_ == 6)
+ run_condition_.notify_one();
+ }
+
+ return;
+ }
+}
+
+bool
+debounce_test_client::compare_payload(
+ const std::shared_ptr<vsomeip::payload> &_payload,
+ std::size_t _index) const {
+
+ auto its_expected_payload = payloads__[test_id_][_index];
+ return ((*_payload) == (*its_expected_payload));
+}
+
+void
+debounce_test_client::run_test() {
+
+ // Trigger the test
+ auto its_runtime = vsomeip::runtime::get();
+ auto its_payload = its_runtime->create_payload();
+ auto its_message = its_runtime->create_request(false);
+ its_message->set_service(DEBOUNCE_SERVICE);
+ its_message->set_instance(DEBOUNCE_INSTANCE);
+ its_message->set_method(DEBOUNCE_START_METHOD);
+ its_message->set_interface_version(DEBOUNCE_MAJOR);
+ its_message->set_message_type(vsomeip::message_type_e::MT_REQUEST_NO_RETURN);
+ its_message->set_payload(its_payload);
+ app_->send(its_message);
+
+ // Wait for the result
+ std::unique_lock<std::mutex> its_lock(run_mutex_);
+ if (!is_available_) {
+ auto its_result = run_condition_.wait_for(
+ its_lock, std::chrono::milliseconds(5000));
+
+ EXPECT_EQ(its_result, std::cv_status::no_timeout);
+ }
+
+ std::this_thread::sleep_for(std::chrono::seconds(2));
+}
+
+void
+debounce_test_client::unsubscribe_all() {
+
+ app_->unsubscribe(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE,
+ DEBOUNCE_EVENTGROUP);
+}
+
+void
+debounce_test_client::stop_service() {
+
+ auto its_runtime = vsomeip::runtime::get();
+ auto its_payload = its_runtime->create_payload();
+ auto its_message = its_runtime->create_request(false);
+ its_message->set_service(DEBOUNCE_SERVICE);
+ its_message->set_instance(DEBOUNCE_INSTANCE);
+ its_message->set_method(DEBOUNCE_STOP_METHOD);
+ its_message->set_interface_version(DEBOUNCE_MAJOR);
+ its_message->set_message_type(vsomeip::message_type_e::MT_REQUEST_NO_RETURN);
+ its_message->set_payload(its_payload);
+ app_->send(its_message);
+}
+
+
+TEST(debounce_test, flat) {
+ debounce_test_client its_client(debounce_test_id_e::DTI_FLAT);
+ if (its_client.init()) {
+ VSOMEIP_ERROR << "debounce_client successfully initialized!";
+ its_client.start();
+ its_client.wait();
+ } else {
+ VSOMEIP_ERROR << "debounce_client could not be initialized!";
+ }
+}
+
+TEST(debounce_test, increase) {
+ debounce_test_client its_client(debounce_test_id_e::DTI_INCREASE);
+ if (its_client.init()) {
+ VSOMEIP_ERROR << "debounce_client successfully initialized!";
+ its_client.start();
+ its_client.wait();
+ } else {
+ VSOMEIP_ERROR << "debounce_client could not be initialized!";
+ }
+}
+
+TEST(debounce_test, decrease) {
+ debounce_test_client its_client(debounce_test_id_e::DTI_DECREASE);
+ if (its_client.init()) {
+ VSOMEIP_ERROR << "debounce_client successfully initialized!";
+ its_client.start();
+ its_client.wait();
+ } else {
+ VSOMEIP_ERROR << "debounce_client could not be initialized!";
+ }
+}
+
+TEST(debounce_test, mask) {
+ debounce_test_client its_client(debounce_test_id_e::DTI_MASK);
+ if (its_client.init()) {
+ VSOMEIP_ERROR << "debounce_client successfully initialized!";
+ its_client.start();
+ its_client.wait();
+ } else {
+ VSOMEIP_ERROR << "debounce_client could not be initialized!";
+ }
+}
+
+int main(int argc, char** argv) {
+
+ std::shared_ptr<vsomeip::payload> its_payload;
+
+ // Flat test
+ payloads__.push_back(std::vector<std::shared_ptr<vsomeip::payload> >());
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ payloads__[debounce_test_id_e::DTI_FLAT].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x02, 0x02, 0x03, 0x04, 0x04, 0x06, 0x07 });
+ payloads__[debounce_test_id_e::DTI_FLAT].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x04, 0x02, 0x03, 0x04, 0x03, 0x06, 0x07 });
+ payloads__[debounce_test_id_e::DTI_FLAT].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x06, 0x02, 0x03, 0x04, 0x02, 0x06, 0x07 });
+ payloads__[debounce_test_id_e::DTI_FLAT].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x08, 0x02, 0x03, 0x04, 0x01, 0x06, 0x07 });
+ payloads__[debounce_test_id_e::DTI_FLAT].push_back(its_payload);
+
+ // Increase test
+ payloads__.push_back(std::vector<std::shared_ptr<vsomeip::payload> >());
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ payloads__[debounce_test_id_e::DTI_INCREASE].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x02, 0x02, 0x03, 0x04, 0x04, 0x06, 0x07, 0x08 });
+ payloads__[debounce_test_id_e::DTI_INCREASE].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x04, 0x02, 0x03, 0x04, 0x03, 0x06, 0x07, 0x08, 0x09 });
+ payloads__[debounce_test_id_e::DTI_INCREASE].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x06, 0x02, 0x03, 0x04, 0x02, 0x06, 0x07, 0x08, 0x09, 0x0A });
+ payloads__[debounce_test_id_e::DTI_INCREASE].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x08, 0x02, 0x03, 0x04, 0x01, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B });
+ payloads__[debounce_test_id_e::DTI_INCREASE].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x09, 0x02, 0x03, 0x04, 0x01, 0x07, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C });
+ payloads__[debounce_test_id_e::DTI_INCREASE].push_back(its_payload);
+
+ // Decrease test
+ payloads__.push_back(std::vector<std::shared_ptr<vsomeip::payload> >());
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C });
+ payloads__[debounce_test_id_e::DTI_DECREASE].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x01, 0x02, 0x03, 0x04, 0x05, 0x07, 0x07, 0x08, 0x09, 0x0A, 0x0B });
+ payloads__[debounce_test_id_e::DTI_DECREASE].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x02, 0x02, 0x03, 0x04, 0x04, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B });
+ payloads__[debounce_test_id_e::DTI_DECREASE].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x04, 0x02, 0x03, 0x04, 0x03, 0x06, 0x07, 0x08, 0x09, 0x0A });
+ payloads__[debounce_test_id_e::DTI_DECREASE].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x06, 0x02, 0x03, 0x04, 0x02, 0x06, 0x07, 0x08, 0x09 });
+ payloads__[debounce_test_id_e::DTI_DECREASE].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x08, 0x02, 0x03, 0x04, 0x01, 0x06, 0x07, 0x08 });
+ payloads__[debounce_test_id_e::DTI_DECREASE].push_back(its_payload);
+
+ // Mask test
+ payloads__.push_back(std::vector<std::shared_ptr<vsomeip::payload> >());
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ payloads__[debounce_test_id_e::DTI_MASK].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x10, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ payloads__[debounce_test_id_e::DTI_MASK].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x20, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ payloads__[debounce_test_id_e::DTI_MASK].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x22, 0x02, 0x03, 0x04, 0x05, 0x07, 0x07 });
+ payloads__[debounce_test_id_e::DTI_MASK].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x23, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ payloads__[debounce_test_id_e::DTI_MASK].push_back(its_payload);
+
+ its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data({ 0x24, 0x02, 0x03, 0x04, 0x05, 0x07, 0x07 });
+ payloads__[debounce_test_id_e::DTI_MASK].push_back(its_payload);
+
+ ::testing::InitGoogleTest(&argc, argv);
+ return RUN_ALL_TESTS();
+}
diff --git a/test/network_tests/debounce_tests/debounce_test_client.hpp b/test/network_tests/debounce_tests/debounce_test_client.hpp
new file mode 100644
index 0000000..0480ea3
--- /dev/null
+++ b/test/network_tests/debounce_tests/debounce_test_client.hpp
@@ -0,0 +1,56 @@
+// Copyright (C) 2020 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#ifndef DEBOUNCE_TEST_CLIENT_HPP_
+#define DEBOUNCE_TEST_CLIENT_HPP_
+
+#include <condition_variable>
+#include <mutex>
+#include <thread>
+
+#include <gtest/gtest.h>
+
+#include <vsomeip/vsomeip.hpp>
+
+#include "debounce_test_common.hpp"
+
+class debounce_test_client {
+public:
+ debounce_test_client(debounce_test_id_e _test_id);
+
+ bool init();
+ void start();
+ void stop();
+
+ void run();
+ void wait();
+
+private:
+ void on_availability(
+ vsomeip::service_t _service, vsomeip::instance_t _instance,
+ bool _is_available);
+ void on_message(const std::shared_ptr<vsomeip::message> &_message);
+
+ void run_test();
+ void unsubscribe_all();
+ void stop_service();
+
+ bool compare_payload(const std::shared_ptr<vsomeip::payload> &_payload,
+ std::size_t _index) const;
+
+private:
+ debounce_test_id_e test_id_;
+ size_t index_;
+
+ bool is_available_;
+
+ std::mutex run_mutex_;
+ std::condition_variable run_condition_;
+
+ std::thread runner_;
+ std::shared_ptr<vsomeip::application> app_;
+};
+
+#endif // DEBOUNCE_TEST_CLIENT_HPP_
diff --git a/test/network_tests/debounce_tests/debounce_test_common.hpp b/test/network_tests/debounce_tests/debounce_test_common.hpp
new file mode 100644
index 0000000..b4c5df6
--- /dev/null
+++ b/test/network_tests/debounce_tests/debounce_test_common.hpp
@@ -0,0 +1,29 @@
+// Copyright (C) 2020 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#ifndef DEBOUNCE_TEST_COMMON_HPP_
+#define DEBOUNCE_TEST_COMMON_HPP_
+
+#include <vsomeip/vsomeip.hpp>
+
+const vsomeip::service_t DEBOUNCE_SERVICE = 0xb657;
+const vsomeip::instance_t DEBOUNCE_INSTANCE = 0x0003;
+const vsomeip::method_t DEBOUNCE_START_METHOD = 0x0998;
+const vsomeip::method_t DEBOUNCE_STOP_METHOD = 0x0999;
+const vsomeip::event_t DEBOUNCE_EVENT = 0x8001;
+const vsomeip::event_t DEBOUNCE_EVENT_2 = 0x8002;
+const vsomeip::event_t DEBOUNCE_EVENT_4 = 0x8004;
+const vsomeip::eventgroup_t DEBOUNCE_EVENTGROUP = 0x0005;
+const vsomeip::major_version_t DEBOUNCE_MAJOR = 0x01;
+const vsomeip::minor_version_t DEBOUNCE_MINOR = 0x01;
+
+enum debounce_test_id_e : uint8_t {
+ DTI_FLAT = 0x00,
+ DTI_INCREASE = 0x01,
+ DTI_DECREASE = 0x02,
+ DTI_MASK = 0x03
+};
+
+#endif // DEBOUNCE_TEST_COMMON_HPP_
diff --git a/test/network_tests/debounce_tests/debounce_test_master_starter.sh b/test/network_tests/debounce_tests/debounce_test_master_starter.sh
new file mode 100755
index 0000000..534c2ff
--- /dev/null
+++ b/test/network_tests/debounce_tests/debounce_test_master_starter.sh
@@ -0,0 +1,52 @@
+#!/bin/bash
+# Copyright (C) 2020 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+FAIL=0
+
+export VSOMEIP_CONFIGURATION=debounce_test_client.json
+../../examples/routingmanagerd/routingmanagerd &
+PID_VSOMEIPD=$!
+
+sleep 1
+
+./debounce_test_client &
+PID_MASTER=$!
+
+sleep 1
+
+if [ ! -z "$USE_LXC_TEST" ]; then
+ echo "starting debounce test on slave LXC debounce_test_slave_starter.sh"
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./debounce_test_slave_starter.sh\"" &
+elif [ ! -z "$USE_DOCKER" ]; then
+ docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS; sleep 10; ./debounce_test_slave_starter.sh" &
+else
+cat <<End-of-message
+*******************************************************************************
+*******************************************************************************
+** Please now run:
+** debounce_test_slave_starter.sh
+** from an external host to successfully complete this test.
+**
+** You probably will need to adapt the 'unicast' settings in
+** debounce_test_slave.json to your personal setup.
+*******************************************************************************
+*******************************************************************************
+End-of-message
+fi
+
+# Wait until all slaves are finished
+for job in $PID_MASTER
+do
+ # Fail gets incremented if a client exits with a non-zero exit code
+ echo "waiting for $job"
+ wait $job || FAIL=$(($FAIL+1))
+done
+
+kill $PID_VSOMEIPD
+sleep 3
+
+# Check if everything went well
+exit $FAIL
diff --git a/test/network_tests/debounce_tests/debounce_test_service.cpp b/test/network_tests/debounce_tests/debounce_test_service.cpp
new file mode 100644
index 0000000..e9a6b72
--- /dev/null
+++ b/test/network_tests/debounce_tests/debounce_test_service.cpp
@@ -0,0 +1,286 @@
+// Copyright (C) 2020 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <vsomeip/internal/logger.hpp>
+
+#include "debounce_test_service.hpp"
+
+debounce_test_service::debounce_test_service(debounce_test_id_e _test_id)
+ : test_id_(_test_id),
+ is_running_(true),
+ runner_(std::bind(&debounce_test_service::run, this)),
+ app_(vsomeip::runtime::get()->create_application("debounce_test_service")) {
+
+}
+
+bool
+debounce_test_service::init() {
+
+ bool is_initialized = app_->init();
+ if (is_initialized) {
+ app_->register_message_handler(
+ DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_START_METHOD,
+ std::bind(&debounce_test_service::on_start, this,
+ std::placeholders::_1));
+ app_->register_message_handler(
+ DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_STOP_METHOD,
+ std::bind(&debounce_test_service::on_stop, this,
+ std::placeholders::_1));
+ app_->offer_event(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE,
+ DEBOUNCE_EVENT, { DEBOUNCE_EVENTGROUP },
+ vsomeip::event_type_e::ET_FIELD,
+ std::chrono::milliseconds::zero(),
+ false, true, nullptr,
+ vsomeip::reliability_type_e::RT_UNRELIABLE);
+ app_->offer_event(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE,
+ DEBOUNCE_EVENT_2, { DEBOUNCE_EVENTGROUP },
+ vsomeip::event_type_e::ET_FIELD,
+ std::chrono::milliseconds::zero(),
+ false, true, nullptr,
+ vsomeip::reliability_type_e::RT_UNRELIABLE);
+ app_->offer_event(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE,
+ DEBOUNCE_EVENT_4, { DEBOUNCE_EVENTGROUP },
+ vsomeip::event_type_e::ET_FIELD,
+ std::chrono::milliseconds::zero(),
+ false, true, nullptr,
+ vsomeip::reliability_type_e::RT_UNRELIABLE);
+ app_->offer_service(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE,
+ DEBOUNCE_MAJOR, DEBOUNCE_MINOR);
+ }
+ return (is_initialized);
+}
+
+void
+debounce_test_service::start() {
+
+ app_->start();
+}
+
+void
+debounce_test_service::stop() {
+
+ app_->stop();
+}
+
+void
+debounce_test_service::run() {
+
+ {
+ std::unique_lock<std::mutex> its_lock(run_mutex_);
+ auto its_result = run_condition_.wait_for(
+ its_lock, std::chrono::milliseconds(5000));
+ if (its_result == std::cv_status::timeout)
+ return;
+ }
+
+ start_test();
+}
+
+void
+debounce_test_service::wait() {
+
+ if (runner_.joinable())
+ runner_.join();
+}
+
+void
+debounce_test_service::on_start(
+ const std::shared_ptr<vsomeip::message> &_message) {
+
+ (void)_message;
+
+ VSOMEIP_INFO << __func__ << ": Starting test " << std::dec << test_id_;
+ run_condition_.notify_one();
+}
+
+
+void
+debounce_test_service::on_stop(
+ const std::shared_ptr<vsomeip::message> &_message) {
+
+ (void)_message;
+
+ VSOMEIP_INFO << __func__ << ": Received a STOP command.";
+ is_running_ = false;
+ stop();
+}
+
+void
+debounce_test_service::start_test() {
+
+ if (test_id_ == debounce_test_id_e::DTI_FLAT) {
+ auto its_payload = vsomeip::runtime::get()->create_payload();
+
+ its_payload->set_data({ 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT, its_payload);
+
+ its_payload->set_data({ 0x01, 0x02, 0x03, 0x04, 0x05, 0x07, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT, its_payload);
+
+ its_payload->set_data({ 0x02, 0x02, 0x03, 0x04, 0x04, 0x06, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT, its_payload);
+
+ its_payload->set_data({ 0x03, 0x02, 0x03, 0x04, 0x04, 0x07, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT, its_payload);
+
+ its_payload->set_data({ 0x04, 0x02, 0x03, 0x04, 0x03, 0x06, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT, its_payload);
+
+ its_payload->set_data({ 0x05, 0x02, 0x03, 0x04, 0x03, 0x07, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT, its_payload);
+
+ its_payload->set_data({ 0x06, 0x02, 0x03, 0x04, 0x02, 0x06, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT, its_payload);
+
+ its_payload->set_data({ 0x07, 0x02, 0x03, 0x04, 0x02, 0x07, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT, its_payload);
+
+ its_payload->set_data({ 0x08, 0x02, 0x03, 0x04, 0x01, 0x06, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT, its_payload);
+
+ its_payload->set_data({ 0x09, 0x02, 0x03, 0x04, 0x01, 0x07, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT, its_payload);
+ }
+
+ if (test_id_ == debounce_test_id_e::DTI_INCREASE) {
+ auto its_payload = vsomeip::runtime::get()->create_payload();
+
+ its_payload->set_data({ 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x01, 0x02, 0x03, 0x04, 0x05, 0x07, 0x07, 0x08 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x02, 0x02, 0x03, 0x04, 0x04, 0x06, 0x07, 0x08 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x03, 0x02, 0x03, 0x04, 0x04, 0x07, 0x07, 0x08, 0x09 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x04, 0x02, 0x03, 0x04, 0x03, 0x06, 0x07, 0x08, 0x09 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x05, 0x02, 0x03, 0x04, 0x03, 0x07, 0x07, 0x08, 0x09, 0x0A });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x06, 0x02, 0x03, 0x04, 0x02, 0x06, 0x07, 0x08, 0x09, 0x0A });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x07, 0x02, 0x03, 0x04, 0x02, 0x07, 0x07, 0x08, 0x09, 0x0A, 0x0B });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x08, 0x02, 0x03, 0x04, 0x01, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x09, 0x02, 0x03, 0x04, 0x01, 0x07, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+ }
+
+ if (test_id_ == debounce_test_id_e::DTI_DECREASE) {
+ auto its_payload = vsomeip::runtime::get()->create_payload();
+
+ its_payload->set_data({ 0x00, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x01, 0x02, 0x03, 0x04, 0x05, 0x07, 0x07, 0x08, 0x09, 0x0A, 0x0B });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x02, 0x02, 0x03, 0x04, 0x04, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x03, 0x02, 0x03, 0x04, 0x04, 0x07, 0x07, 0x08, 0x09, 0x0A });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x04, 0x02, 0x03, 0x04, 0x03, 0x06, 0x07, 0x08, 0x09, 0x0A });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x05, 0x02, 0x03, 0x04, 0x03, 0x07, 0x07, 0x08, 0x09 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x06, 0x02, 0x03, 0x04, 0x02, 0x06, 0x07, 0x08, 0x09 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x07, 0x02, 0x03, 0x04, 0x02, 0x07, 0x07, 0x08 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x08, 0x02, 0x03, 0x04, 0x01, 0x06, 0x07, 0x08 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+
+ its_payload->set_data({ 0x09, 0x02, 0x03, 0x04, 0x01, 0x07, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_2, its_payload);
+ }
+
+ if (test_id_ == debounce_test_id_e::DTI_MASK) {
+ auto its_payload = vsomeip::runtime::get()->create_payload();
+
+ its_payload->set_data({ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_4, its_payload);
+
+ its_payload->set_data({ 0x02, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_4, its_payload);
+
+ its_payload->set_data({ 0x10, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_4, its_payload);
+
+ its_payload->set_data({ 0x12, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_4, its_payload);
+
+ its_payload->set_data({ 0x20, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_4, its_payload);
+
+ its_payload->set_data({ 0x21, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_4, its_payload);
+
+ its_payload->set_data({ 0x22, 0x02, 0x03, 0x04, 0x05, 0x07, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_4, its_payload);
+
+ its_payload->set_data({ 0x23, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_4, its_payload);
+
+ its_payload->set_data({ 0x24, 0x02, 0x03, 0x04, 0x05, 0x07, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_4, its_payload);
+
+ its_payload->set_data({ 0x25, 0x02, 0x03, 0x04, 0x05, 0x17, 0x07 });
+ app_->notify(DEBOUNCE_SERVICE, DEBOUNCE_INSTANCE, DEBOUNCE_EVENT_4, its_payload);
+ }
+}
+
+TEST(debounce_test, flat) {
+ debounce_test_service its_service(debounce_test_id_e::DTI_FLAT);
+ if (its_service.init()) {
+ its_service.start();
+ its_service.wait();
+ }
+}
+
+TEST(debounce_test, increase) {
+ debounce_test_service its_service(debounce_test_id_e::DTI_INCREASE);
+ if (its_service.init()) {
+ its_service.start();
+ its_service.wait();
+ }
+}
+
+TEST(debounce_test, decrease) {
+ debounce_test_service its_service(debounce_test_id_e::DTI_DECREASE);
+ if (its_service.init()) {
+ its_service.start();
+ its_service.wait();
+ }
+}
+
+TEST(debounce_test, mask) {
+ debounce_test_service its_service(debounce_test_id_e::DTI_MASK);
+ if (its_service.init()) {
+ its_service.start();
+ its_service.wait();
+ }
+}
+
+int main(int argc, char** argv) {
+
+ ::testing::InitGoogleTest(&argc, argv);
+ return RUN_ALL_TESTS();
+}
diff --git a/test/network_tests/debounce_tests/debounce_test_service.hpp b/test/network_tests/debounce_tests/debounce_test_service.hpp
new file mode 100644
index 0000000..0271ae1
--- /dev/null
+++ b/test/network_tests/debounce_tests/debounce_test_service.hpp
@@ -0,0 +1,48 @@
+// Copyright (C) 2020 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#ifndef DEBOUNCE_TEST_SERVICE_HPP_
+#define DEBOUNCE_TEST_SERVICE_HPP_
+
+#include <atomic>
+#include <condition_variable>
+#include <mutex>
+#include <thread>
+
+#include <gtest/gtest.h>
+
+#include <vsomeip/vsomeip.hpp>
+
+#include "debounce_test_common.hpp"
+
+class debounce_test_service {
+public:
+ debounce_test_service(debounce_test_id_e _test_id);
+
+ bool init();
+ void start();
+ void stop();
+
+ void run();
+ void wait();
+
+private:
+ void on_start(const std::shared_ptr<vsomeip::message> &_message);
+ void on_stop(const std::shared_ptr<vsomeip::message> &_message);
+
+ void start_test();
+
+ debounce_test_id_e test_id_;
+
+ std::mutex run_mutex_;
+ std::condition_variable run_condition_;
+
+ std::atomic<bool> is_running_;
+ std::thread runner_;
+ std::shared_ptr<vsomeip::application> app_;
+};
+
+
+#endif // DEBOUNCE_TEST_SERVICE_HPP_
diff --git a/test/network_tests/debounce_tests/debounce_test_slave_starter.sh b/test/network_tests/debounce_tests/debounce_test_slave_starter.sh
new file mode 100755
index 0000000..ce5b230
--- /dev/null
+++ b/test/network_tests/debounce_tests/debounce_test_slave_starter.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+# Copyright (C) 2020 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+FAIL=0
+
+export VSOMEIP_CONFIGURATION=debounce_test_service.json
+../../examples/routingmanagerd/routingmanagerd &
+PID_VSOMEIPD=$!
+
+sleep 1
+
+./debounce_test_service &
+PID_SLAVE=$!
+
+# Wait until all slaves are finished
+for job in $PID_SLAVE
+do
+ # Fail gets incremented if a client exits with a non-zero exit code
+ echo "waiting for $job"
+ wait $job || FAIL=$(($FAIL+1))
+done
+
+# kill the services
+kill $PID_VSOMEIPD
+sleep 3
+
+# Check if everything went well
+exit $FAIL
diff --git a/test/e2e_tests/conf/e2e_profile_04_test_client_external.json.in b/test/network_tests/e2e_tests/conf/e2e_profile_04_test_client_external.json.in
index 6952459..6952459 100644
--- a/test/e2e_tests/conf/e2e_profile_04_test_client_external.json.in
+++ b/test/network_tests/e2e_tests/conf/e2e_profile_04_test_client_external.json.in
diff --git a/test/e2e_tests/conf/e2e_profile_04_test_service_external.json.in b/test/network_tests/e2e_tests/conf/e2e_profile_04_test_service_external.json.in
index efeffef..efeffef 100644
--- a/test/e2e_tests/conf/e2e_profile_04_test_service_external.json.in
+++ b/test/network_tests/e2e_tests/conf/e2e_profile_04_test_service_external.json.in
diff --git a/test/e2e_tests/conf/e2e_test_client_external.json.in b/test/network_tests/e2e_tests/conf/e2e_test_client_external.json.in
index d00c4bf..d00c4bf 100644
--- a/test/e2e_tests/conf/e2e_test_client_external.json.in
+++ b/test/network_tests/e2e_tests/conf/e2e_test_client_external.json.in
diff --git a/test/e2e_tests/conf/e2e_test_service_external.json.in b/test/network_tests/e2e_tests/conf/e2e_test_service_external.json.in
index d2b8e04..d2b8e04 100644
--- a/test/e2e_tests/conf/e2e_test_service_external.json.in
+++ b/test/network_tests/e2e_tests/conf/e2e_test_service_external.json.in
diff --git a/test/e2e_tests/e2e_profile_04_test_client.cpp b/test/network_tests/e2e_tests/e2e_profile_04_test_client.cpp
index 7056e16..23c9c06 100644
--- a/test/e2e_tests/e2e_profile_04_test_client.cpp
+++ b/test/network_tests/e2e_tests/e2e_profile_04_test_client.cpp
@@ -68,7 +68,7 @@ void
e2e_profile_04_test_client::on_state(vsomeip::state_type_e _state) {
if (_state == vsomeip::state_type_e::ST_REGISTERED) {
- app_->request_service(PROFILE_04_SERVICE, PROFILE_04_INSTANCE, false);
+ app_->request_service(PROFILE_04_SERVICE, PROFILE_04_INSTANCE);
// request event 0x8001, that is protected by E2E Profile 04
app_->request_event(PROFILE_04_SERVICE, PROFILE_04_INSTANCE,
diff --git a/test/e2e_tests/e2e_profile_04_test_client.hpp b/test/network_tests/e2e_tests/e2e_profile_04_test_client.hpp
index ad00291..ad00291 100644
--- a/test/e2e_tests/e2e_profile_04_test_client.hpp
+++ b/test/network_tests/e2e_tests/e2e_profile_04_test_client.hpp
diff --git a/test/e2e_tests/e2e_profile_04_test_common.hpp b/test/network_tests/e2e_tests/e2e_profile_04_test_common.hpp
index 04cba23..04cba23 100644
--- a/test/e2e_tests/e2e_profile_04_test_common.hpp
+++ b/test/network_tests/e2e_tests/e2e_profile_04_test_common.hpp
diff --git a/test/e2e_tests/e2e_profile_04_test_external_master_start.sh b/test/network_tests/e2e_tests/e2e_profile_04_test_external_master_start.sh
index f3d6e34..df2095b 100755
--- a/test/e2e_tests/e2e_profile_04_test_external_master_start.sh
+++ b/test/network_tests/e2e_tests/e2e_profile_04_test_external_master_start.sh
@@ -31,12 +31,9 @@ PID_CLIENT=$!
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting external e2e profile 04 test on slave LXC"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./e2e_profile_04_test_external_slave_start.sh $SERVICE_JSON_FILE\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./e2e_profile_04_test_external_slave_start.sh $SERVICE_JSON_FILE\"" &
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./e2e_profile_04_test_external_slave_start.sh $SERVICE_JSON_FILE" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./e2e_profile_04_test_external_slave_start.sh $SERVICE_JSON_FILE\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
diff --git a/test/e2e_tests/e2e_profile_04_test_external_slave_start.sh b/test/network_tests/e2e_tests/e2e_profile_04_test_external_slave_start.sh
index 17104b8..17104b8 100755
--- a/test/e2e_tests/e2e_profile_04_test_external_slave_start.sh
+++ b/test/network_tests/e2e_tests/e2e_profile_04_test_external_slave_start.sh
diff --git a/test/e2e_tests/e2e_profile_04_test_service.cpp b/test/network_tests/e2e_tests/e2e_profile_04_test_service.cpp
index ca54084..c5d6b38 100644
--- a/test/e2e_tests/e2e_profile_04_test_service.cpp
+++ b/test/network_tests/e2e_tests/e2e_profile_04_test_service.cpp
@@ -200,7 +200,7 @@ TEST(someip_e2e_profile_04_test, basic_subscribe_request_response) {
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv) {
diff --git a/test/e2e_tests/e2e_profile_04_test_service.hpp b/test/network_tests/e2e_tests/e2e_profile_04_test_service.hpp
index 626db05..626db05 100644
--- a/test/e2e_tests/e2e_profile_04_test_service.hpp
+++ b/test/network_tests/e2e_tests/e2e_profile_04_test_service.hpp
diff --git a/test/e2e_tests/e2e_test_client.cpp b/test/network_tests/e2e_tests/e2e_test_client.cpp
index 260ad7e..260ad7e 100644
--- a/test/e2e_tests/e2e_test_client.cpp
+++ b/test/network_tests/e2e_tests/e2e_test_client.cpp
diff --git a/test/e2e_tests/e2e_test_client.hpp b/test/network_tests/e2e_tests/e2e_test_client.hpp
index 378263c..378263c 100644
--- a/test/e2e_tests/e2e_test_client.hpp
+++ b/test/network_tests/e2e_tests/e2e_test_client.hpp
diff --git a/test/e2e_tests/e2e_test_external_master_start.sh b/test/network_tests/e2e_tests/e2e_test_external_master_start.sh
index e787fcb..16836c7 100755
--- a/test/e2e_tests/e2e_test_external_master_start.sh
+++ b/test/network_tests/e2e_tests/e2e_test_external_master_start.sh
@@ -31,12 +31,9 @@ PID_CLIENT=$!
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting external e2e test on slave LXC"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./e2e_test_external_slave_start.sh $SERVICE_JSON_FILE\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./e2e_test_external_slave_start.sh $SERVICE_JSON_FILE\"" &
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./e2e_test_external_slave_start.sh $SERVICE_JSON_FILE" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./e2e_test_external_slave_start.sh $SERVICE_JSON_FILE\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
diff --git a/test/e2e_tests/e2e_test_external_slave_start.sh b/test/network_tests/e2e_tests/e2e_test_external_slave_start.sh
index a6855b1..a6855b1 100755
--- a/test/e2e_tests/e2e_test_external_slave_start.sh
+++ b/test/network_tests/e2e_tests/e2e_test_external_slave_start.sh
diff --git a/test/e2e_tests/e2e_test_service.cpp b/test/network_tests/e2e_tests/e2e_test_service.cpp
index 7165cd8..25cf602 100644
--- a/test/e2e_tests/e2e_test_service.cpp
+++ b/test/network_tests/e2e_tests/e2e_test_service.cpp
@@ -208,7 +208,7 @@ TEST(someip_e2e_test, basic_subscribe_request_response) {
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv) {
/*
diff --git a/test/e2e_tests/e2e_test_service.hpp b/test/network_tests/e2e_tests/e2e_test_service.hpp
index f7f2b96..f7f2b96 100644
--- a/test/e2e_tests/e2e_test_service.hpp
+++ b/test/network_tests/e2e_tests/e2e_test_service.hpp
diff --git a/test/event_tests/conf/event_test_master.json.in b/test/network_tests/event_tests/conf/event_test_master.json.in
index b8db14f..b8db14f 100644
--- a/test/event_tests/conf/event_test_master.json.in
+++ b/test/network_tests/event_tests/conf/event_test_master.json.in
diff --git a/test/event_tests/conf/event_test_slave_tcp.json.in b/test/network_tests/event_tests/conf/event_test_slave_tcp.json.in
index d0bbed9..d0bbed9 100644
--- a/test/event_tests/conf/event_test_slave_tcp.json.in
+++ b/test/network_tests/event_tests/conf/event_test_slave_tcp.json.in
diff --git a/test/event_tests/conf/event_test_slave_udp.json.in b/test/network_tests/event_tests/conf/event_test_slave_udp.json.in
index 6bf693b..6bf693b 100644
--- a/test/event_tests/conf/event_test_slave_udp.json.in
+++ b/test/network_tests/event_tests/conf/event_test_slave_udp.json.in
diff --git a/test/event_tests/event_test_client.cpp b/test/network_tests/event_tests/event_test_client.cpp
index 227de85..e183d8c 100644
--- a/test/event_tests/event_test_client.cpp
+++ b/test/network_tests/event_tests/event_test_client.cpp
@@ -170,51 +170,53 @@ public:
}
void send() {
- std::unique_lock<std::mutex> its_lock(mutex_);
- while (wait_until_registered_) {
- condition_.wait(its_lock);
- }
+ {
+ std::unique_lock<std::mutex> its_lock(mutex_);
+ while (wait_until_registered_) {
+ condition_.wait(its_lock);
+ }
- while (wait_until_service_available_) {
- condition_.wait(its_lock);
- }
+ while (wait_until_service_available_) {
+ condition_.wait(its_lock);
+ }
- while (wait_until_subscription_accepted_) {
- if (std::cv_status::timeout == condition_.wait_for(its_lock, std::chrono::seconds(30))) {
- VSOMEIP_ERROR << "Subscription wasn't accepted in time!";
- break;
+ while (wait_until_subscription_accepted_) {
+ if (std::cv_status::timeout == condition_.wait_for(its_lock, std::chrono::seconds(30))) {
+ VSOMEIP_ERROR << "Subscription wasn't accepted in time!";
+ break;
+ }
}
- }
- // call notify method
- auto its_message = vsomeip::runtime::get()->create_request(use_tcp_);
- its_message->set_service(service_info_.service_id);
- its_message->set_instance(service_info_.instance_id);
- its_message->set_method(service_info_.notify_method_id);
- its_message->set_message_type(vsomeip::message_type_e::MT_REQUEST_NO_RETURN);
- auto its_payload = vsomeip::runtime::get()->create_payload();
- its_payload->set_data(std::vector<vsomeip::byte_t>({
- static_cast<vsomeip::byte_t>(test_mode_),
- static_cast<vsomeip::byte_t>(number_events_to_send_)}));
- its_message->set_payload(its_payload);
- app_->send(its_message);
-
- while (wait_until_events_received_) {
- if (std::cv_status::timeout == condition_.wait_for(its_lock, std::chrono::seconds(30))) {
- VSOMEIP_ERROR << "Didn't receive events in time!";
- break;
+ // call notify method
+ auto its_message = vsomeip::runtime::get()->create_request(use_tcp_);
+ its_message->set_service(service_info_.service_id);
+ its_message->set_instance(service_info_.instance_id);
+ its_message->set_method(service_info_.notify_method_id);
+ its_message->set_message_type(vsomeip::message_type_e::MT_REQUEST_NO_RETURN);
+ auto its_payload = vsomeip::runtime::get()->create_payload();
+ its_payload->set_data(std::vector<vsomeip::byte_t>({
+ static_cast<vsomeip::byte_t>(test_mode_),
+ static_cast<vsomeip::byte_t>(number_events_to_send_)}));
+ its_message->set_payload(its_payload);
+ app_->send(its_message);
+
+ while (wait_until_events_received_) {
+ if (std::cv_status::timeout == condition_.wait_for(its_lock, std::chrono::seconds(30))) {
+ VSOMEIP_ERROR << "Didn't receive events in time!";
+ break;
+ }
}
- }
- // shutdown service
- its_message->set_method(service_info_.shutdown_method_id);
- its_message->set_message_type(vsomeip::message_type_e::MT_REQUEST);
- app_->send(its_message);
+ // shutdown service
+ its_message->set_method(service_info_.shutdown_method_id);
+ its_message->set_message_type(vsomeip::message_type_e::MT_REQUEST);
+ app_->send(its_message);
- while (wait_until_shutdown_reply_received_) {
- if (std::cv_status::timeout == condition_.wait_for(its_lock, std::chrono::seconds(30))) {
- VSOMEIP_ERROR << "Shutdown request wasn't answered in time!";
- break;
+ while (wait_until_shutdown_reply_received_) {
+ if (std::cv_status::timeout == condition_.wait_for(its_lock, std::chrono::seconds(30))) {
+ VSOMEIP_ERROR << "Shutdown request wasn't answered in time!";
+ break;
+ }
}
}
VSOMEIP_INFO << "going down";
@@ -251,7 +253,7 @@ TEST(someip_event_test, subscribe_or_call_method_at_service)
event_test_client its_sample(event_test::service, passed_mode, use_tcp);
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/event_tests/event_test_globals.hpp b/test/network_tests/event_tests/event_test_globals.hpp
index 733c3c6..733c3c6 100644
--- a/test/event_tests/event_test_globals.hpp
+++ b/test/network_tests/event_tests/event_test_globals.hpp
diff --git a/test/event_tests/event_test_master_starter.sh b/test/network_tests/event_tests/event_test_master_starter.sh
index e00639f..61dc9bc 100755
--- a/test/event_tests/event_test_master_starter.sh
+++ b/test/network_tests/event_tests/event_test_master_starter.sh
@@ -18,7 +18,7 @@ TESTMODE=$1
COMMUNICATIONMODE=$2
export VSOMEIP_CONFIGURATION=event_test_master.json
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
./event_test_client $TESTMODE $COMMUNICATIONMODE &
@@ -28,12 +28,9 @@ sleep 1
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting offer test on slave LXC offer_test_external_slave_starter.sh"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./event_test_slave_starter.sh $COMMUNICATIONMODE\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./event_test_slave_starter.sh $COMMUNICATIONMODE\"" &
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && sleep 10; ./event_test_slave_starter.sh $COMMUNICATIONMODE" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./event_test_slave_starter.sh $COMMUNICATIONMODE\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
diff --git a/test/event_tests/event_test_service.cpp b/test/network_tests/event_tests/event_test_service.cpp
index 74a4bbf..6e81a6a 100644
--- a/test/event_tests/event_test_service.cpp
+++ b/test/network_tests/event_tests/event_test_service.cpp
@@ -185,7 +185,7 @@ TEST(someip_event_test, send_events)
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/event_tests/event_test_slave_starter.sh b/test/network_tests/event_tests/event_test_slave_starter.sh
index c09bd79..c1bd489 100755
--- a/test/event_tests/event_test_slave_starter.sh
+++ b/test/network_tests/event_tests/event_test_slave_starter.sh
@@ -22,7 +22,7 @@ elif [ "$COMMUNICATIONMODE" = "UDP" ]; then
fi
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
./event_test_service $COMMUNICATIONMODE &
diff --git a/test/header_factory_tests/header_factory_test.cpp b/test/network_tests/header_factory_tests/header_factory_test.cpp
index bcd1ef3..14abf92 100644
--- a/test/header_factory_tests/header_factory_test.cpp
+++ b/test/network_tests/header_factory_tests/header_factory_test.cpp
@@ -110,7 +110,7 @@ TEST_F(someip_header_factory_test, create_notification_test)
ASSERT_EQ(notification_->get_return_code(), vsomeip::return_code_e::E_OK);
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/header_factory_tests/header_factory_test_client.cpp b/test/network_tests/header_factory_tests/header_factory_test_client.cpp
index 3ac4a06..3435dea 100644
--- a/test/header_factory_tests/header_factory_test_client.cpp
+++ b/test/network_tests/header_factory_tests/header_factory_test_client.cpp
@@ -161,7 +161,7 @@ TEST(someip_header_factory_test, send_message_ten_times_test)
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/header_factory_tests/header_factory_test_client.hpp b/test/network_tests/header_factory_tests/header_factory_test_client.hpp
index 8e9a4c2..8e9a4c2 100644
--- a/test/header_factory_tests/header_factory_test_client.hpp
+++ b/test/network_tests/header_factory_tests/header_factory_test_client.hpp
diff --git a/test/header_factory_tests/header_factory_test_client.json b/test/network_tests/header_factory_tests/header_factory_test_client.json
index 71bc75b..71bc75b 100644
--- a/test/header_factory_tests/header_factory_test_client.json
+++ b/test/network_tests/header_factory_tests/header_factory_test_client.json
diff --git a/test/header_factory_tests/header_factory_test_client_start.sh b/test/network_tests/header_factory_tests/header_factory_test_client_start.sh
index 4e9c1ed..4e9c1ed 100755
--- a/test/header_factory_tests/header_factory_test_client_start.sh
+++ b/test/network_tests/header_factory_tests/header_factory_test_client_start.sh
diff --git a/test/header_factory_tests/header_factory_test_send_receive_starter.sh b/test/network_tests/header_factory_tests/header_factory_test_send_receive_starter.sh
index 5d1d780..5d1d780 100755
--- a/test/header_factory_tests/header_factory_test_send_receive_starter.sh
+++ b/test/network_tests/header_factory_tests/header_factory_test_send_receive_starter.sh
diff --git a/test/header_factory_tests/header_factory_test_service.cpp b/test/network_tests/header_factory_tests/header_factory_test_service.cpp
index d60c743..4caca7a 100644
--- a/test/header_factory_tests/header_factory_test_service.cpp
+++ b/test/network_tests/header_factory_tests/header_factory_test_service.cpp
@@ -161,7 +161,7 @@ TEST(someip_header_factory_test, reveice_message_ten_times_test)
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/header_factory_tests/header_factory_test_service.hpp b/test/network_tests/header_factory_tests/header_factory_test_service.hpp
index 32e49e5..32e49e5 100644
--- a/test/header_factory_tests/header_factory_test_service.hpp
+++ b/test/network_tests/header_factory_tests/header_factory_test_service.hpp
diff --git a/test/header_factory_tests/header_factory_test_service.json b/test/network_tests/header_factory_tests/header_factory_test_service.json
index a99d0a2..a99d0a2 100644
--- a/test/header_factory_tests/header_factory_test_service.json
+++ b/test/network_tests/header_factory_tests/header_factory_test_service.json
diff --git a/test/header_factory_tests/header_factory_test_service_start.sh b/test/network_tests/header_factory_tests/header_factory_test_service_start.sh
index e123a46..e123a46 100755
--- a/test/header_factory_tests/header_factory_test_service_start.sh
+++ b/test/network_tests/header_factory_tests/header_factory_test_service_start.sh
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master.json.in
index d7b5c7b..d7b5c7b 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master_tcp.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master_tcp.json.in
index a05d13f..a05d13f 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master_tcp.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master_tcp.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master_udp.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master_udp.json.in
index 8ce06f0..8ce06f0 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master_udp.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_master_udp.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_same_service_id_master.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_same_service_id_master.json.in
index 6445025..6445025 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_same_service_id_master.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_same_service_id_master.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_same_service_id_slave.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_same_service_id_slave.json.in
index c5dddc3..c5dddc3 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_same_service_id_slave.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_same_service_id_slave.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave.json.in
index 3e7e286..3e7e286 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave_tcp.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave_tcp.json.in
index 1fc97a4..1fc97a4 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave_tcp.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave_tcp.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave_udp.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave_udp.json.in
index d303a4c..d303a4c 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave_udp.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_diff_ports_slave_udp.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_partial_same_ports_master.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_partial_same_ports_master.json.in
index f168fae..f168fae 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_partial_same_ports_master.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_partial_same_ports_master.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_partial_same_ports_slave.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_partial_same_ports_slave.json.in
index 30206a2..30206a2 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_partial_same_ports_slave.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_partial_same_ports_slave.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master.json.in
index 785e651..785e651 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master_tcp.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master_tcp.json.in
index b065685..b065685 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master_tcp.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master_tcp.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master_udp.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master_udp.json.in
index ca77daf..ca77daf 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master_udp.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_master_udp.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave.json.in
index cfbdac4..cfbdac4 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave_tcp.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave_tcp.json.in
index eaeab4a..eaeab4a 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave_tcp.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave_tcp.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave_udp.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave_udp.json.in
index 5d978f0..5d978f0 100644
--- a/test/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave_udp.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_diff_client_ids_same_ports_slave_udp.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_same_client_ids_diff_ports_master.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_same_client_ids_diff_ports_master.json.in
index d7b5c7b..d7b5c7b 100644
--- a/test/initial_event_tests/conf/initial_event_test_same_client_ids_diff_ports_master.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_same_client_ids_diff_ports_master.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_same_client_ids_diff_ports_slave.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_same_client_ids_diff_ports_slave.json.in
index facc51a..facc51a 100644
--- a/test/initial_event_tests/conf/initial_event_test_same_client_ids_diff_ports_slave.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_same_client_ids_diff_ports_slave.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_same_client_ids_same_ports_master.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_same_client_ids_same_ports_master.json.in
index 785e651..785e651 100644
--- a/test/initial_event_tests/conf/initial_event_test_same_client_ids_same_ports_master.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_same_client_ids_same_ports_master.json.in
diff --git a/test/initial_event_tests/conf/initial_event_test_same_client_ids_same_ports_slave.json.in b/test/network_tests/initial_event_tests/conf/initial_event_test_same_client_ids_same_ports_slave.json.in
index 97b5d9f..97b5d9f 100644
--- a/test/initial_event_tests/conf/initial_event_test_same_client_ids_same_ports_slave.json.in
+++ b/test/network_tests/initial_event_tests/conf/initial_event_test_same_client_ids_same_ports_slave.json.in
diff --git a/test/initial_event_tests/initial_event_test_availability_checker.cpp b/test/network_tests/initial_event_tests/initial_event_test_availability_checker.cpp
index 4fc3085..f05b592 100644
--- a/test/initial_event_tests/initial_event_test_availability_checker.cpp
+++ b/test/network_tests/initial_event_tests/initial_event_test_availability_checker.cpp
@@ -139,7 +139,7 @@ TEST(someip_initial_event_test, wait_for_availability_and_exit)
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/initial_event_tests/initial_event_test_client.cpp b/test/network_tests/initial_event_tests/initial_event_test_client.cpp
index ef215f1..ba549ab 100644
--- a/test/initial_event_tests/initial_event_test_client.cpp
+++ b/test/network_tests/initial_event_tests/initial_event_test_client.cpp
@@ -15,7 +15,7 @@
#include <gtest/gtest.h>
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
#include <signal.h>
#endif
@@ -443,7 +443,6 @@ public:
sigaddset(&handler_mask, SIGABRT);
pthread_sigmask(SIG_UNBLOCK, &handler_mask, NULL);
-
struct sigaction sa_new, sa_old;
sa_new.sa_handler = signal_handler;
sa_new.sa_flags = 0;
@@ -453,9 +452,6 @@ public:
::sigaction(SIGTERM, &sa_new, &sa_old);
::sigaction(SIGABRT, &sa_new, &sa_old);
-
-
-
{
std::lock_guard<std::mutex> its_lock(signal_mutex_);
wait_for_signal_handler_registration_ = false;
@@ -482,7 +478,8 @@ public:
while (wait_for_stop_) {
stop_condition_.wait_for(its_lock, std::chrono::milliseconds(100));
}
- VSOMEIP_ERROR << "(" << std::dec << its_call_number << ") [" << std::setw(4) << std::setfill('0') << std::hex
+ VSOMEIP_ERROR << "(" << std::dec << its_call_number << ") ["
+ << std::setw(4) << std::setfill('0') << std::hex
<< client_number_
<< "] Received notifications from all services, going down";
}
@@ -567,7 +564,7 @@ TEST(someip_initial_event_test, wait_for_initial_events_of_all_services)
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
// Block all signals
diff --git a/test/initial_event_tests/initial_event_test_globals.hpp b/test/network_tests/initial_event_tests/initial_event_test_globals.hpp
index ce69ea9..ce69ea9 100644
--- a/test/initial_event_tests/initial_event_test_globals.hpp
+++ b/test/network_tests/initial_event_tests/initial_event_test_globals.hpp
diff --git a/test/initial_event_tests/initial_event_test_master_starter.sh b/test/network_tests/initial_event_tests/initial_event_test_master_starter.sh
index 85607c4..9d52e3f 100755
--- a/test/initial_event_tests/initial_event_test_master_starter.sh
+++ b/test/network_tests/initial_event_tests/initial_event_test_master_starter.sh
@@ -28,11 +28,9 @@ print_starter_message () {
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting initial event test on slave LXC with params $CLIENT_JSON_FILE $REMAINING_OPTIONS"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./initial_event_test_slave_starter.sh $CLIENT_JSON_FILE $REMAINING_OPTIONS\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./initial_event_test_slave_starter.sh $CLIENT_JSON_FILE $REMAINING_OPTIONS\"" &
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./initial_event_test_slave_starter.sh $CLIENT_JSON_FILE $REMAINING_OPTIONS" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./initial_event_test_slave_starter.sh $CLIENT_JSON_FILE $REMAINING_OPTIONS\" >> $WS_ROOT/slave_test_output 2>&1" &
else
cat <<End-of-message
*******************************************************************************
@@ -129,15 +127,14 @@ kill $FIRST_PID
wait $FIRST_PID || FAIL=$(($FAIL+1))
# shutdown the services
-kill $PID_SERVICE_THREE $PID_SERVICE_TWO $PID_SERVICE_ONE
-wait $PID_SERVICE_THREE $PID_SERVICE_TWO $PID_SERVICE_ONE
-
-
+kill $PID_SERVICE_THREE
+kill $PID_SERVICE_TWO
+kill $PID_SERVICE_ONE
sleep 1
echo ""
-# Check if both exited successfully
+# Check if they exited successfully
if [ $FAIL -eq 0 ]
then
exit 0
diff --git a/test/initial_event_tests/initial_event_test_service.cpp b/test/network_tests/initial_event_tests/initial_event_test_service.cpp
index b7d8281..2ee0ca4 100644
--- a/test/initial_event_tests/initial_event_test_service.cpp
+++ b/test/network_tests/initial_event_tests/initial_event_test_service.cpp
@@ -129,7 +129,7 @@ TEST(someip_initial_event_test, set_field_once)
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/initial_event_tests/initial_event_test_slave_starter.sh b/test/network_tests/initial_event_tests/initial_event_test_slave_starter.sh
index 6f6bd40..6aea217 100755
--- a/test/initial_event_tests/initial_event_test_slave_starter.sh
+++ b/test/network_tests/initial_event_tests/initial_event_test_slave_starter.sh
@@ -95,7 +95,7 @@ kill $PID_SERVICE_FOUR
sleep 1
echo ""
-# Check if both exited successfully
+# Check if they exited successfully
if [ $FAIL -eq 0 ]
then
exit 0
diff --git a/test/initial_event_tests/initial_event_test_stop_service.cpp b/test/network_tests/initial_event_tests/initial_event_test_stop_service.cpp
index 465c837..db91d06 100644
--- a/test/initial_event_tests/initial_event_test_stop_service.cpp
+++ b/test/network_tests/initial_event_tests/initial_event_test_stop_service.cpp
@@ -152,12 +152,7 @@ public:
<< std::setw(4) << std::setfill('0') << std::hex
<< _message->get_session() << "] shutdown method called";
-
- VSOMEIP_ERROR << "stop_service::" << __func__
- << ": (1)";
std::lock_guard<std::mutex> its_lock(stop_mutex_);
- VSOMEIP_ERROR << "stop_service::" << __func__
- << ": (2)";
wait_for_stop_ = false;
stop_condition_.notify_one();
}
@@ -201,7 +196,13 @@ public:
{
std::unique_lock<std::mutex> its_lock(mutex_);
while (wait_until_shutdown_method_called_) {
- condition_.wait(its_lock);
+ auto its_reason = condition_.wait_for(its_lock, std::chrono::milliseconds(250));
+ if (its_reason == std::cv_status::timeout) {
+ std::lock_guard<std::mutex> its_lock(stop_mutex_);
+ wait_for_stop_ = false;
+ stop_condition_.notify_one();
+ wait_until_shutdown_method_called_ = false;
+ }
}
}
}
@@ -266,7 +267,7 @@ TEST(someip_initial_event_test, wait_for_stop_method_to_be_called)
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/magic_cookies_tests/conf/magic_cookies_test_client.json.in b/test/network_tests/magic_cookies_tests/conf/magic_cookies_test_client.json.in
index bcb2e29..bcb2e29 100644
--- a/test/magic_cookies_tests/conf/magic_cookies_test_client.json.in
+++ b/test/network_tests/magic_cookies_tests/conf/magic_cookies_test_client.json.in
diff --git a/test/magic_cookies_tests/conf/magic_cookies_test_service.json.in b/test/network_tests/magic_cookies_tests/conf/magic_cookies_test_service.json.in
index 0e53c24..0e53c24 100644
--- a/test/magic_cookies_tests/conf/magic_cookies_test_service.json.in
+++ b/test/network_tests/magic_cookies_tests/conf/magic_cookies_test_service.json.in
diff --git a/test/magic_cookies_tests/magic_cookies_test_client.cpp b/test/network_tests/magic_cookies_tests/magic_cookies_test_client.cpp
index dc02309..89a0029 100644
--- a/test/magic_cookies_tests/magic_cookies_test_client.cpp
+++ b/test/network_tests/magic_cookies_tests/magic_cookies_test_client.cpp
@@ -20,7 +20,7 @@
class magic_cookies_test_client {
public:
magic_cookies_test_client()
- : app_(new vsomeip::application_impl("")),
+ : app_(new vsomeip::application_impl("", "")),
is_blocked_(false),
sent_messages_good_(8),
sent_messages_bad_(7),
diff --git a/test/magic_cookies_tests/magic_cookies_test_client_start.sh b/test/network_tests/magic_cookies_tests/magic_cookies_test_client_start.sh
index 45f4d3c..45f4d3c 100755
--- a/test/magic_cookies_tests/magic_cookies_test_client_start.sh
+++ b/test/network_tests/magic_cookies_tests/magic_cookies_test_client_start.sh
diff --git a/test/magic_cookies_tests/magic_cookies_test_service.cpp b/test/network_tests/magic_cookies_tests/magic_cookies_test_service.cpp
index d8ac4d7..d8ac4d7 100644
--- a/test/magic_cookies_tests/magic_cookies_test_service.cpp
+++ b/test/network_tests/magic_cookies_tests/magic_cookies_test_service.cpp
diff --git a/test/magic_cookies_tests/magic_cookies_test_service_start.sh b/test/network_tests/magic_cookies_tests/magic_cookies_test_service_start.sh
index 9288b7e..9288b7e 100755
--- a/test/magic_cookies_tests/magic_cookies_test_service_start.sh
+++ b/test/network_tests/magic_cookies_tests/magic_cookies_test_service_start.sh
diff --git a/test/magic_cookies_tests/magic_cookies_test_starter.sh b/test/network_tests/magic_cookies_tests/magic_cookies_test_starter.sh
index d05a371..1e9cfc4 100755
--- a/test/magic_cookies_tests/magic_cookies_test_starter.sh
+++ b/test/network_tests/magic_cookies_tests/magic_cookies_test_starter.sh
@@ -17,12 +17,9 @@ FAIL=0
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting magic cookies test on slave LXC"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./magic_cookies_test_client_start.sh\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./magic_cookies_test_client_start.sh\"" &
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./magic_cookies_test_client_start.sh" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./magic_cookies_test_client_start.sh\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
@@ -34,7 +31,7 @@ cat <<End-of-message
** You probably will need to adapt the 'unicast' settings in
** magic_cookies_client.json and
** magic_cookies_service.json to your personal setup.
-**
+**
*******************************************************************************
*******************************************************************************
End-of-message
diff --git a/test/malicious_data_tests/conf/malicious_data_test_master.json.in b/test/network_tests/malicious_data_tests/conf/malicious_data_test_master.json.in
index 5c2e511..5c2e511 100644
--- a/test/malicious_data_tests/conf/malicious_data_test_master.json.in
+++ b/test/network_tests/malicious_data_tests/conf/malicious_data_test_master.json.in
diff --git a/test/malicious_data_tests/conf/malicious_data_test_master_starter.sh.in b/test/network_tests/malicious_data_tests/conf/malicious_data_test_master_starter.sh.in
index 2b3c59b..6cdefc6 100755
--- a/test/malicious_data_tests/conf/malicious_data_test_master_starter.sh.in
+++ b/test/network_tests/malicious_data_tests/conf/malicious_data_test_master_starter.sh.in
@@ -24,7 +24,7 @@ TESTMODE=$1
export VSOMEIP_CONFIGURATION=malicious_data_test_master.json
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
# Start the services
./malicious_data_test_service $TESTMODE &
@@ -36,16 +36,12 @@ if [ ! -z "$USE_LXC_TEST" ]; then
echo "Waiting for 5s"
sleep 5
echo "starting offer test on slave LXC offer_test_external_slave_starter.sh"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./malicious_data_test_msg_sender @TEST_IP_MASTER@ @TEST_IP_SLAVE@ $TESTMODE\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./malicious_data_test_msg_sender @TEST_IP_MASTER@ @TEST_IP_SLAVE@ $TESTMODE\"" &
echo "remote ssh pid: $!"
elif [ ! -z "$USE_DOCKER" ]; then
echo "Waiting for 5s"
sleep 5
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && sleep 10; ./malicious_data_test_msg_sender @TEST_IP_MASTER@ @TEST_IP_SLAVE@ $TESTMODE" &
-elif [ ! -z "$JENKINS" ]; then
- echo "Waiting for 5s"
- sleep 5
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./malicious_data_test_msg_sender @TEST_IP_MASTER@ @TEST_IP_SLAVE@ $TESTMODE\" >> $WS_ROOT/slave_test_output 2>&1" &
else
cat <<End-of-message
*******************************************************************************
diff --git a/test/malicious_data_tests/malicious_data_test_globals.hpp b/test/network_tests/malicious_data_tests/malicious_data_test_globals.hpp
index de14d5e..de14d5e 100644
--- a/test/malicious_data_tests/malicious_data_test_globals.hpp
+++ b/test/network_tests/malicious_data_tests/malicious_data_test_globals.hpp
diff --git a/test/malicious_data_tests/malicious_data_test_msg_sender.cpp b/test/network_tests/malicious_data_tests/malicious_data_test_msg_sender.cpp
index bd9b305..3446ea0 100644
--- a/test/malicious_data_tests/malicious_data_test_msg_sender.cpp
+++ b/test/network_tests/malicious_data_tests/malicious_data_test_msg_sender.cpp
@@ -35,7 +35,7 @@ static char* local_address;
class malicious_data : public ::testing::Test {
public:
malicious_data() :
- work_(std::make_shared<boost::asio::io_service::work>(io_)),
+ work_(std::make_shared<boost::asio::io_context::work>(io_)),
io_thread_(std::bind(&malicious_data::io_run, this)) {}
protected:
@@ -49,8 +49,8 @@ protected:
io_.run();
}
- boost::asio::io_service io_;
- std::shared_ptr<boost::asio::io_service::work> work_;
+ boost::asio::io_context io_;
+ std::shared_ptr<boost::asio::io_context::work> work_;
std::thread io_thread_;
};
@@ -1570,7 +1570,7 @@ TEST_F(malicious_data, wrong_header_fields_udp)
udp_socket.close(ec);
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
if(argc < 3) {
diff --git a/test/malicious_data_tests/malicious_data_test_service.cpp b/test/network_tests/malicious_data_tests/malicious_data_test_service.cpp
index 735f0f6..0227acb 100644
--- a/test/malicious_data_tests/malicious_data_test_service.cpp
+++ b/test/network_tests/malicious_data_tests/malicious_data_test_service.cpp
@@ -164,7 +164,7 @@ TEST(someip_malicious_data_test, block_subscription_handler)
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/npdu_tests/conf/npdu_test_client_no_npdu.json.in b/test/network_tests/npdu_tests/conf/npdu_test_client_no_npdu.json.in
index 07cfe08..07cfe08 100644
--- a/test/npdu_tests/conf/npdu_test_client_no_npdu.json.in
+++ b/test/network_tests/npdu_tests/conf/npdu_test_client_no_npdu.json.in
diff --git a/test/npdu_tests/conf/npdu_test_client_npdu.json.in b/test/network_tests/npdu_tests/conf/npdu_test_client_npdu.json.in
index dc35023..dc35023 100644
--- a/test/npdu_tests/conf/npdu_test_client_npdu.json.in
+++ b/test/network_tests/npdu_tests/conf/npdu_test_client_npdu.json.in
diff --git a/test/npdu_tests/conf/npdu_test_service_no_npdu.json.in b/test/network_tests/npdu_tests/conf/npdu_test_service_no_npdu.json.in
index b4c8eaa..b4c8eaa 100644
--- a/test/npdu_tests/conf/npdu_test_service_no_npdu.json.in
+++ b/test/network_tests/npdu_tests/conf/npdu_test_service_no_npdu.json.in
diff --git a/test/npdu_tests/conf/npdu_test_service_npdu.json.in b/test/network_tests/npdu_tests/conf/npdu_test_service_npdu.json.in
index 0de75cf..0de75cf 100644
--- a/test/npdu_tests/conf/npdu_test_service_npdu.json.in
+++ b/test/network_tests/npdu_tests/conf/npdu_test_service_npdu.json.in
diff --git a/test/npdu_tests/npdu_test_client.cpp b/test/network_tests/npdu_tests/npdu_test_client.cpp
index ca29aa6..d89d4f4 100644
--- a/test/npdu_tests/npdu_test_client.cpp
+++ b/test/network_tests/npdu_tests/npdu_test_client.cpp
@@ -476,7 +476,7 @@ TEST(someip_npdu_test, send_different_payloads)
if (its_plugin) {
auto its_config_plugin = std::dynamic_pointer_cast<vsomeip::configuration_plugin>(its_plugin);
if (its_config_plugin) {
- its_configuration = its_config_plugin->get_configuration("");
+ its_configuration = its_config_plugin->get_configuration("","");
}
}
if (!its_configuration) {
@@ -530,7 +530,7 @@ TEST(someip_npdu_test, send_different_payloads)
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
std::string tcp_enable("--TCP");
diff --git a/test/npdu_tests/npdu_test_client.hpp b/test/network_tests/npdu_tests/npdu_test_client.hpp
index 980c16a..980c16a 100644
--- a/test/npdu_tests/npdu_test_client.hpp
+++ b/test/network_tests/npdu_tests/npdu_test_client.hpp
diff --git a/test/npdu_tests/npdu_test_client_no_npdu_start.sh b/test/network_tests/npdu_tests/npdu_test_client_no_npdu_start.sh
index bc84421..bc84421 100755
--- a/test/npdu_tests/npdu_test_client_no_npdu_start.sh
+++ b/test/network_tests/npdu_tests/npdu_test_client_no_npdu_start.sh
diff --git a/test/npdu_tests/npdu_test_client_npdu_start.sh b/test/network_tests/npdu_tests/npdu_test_client_npdu_start.sh
index 70b6c53..70b6c53 100755
--- a/test/npdu_tests/npdu_test_client_npdu_start.sh
+++ b/test/network_tests/npdu_tests/npdu_test_client_npdu_start.sh
diff --git a/test/npdu_tests/npdu_test_globals.hpp b/test/network_tests/npdu_tests/npdu_test_globals.hpp
index 8cee3ee..8cee3ee 100644
--- a/test/npdu_tests/npdu_test_globals.hpp
+++ b/test/network_tests/npdu_tests/npdu_test_globals.hpp
diff --git a/test/npdu_tests/npdu_test_rmd.cpp b/test/network_tests/npdu_tests/npdu_test_rmd.cpp
index 1174a91..8e5451b 100644
--- a/test/npdu_tests/npdu_test_rmd.cpp
+++ b/test/network_tests/npdu_tests/npdu_test_rmd.cpp
@@ -83,7 +83,7 @@ void npdu_test_rmd::on_message_shutdown(
(void)_request;
std::shared_ptr<vsomeip::message> request = vsomeip::runtime::get()->create_request(false);
#ifdef RMD_CLIENT_SIDE
- static int counter = 0;
+ static uint32_t counter = 0;
counter++;
VSOMEIP_INFO << counter << " of " << npdu_test::client_ids_clients.size()
<< " clients are finished.";
diff --git a/test/npdu_tests/npdu_test_rmd.hpp b/test/network_tests/npdu_tests/npdu_test_rmd.hpp
index 0b1e28d..0b1e28d 100644
--- a/test/npdu_tests/npdu_test_rmd.hpp
+++ b/test/network_tests/npdu_tests/npdu_test_rmd.hpp
diff --git a/test/npdu_tests/npdu_test_service.cpp b/test/network_tests/npdu_tests/npdu_test_service.cpp
index ccbdd66..b4ee984 100644
--- a/test/npdu_tests/npdu_test_service.cpp
+++ b/test/network_tests/npdu_tests/npdu_test_service.cpp
@@ -92,7 +92,7 @@ void npdu_test_service::stop()
VSOMEIP_INFO << "Stopping...";
if (!undershot_debounce_times_.empty()) {
std::chrono::microseconds sum(0);
- for (const auto& t : undershot_debounce_times_) {
+ for (const auto t : undershot_debounce_times_) {
sum += t;
}
double average = static_cast<double>(sum.count())/static_cast<double>(undershot_debounce_times_.size());
@@ -234,7 +234,7 @@ TEST(someip_npdu_test, offer_service_and_check_debounce_times)
if (its_plugin) {
auto its_config_plugin = std::dynamic_pointer_cast<vsomeip::configuration_plugin>(its_plugin);
if (its_config_plugin) {
- its_configuration = its_config_plugin->get_configuration("");
+ its_configuration = its_config_plugin->get_configuration("","");
}
}
if (!its_configuration) {
@@ -286,7 +286,7 @@ TEST(someip_npdu_test, offer_service_and_check_debounce_times)
test_service.join_shutdown_thread();
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
int i = 1;
diff --git a/test/npdu_tests/npdu_test_service.hpp b/test/network_tests/npdu_tests/npdu_test_service.hpp
index bef0680..bef0680 100644
--- a/test/npdu_tests/npdu_test_service.hpp
+++ b/test/network_tests/npdu_tests/npdu_test_service.hpp
diff --git a/test/npdu_tests/npdu_test_service_no_npdu_start.sh b/test/network_tests/npdu_tests/npdu_test_service_no_npdu_start.sh
index cf05aaa..cf05aaa 100755
--- a/test/npdu_tests/npdu_test_service_no_npdu_start.sh
+++ b/test/network_tests/npdu_tests/npdu_test_service_no_npdu_start.sh
diff --git a/test/npdu_tests/npdu_test_service_npdu_start.sh b/test/network_tests/npdu_tests/npdu_test_service_npdu_start.sh
index 0ca238b..0ca238b 100755
--- a/test/npdu_tests/npdu_test_service_npdu_start.sh
+++ b/test/network_tests/npdu_tests/npdu_test_service_npdu_start.sh
diff --git a/test/npdu_tests/npdu_test_starter.sh b/test/network_tests/npdu_tests/npdu_test_starter.sh
index c405adc..51904c9 100755
--- a/test/npdu_tests/npdu_test_starter.sh
+++ b/test/network_tests/npdu_tests/npdu_test_starter.sh
@@ -71,13 +71,9 @@ start_services
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting magic cookies test on slave LXC"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./npdu_test_client_npdu_start.sh $*\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./npdu_test_client_npdu_start.sh $*\"" &
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./npdu_test_client_npdu_start.sh $*" &
-elif [ ! -z "$JENKINS" ]; then
- echo "starting npdu_test on slave Docker"
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./npdu_test_client_npdu_start.sh $*\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
sleep 1
cat <<End-of-message
diff --git a/test/offer_tests/conf/offer_test_big_sd_msg_master.json.in b/test/network_tests/offer_tests/conf/offer_test_big_sd_msg_master.json.in
index 06609f6..06609f6 100644
--- a/test/offer_tests/conf/offer_test_big_sd_msg_master.json.in
+++ b/test/network_tests/offer_tests/conf/offer_test_big_sd_msg_master.json.in
diff --git a/test/offer_tests/conf/offer_test_big_sd_msg_master_starter.sh.in b/test/network_tests/offer_tests/conf/offer_test_big_sd_msg_master_starter.sh.in
index 53f6a2c..9ef5163 100755
--- a/test/offer_tests/conf/offer_test_big_sd_msg_master_starter.sh.in
+++ b/test/network_tests/offer_tests/conf/offer_test_big_sd_msg_master_starter.sh.in
@@ -14,7 +14,7 @@ FAIL=0
export VSOMEIP_CONFIGURATION=offer_test_big_sd_msg_master.json
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
./offer_test_big_sd_msg_client &
@@ -27,16 +27,12 @@ if [ ! -z "$USE_LXC_TEST" ]; then
echo "Waiting for 5s"
sleep 5
echo "starting offer test on slave LXC offer_test_big_sd_msg_slave_starter.sh"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./offer_test_big_sd_msg_slave_starter.sh\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./offer_test_big_sd_msg_slave_starter.sh\"" &
echo "remote ssh pid: $!"
elif [ ! -z "$USE_DOCKER" ]; then
echo "Waiting for 5s"
sleep 5
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && sleep 10; ./offer_test_big_sd_msg_slave_starter.sh" &
-elif [ ! -z "$JENKINS" ]; then
- echo "Waiting for 5s"
- sleep 5
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./offer_test_big_sd_msg_slave_starter.sh\" >> $WS_ROOT/slave_test_output 2>&1" &
else
cat <<End-of-message
*******************************************************************************
diff --git a/test/offer_tests/conf/offer_test_big_sd_msg_slave.json.in b/test/network_tests/offer_tests/conf/offer_test_big_sd_msg_slave.json.in
index 0c8427d..0c8427d 100644
--- a/test/offer_tests/conf/offer_test_big_sd_msg_slave.json.in
+++ b/test/network_tests/offer_tests/conf/offer_test_big_sd_msg_slave.json.in
diff --git a/test/offer_tests/conf/offer_test_external_master.json.in b/test/network_tests/offer_tests/conf/offer_test_external_master.json.in
index c54d9ac..c54d9ac 100644
--- a/test/offer_tests/conf/offer_test_external_master.json.in
+++ b/test/network_tests/offer_tests/conf/offer_test_external_master.json.in
diff --git a/test/offer_tests/conf/offer_test_external_master_starter.sh.in b/test/network_tests/offer_tests/conf/offer_test_external_master_starter.sh.in
index 2a27a3f..0e75fa9 100755
--- a/test/offer_tests/conf/offer_test_external_master_starter.sh.in
+++ b/test/network_tests/offer_tests/conf/offer_test_external_master_starter.sh.in
@@ -23,7 +23,7 @@ FAIL=0
CLIENT_PIDS=()
export VSOMEIP_CONFIGURATION=offer_test_external_master.json
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
# Start the services
./offer_test_service 2 &
@@ -34,20 +34,18 @@ echo "SERVICE_TWO pid $PID_SERVICE_TWO"
CLIENT_PIDS+=($!)
echo "client pid ${CLIENT_PIDS[0]}"
-# Wait until all clients are finished
-for job in ${CLIENT_PIDS[*]}
-do
- # Fail gets incremented if a client exits with a non-zero exit code
- wait $job || FAIL=$(($FAIL+1))
-done
+sleep 1
if [ ! -z "$USE_LXC_TEST" ]; then
+ echo "Waiting for 5s"
+ sleep 5
echo "starting offer test on slave LXC offer_test_external_slave_starter.sh"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./offer_test_external_slave_starter.sh\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./offer_test_external_slave_starter.sh\"" &
+ echo "remote ssh pid: $!"
elif [ ! -z "$USE_DOCKER" ]; then
- docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS; ./offer_test_external_slave_starter.sh" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test ; ./offer_test_external_slave_starter.sh\" >> $WS_ROOT/slave_test_output 2>&1" &
+ echo "Waiting for 5s"
+ sleep 5
+ docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && sleep 10; ./offer_test_external_slave_starter.sh" &
else
cat <<End-of-message
*******************************************************************************
@@ -94,7 +92,7 @@ done
CLIENT_PIDS=()
export VSOMEIP_CONFIGURATION=offer_test_external_master.json
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
# Start the services
./offer_test_service 2 &
@@ -103,22 +101,19 @@ PID_SERVICE_TWO=$!
./offer_test_client SUBSCRIBE &
CLIENT_PIDS+=($!)
echo "client pid ${CLIENT_PIDS[0]}"
-# Wait until all clients and services are finished
-for job in ${CLIENT_PIDS[*]}
-do
- # Fail gets incremented if a client exits with a non-zero exit code
- wait $job || FAIL=$(($FAIL+1))
-done
+sleep 1
if [ ! -z "$USE_LXC_TEST" ]; then
+ echo "Waiting for 5s"
+ sleep 5
echo "starting offer test on slave LXC offer_test_external_sd_msg_sender"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./offer_test_external_slave_sd_starter.sh $LXC_TEST_MASTER_IP\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./offer_test_external_sd_msg_sender $LXC_TEST_MASTER_IP\"" &
echo "remote ssh job id: $!"
elif [ ! -z "$USE_DOCKER" ]; then
- docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS; ./offer_test_external_slave_sd_starter.sh $DOCKER_IP" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./offer_test_external_slave_sd_starter.sh @TEST_IP_MASTER@ \" >> $WS_ROOT/slave_test_output 2>&1" &
+ echo "Waiting for 5s"
+ sleep 5
+ docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && sleep 10; ./offer_test_external_sd_msg_sender $DOCKER_IP" &
else
cat <<End-of-message
*******************************************************************************
@@ -143,6 +138,7 @@ done
# kill the services
kill $PID_VSOMEIPD
+sleep 1
# wait for slave to finish
for job in $(jobs -p)
diff --git a/test/offer_tests/conf/offer_test_external_slave.json.in b/test/network_tests/offer_tests/conf/offer_test_external_slave.json.in
index 73a0e58..73a0e58 100644
--- a/test/offer_tests/conf/offer_test_external_slave.json.in
+++ b/test/network_tests/offer_tests/conf/offer_test_external_slave.json.in
diff --git a/test/offer_tests/offer_test_big_sd_msg_client.cpp b/test/network_tests/offer_tests/offer_test_big_sd_msg_client.cpp
index d379441..3524592 100644
--- a/test/offer_tests/offer_test_big_sd_msg_client.cpp
+++ b/test/network_tests/offer_tests/offer_test_big_sd_msg_client.cpp
@@ -229,7 +229,7 @@ TEST(someip_offer_test_big_sd_msg, subscribe_or_call_method_at_service)
offer_test_big_sd_msg_client its_sample(offer_test::service);
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/offer_tests/offer_test_big_sd_msg_service.cpp b/test/network_tests/offer_tests/offer_test_big_sd_msg_service.cpp
index 5424be3..1cf52f9 100644
--- a/test/offer_tests/offer_test_big_sd_msg_service.cpp
+++ b/test/network_tests/offer_tests/offer_test_big_sd_msg_service.cpp
@@ -163,7 +163,7 @@ TEST(someip_offer_test_big_sd_msg, notify_increasing_counter)
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/offer_tests/offer_test_big_sd_msg_slave_starter.sh b/test/network_tests/offer_tests/offer_test_big_sd_msg_slave_starter.sh
index 32379ed..5f69c30 100755
--- a/test/offer_tests/offer_test_big_sd_msg_slave_starter.sh
+++ b/test/network_tests/offer_tests/offer_test_big_sd_msg_slave_starter.sh
@@ -15,7 +15,7 @@ FAIL=0
export VSOMEIP_CONFIGURATION=offer_test_big_sd_msg_slave.json
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
sleep 1
# Start the services
diff --git a/test/offer_tests/offer_test_client.cpp b/test/network_tests/offer_tests/offer_test_client.cpp
index 4a7e5eb..e8ad09f 100644
--- a/test/offer_tests/offer_test_client.cpp
+++ b/test/network_tests/offer_tests/offer_test_client.cpp
@@ -19,9 +19,9 @@
#include <vsomeip/internal/logger.hpp>
#ifdef ANDROID
-#include "../../configuration/include/internal_android.hpp"
+#include "../../implementation/configuration/include/internal_android.hpp"
#else
-#include "../../configuration/include/internal.hpp"
+#include "../../implementation/configuration/include/internal.hpp"
#endif // ANDROID
#include "offer_test_globals.hpp"
@@ -255,7 +255,7 @@ TEST(someip_offer_test, subscribe_or_call_method_at_service)
offer_test_client its_sample(offer_test::service, passed_mode);
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/offer_tests/offer_test_external_sd_msg_sender.cpp b/test/network_tests/offer_tests/offer_test_external_sd_msg_sender.cpp
index cc75b8d..db9446e 100644
--- a/test/offer_tests/offer_test_external_sd_msg_sender.cpp
+++ b/test/network_tests/offer_tests/offer_test_external_sd_msg_sender.cpp
@@ -14,27 +14,16 @@ static char* passed_address;
TEST(someip_offer_test, send_offer_service_sd_message)
{
try {
- boost::asio::io_service io;
- boost::system::error_code ec;
+#if VSOMEIP_BOOST_VERSION < 106600
+ boost::asio::io_service io;
+#else
+ boost::asio::io_context io;
+#endif
boost::asio::ip::udp::socket::endpoint_type target_sd(
boost::asio::ip::address::from_string(std::string(passed_address)),
30490);
-
- boost::asio::ip::udp::socket udp_socket(io);
-
- boost::asio::ip::udp::endpoint rx_endpoint_(boost::asio::ip::udp::v4(), 30490);
- udp_socket.open(rx_endpoint_.protocol(), ec);
-
- if(ec)
- std::cout <<" udp_socket open create error "<<std::endl;
-
- boost::asio::socket_base::reuse_address optionReuseAddress(true);
- udp_socket.set_option(optionReuseAddress, ec);
- udp_socket.bind(boost::asio::ip::udp::endpoint(boost::asio::ip::udp::v4(), 30490), ec);
- if(ec)
- std::cout <<" udp_socket BIND error "<<std::endl;
-
- boost::asio::detail::throw_error(ec);
+ boost::asio::ip::udp::socket udp_socket(io,
+ boost::asio::ip::udp::endpoint(boost::asio::ip::udp::v4(), 30490));
std::uint8_t its_offer_service_message[] = {
0xff, 0xff, 0x81, 0x00,
0x00, 0x00, 0x00, 0x3c,
@@ -54,7 +43,6 @@ TEST(someip_offer_test, send_offer_service_sd_message)
0x0a, 0x00, 0x03, 0x7D, // slave address
0x00, 0x11, 0x75, 0x31
};
-
for (int var = 0; var < 15; ++var) {
udp_socket.send_to(boost::asio::buffer(its_offer_service_message), target_sd);
++its_offer_service_message[11];
@@ -69,16 +57,14 @@ TEST(someip_offer_test, send_offer_service_sd_message)
boost::asio::ip::udp::socket::endpoint_type target_service(
boost::asio::ip::address::from_string(std::string(passed_address)),
30001);
-
udp_socket.send_to(boost::asio::buffer(shutdown_call), target_service);
- } catch (const std::exception& e) {
- std::cout << e.what() << std::endl;
+ } catch (...) {
ASSERT_FALSE(true);
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
if(argc < 2) {
diff --git a/test/offer_tests/offer_test_external_slave_starter.sh b/test/network_tests/offer_tests/offer_test_external_slave_starter.sh
index 5c30e87..511bed1 100755
--- a/test/offer_tests/offer_test_external_slave_starter.sh
+++ b/test/network_tests/offer_tests/offer_test_external_slave_starter.sh
@@ -15,7 +15,7 @@ FAIL=0
export VSOMEIP_CONFIGURATION=offer_test_external_slave.json
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/routingmanagerd &
PID_VSOMEIPD=$!
sleep 1
# Start the services
diff --git a/test/offer_tests/offer_test_globals.hpp b/test/network_tests/offer_tests/offer_test_globals.hpp
index ba69886..ba69886 100644
--- a/test/offer_tests/offer_test_globals.hpp
+++ b/test/network_tests/offer_tests/offer_test_globals.hpp
diff --git a/test/offer_tests/offer_test_local.json b/test/network_tests/offer_tests/offer_test_local.json
index be8aa09..be8aa09 100644
--- a/test/offer_tests/offer_test_local.json
+++ b/test/network_tests/offer_tests/offer_test_local.json
diff --git a/test/offer_tests/offer_test_local_starter.sh b/test/network_tests/offer_tests/offer_test_local_starter.sh
index 6e5af18..6c91a6d 100755
--- a/test/offer_tests/offer_test_local_starter.sh
+++ b/test/network_tests/offer_tests/offer_test_local_starter.sh
@@ -76,7 +76,7 @@ End-of-message
CLIENT_PIDS=()
export VSOMEIP_CONFIGURATION=offer_test_local.json
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
# Start the services
@@ -128,7 +128,7 @@ End-of-message
CLIENT_PIDS=()
export VSOMEIP_CONFIGURATION=offer_test_local.json
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
# Start the service
./offer_test_service 2 &
@@ -186,7 +186,7 @@ End-of-message
CLIENT_PIDS=()
export VSOMEIP_CONFIGURATION=offer_test_local.json
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
# Start the service
./offer_test_service 2 &
@@ -247,7 +247,7 @@ End-of-message
CLIENT_PIDS=()
export VSOMEIP_CONFIGURATION=offer_test_local.json
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
# Start the service
./offer_test_service 2 &
diff --git a/test/offer_tests/offer_test_service.cpp b/test/network_tests/offer_tests/offer_test_service.cpp
index 87bd7e0..c160a6f 100644
--- a/test/offer_tests/offer_test_service.cpp
+++ b/test/network_tests/offer_tests/offer_test_service.cpp
@@ -156,7 +156,7 @@ TEST(someip_offer_test, notify_increasing_counter)
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/offer_tests/offer_test_service_external.cpp b/test/network_tests/offer_tests/offer_test_service_external.cpp
index 5948f74..7cd8ad8 100644
--- a/test/offer_tests/offer_test_service_external.cpp
+++ b/test/network_tests/offer_tests/offer_test_service_external.cpp
@@ -140,7 +140,7 @@ TEST(someip_offer_test, notify_increasing_counter)
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/offered_services_info_test/offered_services_info_test_client.cpp b/test/network_tests/offered_services_info_test/offered_services_info_test_client.cpp
index 202d0a6..4a2ce0e 100644
--- a/test/offered_services_info_test/offered_services_info_test_client.cpp
+++ b/test/network_tests/offered_services_info_test/offered_services_info_test_client.cpp
@@ -20,9 +20,9 @@
#include <vsomeip/internal/logger.hpp>
#ifdef ANDROID
-#include "../../configuration/include/internal_android.hpp"
+#include "../../implementation/configuration/include/internal_android.hpp"
#else
-#include "../../configuration/include/internal.hpp"
+#include "../../implementation/configuration/include/internal.hpp"
#endif
#include "offered_services_info_test_globals.hpp"
@@ -300,7 +300,7 @@ TEST(someip_offered_services_info_test, check_offered_services)
offered_services_info_test_client its_sample(offer_test::service, offer_test::remote_service, passed_mode);
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/offered_services_info_test/offered_services_info_test_globals.hpp b/test/network_tests/offered_services_info_test/offered_services_info_test_globals.hpp
index b74dfab..b74dfab 100644
--- a/test/offered_services_info_test/offered_services_info_test_globals.hpp
+++ b/test/network_tests/offered_services_info_test/offered_services_info_test_globals.hpp
diff --git a/test/offered_services_info_test/offered_services_info_test_local.json b/test/network_tests/offered_services_info_test/offered_services_info_test_local.json
index 872ebd2..872ebd2 100644
--- a/test/offered_services_info_test/offered_services_info_test_local.json
+++ b/test/network_tests/offered_services_info_test/offered_services_info_test_local.json
diff --git a/test/offered_services_info_test/offered_services_info_test_local_starter.sh b/test/network_tests/offered_services_info_test/offered_services_info_test_local_starter.sh
index 50047db..50047db 100755
--- a/test/offered_services_info_test/offered_services_info_test_local_starter.sh
+++ b/test/network_tests/offered_services_info_test/offered_services_info_test_local_starter.sh
diff --git a/test/offered_services_info_test/offered_services_info_test_service.cpp b/test/network_tests/offered_services_info_test/offered_services_info_test_service.cpp
index a77b074..3e0465c 100644
--- a/test/offered_services_info_test/offered_services_info_test_service.cpp
+++ b/test/network_tests/offered_services_info_test/offered_services_info_test_service.cpp
@@ -20,9 +20,9 @@
#include <vsomeip/internal/logger.hpp>
#ifdef ANDROID
-#include "../../configuration/include/internal_android.hpp"
+#include "../../implementation/configuration/include/internal_android.hpp"
#else
-#include "../../configuration/include/internal.hpp"
+#include "../../implementation/configuration/include/internal.hpp"
#endif // ANDROID
#include "offered_services_info_test_globals.hpp"
@@ -249,7 +249,7 @@ TEST(someip_offered_services_info_test, check_offered_services_as_rm_impl)
offer_test_service its_sample(offer_test::service, offer_test::remote_service);
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/payload_tests/conf/external_local_payload_test_client_external.json.in b/test/network_tests/payload_tests/conf/external_local_payload_test_client_external.json.in
index 0abaea2..0abaea2 100644
--- a/test/payload_tests/conf/external_local_payload_test_client_external.json.in
+++ b/test/network_tests/payload_tests/conf/external_local_payload_test_client_external.json.in
diff --git a/test/payload_tests/conf/external_local_payload_test_client_local.json.in b/test/network_tests/payload_tests/conf/external_local_payload_test_client_local.json.in
index 1f4fd6d..1f4fd6d 100644
--- a/test/payload_tests/conf/external_local_payload_test_client_local.json.in
+++ b/test/network_tests/payload_tests/conf/external_local_payload_test_client_local.json.in
diff --git a/test/payload_tests/conf/external_local_payload_test_service.json.in b/test/network_tests/payload_tests/conf/external_local_payload_test_service.json.in
index aaeae82..aaeae82 100644
--- a/test/payload_tests/conf/external_local_payload_test_service.json.in
+++ b/test/network_tests/payload_tests/conf/external_local_payload_test_service.json.in
diff --git a/test/payload_tests/external_local_payload_test_client_external_start.sh b/test/network_tests/payload_tests/external_local_payload_test_client_external_start.sh
index 5f6b7ea..5f6b7ea 100755
--- a/test/payload_tests/external_local_payload_test_client_external_start.sh
+++ b/test/network_tests/payload_tests/external_local_payload_test_client_external_start.sh
diff --git a/test/payload_tests/external_local_payload_test_client_external_starter.sh b/test/network_tests/payload_tests/external_local_payload_test_client_external_starter.sh
index f6c2744..af044cf 100755
--- a/test/payload_tests/external_local_payload_test_client_external_starter.sh
+++ b/test/network_tests/payload_tests/external_local_payload_test_client_external_starter.sh
@@ -16,9 +16,9 @@ FAIL=0
# Parameter 2: number of TCP/UDP sockets the process should have open
check_tcp_udp_sockets_are_open ()
{
- # Check that the passed pid/process does listen on at least one TCP/UDP socket
+ # Check that the passed pid/process does listen on at least one TCP/UDP socket
# awk is used to avoid the case when a inode number is the same as a PID. The awk
- # program filters the netstat output down to the protocol (1st field) and
+ # program filters the netstat output down to the protocol (1st field) and
# the PID/Program name (last field) fields.
SERVICE_SOCKETS_LISTENING=$(netstat -tulpen 2> /dev/null | awk '{print $1 "\t" $NF}' | grep $1 | wc -l)
if [ $SERVICE_SOCKETS_LISTENING -lt $2 ]
@@ -30,10 +30,10 @@ check_tcp_udp_sockets_are_open ()
# Parameter 1: the pid to check
check_tcp_udp_sockets_are_closed ()
{
- # Check that the passed pid/process does not listen on any TCP/UDP socket
+ # Check that the passed pid/process does not listen on any TCP/UDP socket
# or has any active connection via a TCP/UDP socket
# awk is used to avoid the case when a inode number is the same as a PID. The awk
- # program filters the netstat output down to the protocol (1st field) and
+ # program filters the netstat output down to the protocol (1st field) and
# the PID/Program name (last field) fields.
SERVICE_SOCKETS_LISTENING=$(netstat -tulpen 2> /dev/null | awk '{print $1 "\t" $NF}' | grep $1 | wc -l)
if [ $SERVICE_SOCKETS_LISTENING -ne 0 ]
@@ -58,13 +58,10 @@ SERIVCE_PID=$!
# to finish the test successfully
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting external local payload on slave LXC"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./external_local_payload_test_client_external_start.sh\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./external_local_payload_test_client_external_start.sh\"" &
echo "remote ssh job id: $!"
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./external_local_payload_test_client_external_start.sh" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./external_local_payload_test_client_external_start.sh\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
diff --git a/test/payload_tests/external_local_payload_test_client_local_and_external_starter.sh b/test/network_tests/payload_tests/external_local_payload_test_client_local_and_external_starter.sh
index dda58ce..4d45b85 100755
--- a/test/payload_tests/external_local_payload_test_client_local_and_external_starter.sh
+++ b/test/network_tests/payload_tests/external_local_payload_test_client_local_and_external_starter.sh
@@ -16,9 +16,9 @@ FAIL=0
# Parameter 2: number of TCP/UDP sockets the process should have open
check_tcp_udp_sockets_are_open ()
{
- # Check that the passed pid/process does listen on at least one TCP/UDP socket
+ # Check that the passed pid/process does listen on at least one TCP/UDP socket
# awk is used to avoid the case when a inode number is the same as a PID. The awk
- # program filters the netstat output down to the protocol (1st field) and
+ # program filters the netstat output down to the protocol (1st field) and
# the PID/Program name (last field) fields.
SERVICE_SOCKETS_LISTENING=$(netstat -tulpen 2> /dev/null | awk '{print $1 "\t" $NF}' | grep $1 | wc -l)
if [ $SERVICE_SOCKETS_LISTENING -lt $2 ]
@@ -30,10 +30,10 @@ check_tcp_udp_sockets_are_open ()
# Parameter 1: the pid to check
check_tcp_udp_sockets_are_closed ()
{
- # Check that the passed pid/process does not listen on any TCP/UDP socket
+ # Check that the passed pid/process does not listen on any TCP/UDP socket
# or has any active connection via a TCP/UDP socket
# awk is used to avoid the case when a inode number is the same as a PID. The awk
- # program filters the netstat output down to the protocol (1st field) and
+ # program filters the netstat output down to the protocol (1st field) and
# the PID/Program name (last field) fields.
SERVICE_SOCKETS_LISTENING=$(netstat -tulpen 2> /dev/null | awk '{print $1 "\t" $NF}' | grep $1 | wc -l)
if [ $SERVICE_SOCKETS_LISTENING -ne 0 ]
@@ -75,13 +75,10 @@ wait $CLIENT_PID || ((FAIL+=1))
# to finish the test successfully
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting external local payload on slave LXC"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./external_local_payload_test_client_external_start.sh\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./external_local_payload_test_client_external_start.sh\"" &
echo "remote ssh job id: $!"
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./external_local_payload_test_client_external_start.sh" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./external_local_payload_test_client_external_start.sh\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
diff --git a/test/payload_tests/external_local_payload_test_client_local_start.sh b/test/network_tests/payload_tests/external_local_payload_test_client_local_start.sh
index b79e534..b79e534 100755
--- a/test/payload_tests/external_local_payload_test_client_local_start.sh
+++ b/test/network_tests/payload_tests/external_local_payload_test_client_local_start.sh
diff --git a/test/payload_tests/external_local_payload_test_client_local_starter.sh b/test/network_tests/payload_tests/external_local_payload_test_client_local_starter.sh
index c73dd81..c73dd81 100755
--- a/test/payload_tests/external_local_payload_test_client_local_starter.sh
+++ b/test/network_tests/payload_tests/external_local_payload_test_client_local_starter.sh
diff --git a/test/payload_tests/external_local_payload_test_service_client_external_start.sh b/test/network_tests/payload_tests/external_local_payload_test_service_client_external_start.sh
index 046d50b..046d50b 100755
--- a/test/payload_tests/external_local_payload_test_service_client_external_start.sh
+++ b/test/network_tests/payload_tests/external_local_payload_test_service_client_external_start.sh
diff --git a/test/payload_tests/external_local_payload_test_service_start.sh b/test/network_tests/payload_tests/external_local_payload_test_service_start.sh
index 90b1b38..90b1b38 100755
--- a/test/payload_tests/external_local_payload_test_service_start.sh
+++ b/test/network_tests/payload_tests/external_local_payload_test_service_start.sh
diff --git a/test/payload_tests/local_payload_test_client.json b/test/network_tests/payload_tests/local_payload_test_client.json
index 24fa1fa..24fa1fa 100644
--- a/test/payload_tests/local_payload_test_client.json
+++ b/test/network_tests/payload_tests/local_payload_test_client.json
diff --git a/test/payload_tests/local_payload_test_client_start.sh b/test/network_tests/payload_tests/local_payload_test_client_start.sh
index 975be2a..975be2a 100755
--- a/test/payload_tests/local_payload_test_client_start.sh
+++ b/test/network_tests/payload_tests/local_payload_test_client_start.sh
diff --git a/test/payload_tests/local_payload_test_huge_payload_starter.sh b/test/network_tests/payload_tests/local_payload_test_huge_payload_starter.sh
index c230891..c230891 100755
--- a/test/payload_tests/local_payload_test_huge_payload_starter.sh
+++ b/test/network_tests/payload_tests/local_payload_test_huge_payload_starter.sh
diff --git a/test/payload_tests/local_payload_test_service.json b/test/network_tests/payload_tests/local_payload_test_service.json
index b5c83a6..b5c83a6 100644
--- a/test/payload_tests/local_payload_test_service.json
+++ b/test/network_tests/payload_tests/local_payload_test_service.json
diff --git a/test/payload_tests/local_payload_test_service_start.sh b/test/network_tests/payload_tests/local_payload_test_service_start.sh
index cc67f54..cc67f54 100755
--- a/test/payload_tests/local_payload_test_service_start.sh
+++ b/test/network_tests/payload_tests/local_payload_test_service_start.sh
diff --git a/test/payload_tests/local_payload_test_starter.sh b/test/network_tests/payload_tests/local_payload_test_starter.sh
index abc4577..abc4577 100755
--- a/test/payload_tests/local_payload_test_starter.sh
+++ b/test/network_tests/payload_tests/local_payload_test_starter.sh
diff --git a/test/payload_tests/payload_test_client.cpp b/test/network_tests/payload_tests/payload_test_client.cpp
index 0a9708f..fd235d8 100644
--- a/test/payload_tests/payload_test_client.cpp
+++ b/test/network_tests/payload_tests/payload_test_client.cpp
@@ -319,7 +319,7 @@ TEST(someip_payload_test, send_different_payloads)
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
std::string tcp_enable("--tcp");
diff --git a/test/payload_tests/payload_test_client.hpp b/test/network_tests/payload_tests/payload_test_client.hpp
index 2757d00..2757d00 100644
--- a/test/payload_tests/payload_test_client.hpp
+++ b/test/network_tests/payload_tests/payload_test_client.hpp
diff --git a/test/payload_tests/payload_test_service.cpp b/test/network_tests/payload_tests/payload_test_service.cpp
index 18935f9..5cace17 100644
--- a/test/payload_tests/payload_test_service.cpp
+++ b/test/network_tests/payload_tests/payload_test_service.cpp
@@ -158,7 +158,7 @@ TEST(someip_payload_test, send_response_for_every_request)
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
std::string help("--help");
diff --git a/test/payload_tests/payload_test_service.hpp b/test/network_tests/payload_tests/payload_test_service.hpp
index 9054fd9..9054fd9 100644
--- a/test/payload_tests/payload_test_service.hpp
+++ b/test/network_tests/payload_tests/payload_test_service.hpp
diff --git a/test/payload_tests/stopwatch.cpp b/test/network_tests/payload_tests/stopwatch.cpp
index 83506f4..83506f4 100644
--- a/test/payload_tests/stopwatch.cpp
+++ b/test/network_tests/payload_tests/stopwatch.cpp
diff --git a/test/payload_tests/stopwatch.hpp b/test/network_tests/payload_tests/stopwatch.hpp
index 5917e12..5917e12 100644
--- a/test/payload_tests/stopwatch.hpp
+++ b/test/network_tests/payload_tests/stopwatch.hpp
diff --git a/test/pending_subscription_tests/conf/pending_subscription_test_master.json.in b/test/network_tests/pending_subscription_tests/conf/pending_subscription_test_master.json.in
index 5bcbe9a..5bcbe9a 100644
--- a/test/pending_subscription_tests/conf/pending_subscription_test_master.json.in
+++ b/test/network_tests/pending_subscription_tests/conf/pending_subscription_test_master.json.in
diff --git a/test/pending_subscription_tests/conf/pending_subscription_test_master_starter.sh.in b/test/network_tests/pending_subscription_tests/conf/pending_subscription_test_master_starter.sh.in
index 298a3ea..dc4b1cd 100755
--- a/test/pending_subscription_tests/conf/pending_subscription_test_master_starter.sh.in
+++ b/test/network_tests/pending_subscription_tests/conf/pending_subscription_test_master_starter.sh.in
@@ -23,7 +23,7 @@ fi
TESTMODE=$1
export VSOMEIP_CONFIGURATION=pending_subscription_test_master.json
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
# Start the services
./pending_subscription_test_service $1 &
@@ -35,15 +35,12 @@ if [ ! -z "$USE_LXC_TEST" ]; then
echo "Waiting for 5s"
sleep 5
echo "starting offer test on slave LXC offer_test_external_slave_starter.sh"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./pending_subscription_test_sd_msg_sender @TEST_IP_MASTER@ @TEST_IP_SLAVE@ $TESTMODE\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./pending_subscription_test_sd_msg_sender @TEST_IP_MASTER@ @TEST_IP_SLAVE@ $TESTMODE\"" &
echo "remote ssh pid: $!"
elif [ ! -z "$USE_DOCKER" ]; then
echo "Waiting for 5s"
sleep 5
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./pending_subscription_test_sd_msg_sender @TEST_IP_MASTER@ @TEST_IP_SLAVE@ $TESTMODE" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./pending_subscription_test_sd_msg_sender @TEST_IP_MASTER@ @TEST_IP_SLAVE@ $TESTMODE\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
diff --git a/test/pending_subscription_tests/pending_subscription_test_globals.hpp b/test/network_tests/pending_subscription_tests/pending_subscription_test_globals.hpp
index 59ad88e..59ad88e 100644
--- a/test/pending_subscription_tests/pending_subscription_test_globals.hpp
+++ b/test/network_tests/pending_subscription_tests/pending_subscription_test_globals.hpp
diff --git a/test/pending_subscription_tests/pending_subscription_test_sd_msg_sender.cpp b/test/network_tests/pending_subscription_tests/pending_subscription_test_sd_msg_sender.cpp
index 6d597cb..75fbd1f 100644
--- a/test/pending_subscription_tests/pending_subscription_test_sd_msg_sender.cpp
+++ b/test/network_tests/pending_subscription_tests/pending_subscription_test_sd_msg_sender.cpp
@@ -32,7 +32,7 @@ static char* local_address;
class pending_subscription : public ::testing::Test {
public:
pending_subscription() :
- work_(std::make_shared<boost::asio::io_service::work>(io_)),
+ work_(std::make_shared<boost::asio::io_context::work>(io_)),
io_thread_(std::bind(&pending_subscription::io_run, this)) {}
protected:
@@ -46,8 +46,8 @@ protected:
io_.run();
}
- boost::asio::io_service io_;
- std::shared_ptr<boost::asio::io_service::work> work_;
+ boost::asio::io_context io_;
+ std::shared_ptr<boost::asio::io_context::work> work_;
std::thread io_thread_;
};
@@ -1701,7 +1701,7 @@ TEST_F(pending_subscription, send_request_to_sd_port)
udp_socket.close(ec);
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
if(argc < 4) {
diff --git a/test/pending_subscription_tests/pending_subscription_test_service.cpp b/test/network_tests/pending_subscription_tests/pending_subscription_test_service.cpp
index d68686c..53b2cde 100644
--- a/test/pending_subscription_tests/pending_subscription_test_service.cpp
+++ b/test/network_tests/pending_subscription_tests/pending_subscription_test_service.cpp
@@ -354,7 +354,7 @@ TEST(someip_pending_subscription_test, block_subscription_handler)
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/readme.txt b/test/network_tests/readme.txt
index 2841795..2841795 100644
--- a/test/readme.txt
+++ b/test/network_tests/readme.txt
diff --git a/test/restart_routing_tests/restart_routing_test_autoconfig.json b/test/network_tests/restart_routing_tests/restart_routing_test_autoconfig.json
index f50dba7..f50dba7 100644
--- a/test/restart_routing_tests/restart_routing_test_autoconfig.json
+++ b/test/network_tests/restart_routing_tests/restart_routing_test_autoconfig.json
diff --git a/test/restart_routing_tests/restart_routing_test_client.cpp b/test/network_tests/restart_routing_tests/restart_routing_test_client.cpp
index 847594e..847594e 100644
--- a/test/restart_routing_tests/restart_routing_test_client.cpp
+++ b/test/network_tests/restart_routing_tests/restart_routing_test_client.cpp
diff --git a/test/restart_routing_tests/restart_routing_test_client.hpp b/test/network_tests/restart_routing_tests/restart_routing_test_client.hpp
index cd4a12f..cd4a12f 100644
--- a/test/restart_routing_tests/restart_routing_test_client.hpp
+++ b/test/network_tests/restart_routing_tests/restart_routing_test_client.hpp
diff --git a/test/restart_routing_tests/restart_routing_test_client.json b/test/network_tests/restart_routing_tests/restart_routing_test_client.json
index 93fafab..93fafab 100644
--- a/test/restart_routing_tests/restart_routing_test_client.json
+++ b/test/network_tests/restart_routing_tests/restart_routing_test_client.json
diff --git a/test/restart_routing_tests/restart_routing_test_client_start.sh b/test/network_tests/restart_routing_tests/restart_routing_test_client_start.sh
index de944b9..de944b9 100755
--- a/test/restart_routing_tests/restart_routing_test_client_start.sh
+++ b/test/network_tests/restart_routing_tests/restart_routing_test_client_start.sh
diff --git a/test/restart_routing_tests/restart_routing_test_service.cpp b/test/network_tests/restart_routing_tests/restart_routing_test_service.cpp
index 35ab01a..67621cd 100644
--- a/test/restart_routing_tests/restart_routing_test_service.cpp
+++ b/test/network_tests/restart_routing_tests/restart_routing_test_service.cpp
@@ -125,7 +125,7 @@ TEST(someip_restart_routing_test, send_response_for_every_request) {
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
diff --git a/test/restart_routing_tests/restart_routing_test_service.hpp b/test/network_tests/restart_routing_tests/restart_routing_test_service.hpp
index 3abfe17..3abfe17 100644
--- a/test/restart_routing_tests/restart_routing_test_service.hpp
+++ b/test/network_tests/restart_routing_tests/restart_routing_test_service.hpp
diff --git a/test/restart_routing_tests/restart_routing_test_service.json b/test/network_tests/restart_routing_tests/restart_routing_test_service.json
index 9a1d3bf..9a1d3bf 100644
--- a/test/restart_routing_tests/restart_routing_test_service.json
+++ b/test/network_tests/restart_routing_tests/restart_routing_test_service.json
diff --git a/test/restart_routing_tests/restart_routing_test_service_start.sh b/test/network_tests/restart_routing_tests/restart_routing_test_service_start.sh
index b82be7c..b82be7c 100755
--- a/test/restart_routing_tests/restart_routing_test_service_start.sh
+++ b/test/network_tests/restart_routing_tests/restart_routing_test_service_start.sh
diff --git a/test/restart_routing_tests/restart_routing_test_starter.sh b/test/network_tests/restart_routing_tests/restart_routing_test_starter.sh
index 9d74c36..cffd14c 100755
--- a/test/restart_routing_tests/restart_routing_test_starter.sh
+++ b/test/network_tests/restart_routing_tests/restart_routing_test_starter.sh
@@ -21,7 +21,7 @@ echo "----------------------------------------------"
export VSOMEIP_CONFIGURATION=restart_routing_test_autoconfig.json
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
DAEMON_PID=$!
sleep 2
@@ -61,7 +61,7 @@ echo " restart routingmanagerd "
echo "----------------------------------------------"
sleep 2
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
DAEMON_PID=$!
wait $SERIVCE_PID || ((FAIL+=1))
@@ -156,7 +156,7 @@ echo "----------------------------------------------"
sleep 2
export VSOMEIP_CONFIGURATION=restart_routing_test_service.json
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
DAEMON_PID=$!
# Start the service
@@ -200,7 +200,7 @@ echo "----------------------------------------------"
sleep 2
export VSOMEIP_CONFIGURATION=restart_routing_test_service.json
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
DAEMON_PID=$!
wait $SERIVCE_PID || ((FAIL+=1))
@@ -230,7 +230,7 @@ echo "----------------------------------------------"
sleep 2
export VSOMEIP_CONFIGURATION=restart_routing_test_service.json
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
DAEMON_PID=$!
# Start the service
@@ -279,7 +279,7 @@ echo "----------------------------------------------"
sleep 2
export VSOMEIP_CONFIGURATION=restart_routing_test_service.json
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
DAEMON_PID=$!
echo "----------------------------------------------"
diff --git a/test/routing_tests/conf/external_local_routing_test_client_external.json.in b/test/network_tests/routing_tests/conf/external_local_routing_test_client_external.json.in
index 958f196..0aaa664 100644
--- a/test/routing_tests/conf/external_local_routing_test_client_external.json.in
+++ b/test/network_tests/routing_tests/conf/external_local_routing_test_client_external.json.in
@@ -33,7 +33,10 @@
}
],
- "routing" : "external_local_routing_test_client_external",
+ "routing": {
+ "enabled": false,
+ "host": "external_local_routing_test_client_external"
+ },
"service-discovery" :
{
"enable" : "false",
diff --git a/test/routing_tests/conf/external_local_routing_test_service.json.in b/test/network_tests/routing_tests/conf/external_local_routing_test_service.json.in
index a4deb82..a4deb82 100644
--- a/test/routing_tests/conf/external_local_routing_test_service.json.in
+++ b/test/network_tests/routing_tests/conf/external_local_routing_test_service.json.in
diff --git a/test/routing_tests/conf/local_routing_test_starter.sh.bat.in b/test/network_tests/routing_tests/conf/local_routing_test_starter.sh.bat.in
index d7abe64..d7abe64 100755
--- a/test/routing_tests/conf/local_routing_test_starter.sh.bat.in
+++ b/test/network_tests/routing_tests/conf/local_routing_test_starter.sh.bat.in
diff --git a/test/routing_tests/conf/local_routing_test_starter.sh.in b/test/network_tests/routing_tests/conf/local_routing_test_starter.sh.in
index 9e10480..d5b83f4 100755
--- a/test/routing_tests/conf/local_routing_test_starter.sh.in
+++ b/test/network_tests/routing_tests/conf/local_routing_test_starter.sh.in
@@ -15,10 +15,10 @@ FAIL=0
# Parameter 1: the pid to check
check_tcp_udp_sockets_are_closed ()
{
- # Check that the service does not listen on any TCP/UDP socket
+ # Check that the service does not listen on any TCP/UDP socket
# or has any active connection via a TCP/UDP socket
# awk is used to avoid the case when a inode number is the same as a PID. The awk
- # program filters the netstat output down to the protocol (1st field) and
+ # program filters the netstat output down to the protocol (1st field) and
# the PID/Program name (last field) fields.
SERVICE_SOCKETS_LISTENING=$(netstat -tulpen 2> /dev/null | awk '{print $1 "\t" $NF}' | grep $1 | wc -l)
if [ $SERVICE_SOCKETS_LISTENING -ne 0 ]
@@ -35,7 +35,7 @@ check_tcp_udp_sockets_are_closed ()
export VSOMEIP_CONFIGURATION=local_routing_test_service.json
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
WAIT_PIDS=()
@@ -70,7 +70,7 @@ kill $PID_VSOMEIPD
sleep 1
# Check if client and server both exited successfully and the service didnt't
-# have any open
+# have any open
if [ $FAIL -eq 0 ]
then
exit 0
diff --git a/test/routing_tests/external_local_routing_test_client_external_start.sh b/test/network_tests/routing_tests/external_local_routing_test_client_external_start.sh
index b267b47..098c777 100755
--- a/test/routing_tests/external_local_routing_test_client_external_start.sh
+++ b/test/network_tests/routing_tests/external_local_routing_test_client_external_start.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -ex
# Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -6,4 +6,12 @@
export VSOMEIP_APPLICATION_NAME=external_local_routing_test_client_external
export VSOMEIP_CONFIGURATION=external_local_routing_test_client_external.json
-./local_routing_test_client
+./local_routing_test_client &
+client=$!
+
+for _ in {1..100}
+do
+ find /tmp -ls
+ lsof -nw -p "$client" || continue
+done
+wait "$client"
diff --git a/test/routing_tests/external_local_routing_test_service.cpp b/test/network_tests/routing_tests/external_local_routing_test_service.cpp
index c357165..46b8138 100644
--- a/test/routing_tests/external_local_routing_test_service.cpp
+++ b/test/network_tests/routing_tests/external_local_routing_test_service.cpp
@@ -176,7 +176,7 @@ TEST(someip_external_local_routing_test, receive_ten_messages_over_local_and_ext
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/routing_tests/external_local_routing_test_service.hpp b/test/network_tests/routing_tests/external_local_routing_test_service.hpp
index a25025e..a25025e 100644
--- a/test/routing_tests/external_local_routing_test_service.hpp
+++ b/test/network_tests/routing_tests/external_local_routing_test_service.hpp
diff --git a/test/routing_tests/external_local_routing_test_service_start.sh b/test/network_tests/routing_tests/external_local_routing_test_service_start.sh
index 81b2ef1..81b2ef1 100755
--- a/test/routing_tests/external_local_routing_test_service_start.sh
+++ b/test/network_tests/routing_tests/external_local_routing_test_service_start.sh
diff --git a/test/routing_tests/external_local_routing_test_starter.sh b/test/network_tests/routing_tests/external_local_routing_test_starter.sh
index 7b3d37b..c67114f 100755
--- a/test/routing_tests/external_local_routing_test_starter.sh
+++ b/test/network_tests/routing_tests/external_local_routing_test_starter.sh
@@ -15,9 +15,9 @@ FAIL=0
# Parameter 1: the pid to check
check_tcp_udp_sockets_are_open ()
{
- # Check that the service does listen on at least one TCP/UDP socket
+ # Check that the service does listen on at least one TCP/UDP socket
# awk is used to avoid the case when a inode number is the same as a PID. The awk
- # program filters the netstat output down to the protocol (1st field) and
+ # program filters the netstat output down to the protocol (1st field) and
# the PID/Program name (last field) fields.
SERVICE_SOCKETS_LISTENING=$(netstat -tulpen 2> /dev/null | awk '{print $1 "\t" $NF}' | grep $1 | wc -l)
if [ $SERVICE_SOCKETS_LISTENING -lt 1 ]
@@ -29,10 +29,10 @@ check_tcp_udp_sockets_are_open ()
# Parameter 1: the pid to check
check_tcp_udp_sockets_are_closed ()
{
- # Check that the service does not listen on any TCP/UDP socket
+ # Check that the service does not listen on any TCP/UDP socket
# or has any active connection via a TCP/UDP socket
# awk is used to avoid the case when a inode number is the same as a PID. The awk
- # program filters the netstat output down to the protocol (1st field) and
+ # program filters the netstat output down to the protocol (1st field) and
# the PID/Program name (last field) fields.
SERVICE_SOCKETS_LISTENING=$(netstat -tulpen 2> /dev/null | awk '{print $1 "\t" $NF}' | grep $1 | wc -l)
if [ $SERVICE_SOCKETS_LISTENING -ne 0 ]
@@ -78,13 +78,10 @@ if [ $CLIENT_STILL_THERE -ne 0 ]
then
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting external_local_routing_test_starter.sh on slave LXC"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./external_local_routing_test_client_external_start.sh\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./external_local_routing_test_client_external_start.sh\"" &
echo "remote ssh job id: $!"
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./external_local_routing_test_client_external_start.sh" &
- elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./external_local_routing_test_client_external_start.sh\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
@@ -115,7 +112,7 @@ do
done
# Check if client and server both exited sucessfully and the service didnt't
-# have any open
+# have any open
if [ $FAIL -eq 0 ]
then
exit 0
diff --git a/test/routing_tests/local_routing_test_client.cpp b/test/network_tests/routing_tests/local_routing_test_client.cpp
index 26df99f..d8bdfcb 100644
--- a/test/routing_tests/local_routing_test_client.cpp
+++ b/test/network_tests/routing_tests/local_routing_test_client.cpp
@@ -158,7 +158,7 @@ TEST(someip_local_routing_test, send_ten_messages_to_service_and_receive_reply)
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/routing_tests/local_routing_test_client.hpp b/test/network_tests/routing_tests/local_routing_test_client.hpp
index 7cc442a..7cc442a 100644
--- a/test/routing_tests/local_routing_test_client.hpp
+++ b/test/network_tests/routing_tests/local_routing_test_client.hpp
diff --git a/test/routing_tests/local_routing_test_client.json b/test/network_tests/routing_tests/local_routing_test_client.json
index e3521c8..e3521c8 100644
--- a/test/routing_tests/local_routing_test_client.json
+++ b/test/network_tests/routing_tests/local_routing_test_client.json
diff --git a/test/routing_tests/local_routing_test_client_start.sh b/test/network_tests/routing_tests/local_routing_test_client_start.sh
index ed4023e..ed4023e 100755
--- a/test/routing_tests/local_routing_test_client_start.sh
+++ b/test/network_tests/routing_tests/local_routing_test_client_start.sh
diff --git a/test/routing_tests/local_routing_test_service.cpp b/test/network_tests/routing_tests/local_routing_test_service.cpp
index 81d47eb..6408057 100644
--- a/test/routing_tests/local_routing_test_service.cpp
+++ b/test/network_tests/routing_tests/local_routing_test_service.cpp
@@ -155,7 +155,7 @@ TEST(someip_local_routing_test, receive_ten_messages_over_local_uds_socket)
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/routing_tests/local_routing_test_service.hpp b/test/network_tests/routing_tests/local_routing_test_service.hpp
index 531fdb7..531fdb7 100644
--- a/test/routing_tests/local_routing_test_service.hpp
+++ b/test/network_tests/routing_tests/local_routing_test_service.hpp
diff --git a/test/routing_tests/local_routing_test_service.json b/test/network_tests/routing_tests/local_routing_test_service.json
index 6b7e11d..6b7e11d 100644
--- a/test/routing_tests/local_routing_test_service.json
+++ b/test/network_tests/routing_tests/local_routing_test_service.json
diff --git a/test/routing_tests/local_routing_test_service_start.sh b/test/network_tests/routing_tests/local_routing_test_service_start.sh
index c59364c..c59364c 100755
--- a/test/routing_tests/local_routing_test_service_start.sh
+++ b/test/network_tests/routing_tests/local_routing_test_service_start.sh
diff --git a/test/second_address_tests/conf/second_address_test_master_client.json.in b/test/network_tests/second_address_tests/conf/second_address_test_master_client.json.in
index 542480f..542480f 100644
--- a/test/second_address_tests/conf/second_address_test_master_client.json.in
+++ b/test/network_tests/second_address_tests/conf/second_address_test_master_client.json.in
diff --git a/test/second_address_tests/conf/second_address_test_master_service_udp.json.in b/test/network_tests/second_address_tests/conf/second_address_test_master_service_udp.json.in
index 1b45898..1b45898 100644
--- a/test/second_address_tests/conf/second_address_test_master_service_udp.json.in
+++ b/test/network_tests/second_address_tests/conf/second_address_test_master_service_udp.json.in
diff --git a/test/second_address_tests/conf/second_address_test_slave_client.json.in b/test/network_tests/second_address_tests/conf/second_address_test_slave_client.json.in
index 303bfae..303bfae 100644
--- a/test/second_address_tests/conf/second_address_test_slave_client.json.in
+++ b/test/network_tests/second_address_tests/conf/second_address_test_slave_client.json.in
diff --git a/test/second_address_tests/conf/second_address_test_slave_service_udp.json.in b/test/network_tests/second_address_tests/conf/second_address_test_slave_service_udp.json.in
index 9a7c062..9a7c062 100644
--- a/test/second_address_tests/conf/second_address_test_slave_service_udp.json.in
+++ b/test/network_tests/second_address_tests/conf/second_address_test_slave_service_udp.json.in
diff --git a/test/second_address_tests/conf/second_address_test_slave_starter.sh.in b/test/network_tests/second_address_tests/conf/second_address_test_slave_starter.sh.in
index 8924163..5694aa6 100755
--- a/test/second_address_tests/conf/second_address_test_slave_starter.sh.in
+++ b/test/network_tests/second_address_tests/conf/second_address_test_slave_starter.sh.in
@@ -27,7 +27,7 @@ if [ "$OPERATIONMODE" = "CLIENT" ]; then
elif [ "$OPERATIONMODE" = "SERVICE" ]; then
SLAVE_APPLICATION=second_address_test_service
-
+
if [ "$COMMUNICATIONMODE" = "TCP" ]; then
export VSOMEIP_CONFIGURATION=second_address_test_slave_service_tcp.json
elif [ "$COMMUNICATIONMODE" = "UDP" ]; then
@@ -35,7 +35,7 @@ elif [ "$OPERATIONMODE" = "SERVICE" ]; then
fi
fi
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/routingmanagerd &
PID_VSOMEIPD=$!
./$SLAVE_APPLICATION $COMMUNICATIONMODE &
diff --git a/test/second_address_tests/second_address_test_client.cpp b/test/network_tests/second_address_tests/second_address_test_client.cpp
index 616346b..9f05706 100644
--- a/test/second_address_tests/second_address_test_client.cpp
+++ b/test/network_tests/second_address_tests/second_address_test_client.cpp
@@ -332,7 +332,7 @@ TEST(someip_event_test, communicate_using_second_address)
second_address_test_client its_sample(second_address_test::service, use_tcp);
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/second_address_tests/second_address_test_globals.hpp b/test/network_tests/second_address_tests/second_address_test_globals.hpp
index da5db1f..1909fcd 100644
--- a/test/second_address_tests/second_address_test_globals.hpp
+++ b/test/network_tests/second_address_tests/second_address_test_globals.hpp
@@ -20,7 +20,7 @@ struct service_info {
vsomeip::method_t shutdown_method_id;
};
-struct service_info service = { 0x3333, 0x1, 0x1, 0x8301, 0x2, 0x8302, 0x1111, 0x2222, 0x1404 };
+struct service_info service = { 0x3333, 0x1, 0x1, 0x3301, 0x2, 0x3302, 0x1111, 0x2222, 0x1404 };
static constexpr std::uint32_t number_of_messages_to_send = 150;
static constexpr std::uint8_t number_of_events_to_send = 150;
diff --git a/test/second_address_tests/second_address_test_master_starter.sh b/test/network_tests/second_address_tests/second_address_test_master_starter.sh
index c68c0b5..03d726b 100755
--- a/test/second_address_tests/second_address_test_master_starter.sh
+++ b/test/network_tests/second_address_tests/second_address_test_master_starter.sh
@@ -27,14 +27,14 @@ if [ "$OPERATIONMODE" = "SERVICE" ]; then
elif [ "$COMMUNICATIONMODE" = "UDP" ]; then
export VSOMEIP_CONFIGURATION=second_address_test_master_service_udp.json
fi
-
+
elif [ "$OPERATIONMODE" = "CLIENT" ]; then
MASTER_APPLICATION=second_address_test_client
SLAVE_OPERATIONMODE="SERVICE"
export VSOMEIP_CONFIGURATION=second_address_test_master_client.json
fi
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/routingmanagerd &
PID_VSOMEIPD=$!
./$MASTER_APPLICATION $COMMUNICATIONMODE &
@@ -44,12 +44,9 @@ sleep 1
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting offer test on slave LXC second_address_test_slave_starter.sh"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./second_address_test_slave_starter.sh $SLAVE_OPERATIONMODE $COMMUNICATIONMODE\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./second_address_test_slave_starter.sh $SLAVE_OPERATIONMODE $COMMUNICATIONMODE\"" &
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS; sleep 10; ./second_address_test_slave_starter.sh $SLAVE_OPERATIONMODE $COMMUNICATIONMODE" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./second_address_test_slave_starter.sh $SLAVE_OPERATIONMODE $COMMUNICATIONMODE\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
diff --git a/test/second_address_tests/second_address_test_service.cpp b/test/network_tests/second_address_tests/second_address_test_service.cpp
index 374db0a..c675eee 100644
--- a/test/second_address_tests/second_address_test_service.cpp
+++ b/test/network_tests/second_address_tests/second_address_test_service.cpp
@@ -243,7 +243,7 @@ TEST(someip_second_address_test, test_communication_with_client)
second_address_test_service its_sample(second_address_test::service);
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/security_tests/conf/security_test_config_client_external_allow.json.in b/test/network_tests/security_tests/conf/security_test_config_client_external_allow.json.in
index e73f3db..e73f3db 100644
--- a/test/security_tests/conf/security_test_config_client_external_allow.json.in
+++ b/test/network_tests/security_tests/conf/security_test_config_client_external_allow.json.in
diff --git a/test/security_tests/conf/security_test_config_client_external_deny.json.in b/test/network_tests/security_tests/conf/security_test_config_client_external_deny.json.in
index 1161f4f..1161f4f 100644
--- a/test/security_tests/conf/security_test_config_client_external_deny.json.in
+++ b/test/network_tests/security_tests/conf/security_test_config_client_external_deny.json.in
diff --git a/test/security_tests/conf/security_test_config_service_external_allow.json.in b/test/network_tests/security_tests/conf/security_test_config_service_external_allow.json.in
index 4d9129a..4d9129a 100644
--- a/test/security_tests/conf/security_test_config_service_external_allow.json.in
+++ b/test/network_tests/security_tests/conf/security_test_config_service_external_allow.json.in
diff --git a/test/security_tests/conf/security_test_config_service_external_deny.json.in b/test/network_tests/security_tests/conf/security_test_config_service_external_deny.json.in
index 769b04f..769b04f 100644
--- a/test/security_tests/conf/security_test_config_service_external_deny.json.in
+++ b/test/network_tests/security_tests/conf/security_test_config_service_external_deny.json.in
diff --git a/test/security_tests/conf/security_test_local_config.json.in b/test/network_tests/security_tests/conf/security_test_local_config.json.in
index 60036f8..60036f8 100644
--- a/test/security_tests/conf/security_test_local_config.json.in
+++ b/test/network_tests/security_tests/conf/security_test_local_config.json.in
diff --git a/test/security_tests/security_test_client.cpp b/test/network_tests/security_tests/security_test_client.cpp
index 2890e74..2890e74 100644
--- a/test/security_tests/security_test_client.cpp
+++ b/test/network_tests/security_tests/security_test_client.cpp
diff --git a/test/security_tests/security_test_client.hpp b/test/network_tests/security_tests/security_test_client.hpp
index df2acc8..df2acc8 100644
--- a/test/security_tests/security_test_client.hpp
+++ b/test/network_tests/security_tests/security_test_client.hpp
diff --git a/test/security_tests/security_test_external_master_start.sh b/test/network_tests/security_tests/security_test_external_master_start.sh
index dc41b8c..fae63a7 100755
--- a/test/security_tests/security_test_external_master_start.sh
+++ b/test/network_tests/security_tests/security_test_external_master_start.sh
@@ -26,7 +26,7 @@ FAIL=0
export VSOMEIP_CONFIGURATION=$1
export VSOMEIP_APPLICATION_NAME=routingmanagerd
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
export VSOMEIP_CONFIGURATION=$1
@@ -37,12 +37,9 @@ PID_CLIENT=$!
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting external security test on slave LXC"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./security_test_external_slave_start.sh $SERVICE_JSON_FILE $2\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./security_test_external_slave_start.sh $SERVICE_JSON_FILE $2\"" &
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./security_test_external_slave_start.sh $SERVICE_JSON_FILE $2" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./security_test_external_slave_start.sh $SERVICE_JSON_FILE $2\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
@@ -72,7 +69,7 @@ done
kill $PID_VSOMEIPD
kill $PID_CLIENT
-# Check if both exited successfully
+# Check if both exited successfully
if [ $FAIL -eq 0 ]
then
exit 0
diff --git a/test/security_tests/security_test_external_slave_start.sh b/test/network_tests/security_tests/security_test_external_slave_start.sh
index 96f578f..3c324d5 100755
--- a/test/security_tests/security_test_external_slave_start.sh
+++ b/test/network_tests/security_tests/security_test_external_slave_start.sh
@@ -25,7 +25,7 @@ FAIL=0
export VSOMEIP_CONFIGURATION=$1
export VSOMEIP_APPLICATION_NAME=routingmanagerd
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
export VSOMEIP_CONFIGURATION=$1
@@ -46,7 +46,7 @@ done
kill $PID_VSOMEIPD
kill $PID_SERVICE
-# Check if both exited successfully
+# Check if both exited successfully
if [ $FAIL -eq 0 ]
then
exit 0
diff --git a/test/security_tests/security_test_local_start.sh b/test/network_tests/security_tests/security_test_local_start.sh
index fb8273d..421788e 100755
--- a/test/security_tests/security_test_local_start.sh
+++ b/test/network_tests/security_tests/security_test_local_start.sh
@@ -8,7 +8,7 @@ export VSOMEIP_CONFIGURATION=security_test_local_config.json
export VSOMEIP_APPLICATION_NAME=routingmanagerd
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/routingmanagerd &
PID_VSOMEIPD=$!
sleep 1
diff --git a/test/security_tests/security_test_service.cpp b/test/network_tests/security_tests/security_test_service.cpp
index 3342eb9..35e6fbc 100644
--- a/test/security_tests/security_test_service.cpp
+++ b/test/network_tests/security_tests/security_test_service.cpp
@@ -171,7 +171,7 @@ TEST(someip_security_test, basic_subscribe_request_response) {
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv) {
std::string test_remote("--remote");
diff --git a/test/security_tests/security_test_service.hpp b/test/network_tests/security_tests/security_test_service.hpp
index 21f1f7c..21f1f7c 100644
--- a/test/security_tests/security_test_service.hpp
+++ b/test/network_tests/security_tests/security_test_service.hpp
diff --git a/test/someip_test_globals.hpp b/test/network_tests/someip_test_globals.hpp
index 4380cd3..4380cd3 100644
--- a/test/someip_test_globals.hpp
+++ b/test/network_tests/someip_test_globals.hpp
diff --git a/test/someip_tp_tests/conf/someip_tp_test_master.json.in b/test/network_tests/someip_tp_tests/conf/someip_tp_test_master.json.in
index a2f67a1..a2f67a1 100644
--- a/test/someip_tp_tests/conf/someip_tp_test_master.json.in
+++ b/test/network_tests/someip_tp_tests/conf/someip_tp_test_master.json.in
diff --git a/test/someip_tp_tests/conf/someip_tp_test_master_starter.sh.in b/test/network_tests/someip_tp_tests/conf/someip_tp_test_master_starter.sh.in
index 56e3ddf..0064899 100755
--- a/test/someip_tp_tests/conf/someip_tp_test_master_starter.sh.in
+++ b/test/network_tests/someip_tp_tests/conf/someip_tp_test_master_starter.sh.in
@@ -17,7 +17,7 @@ fi
TESTMODE=$1
export VSOMEIP_CONFIGURATION=someip_tp_test_master.json
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
# Start the services
./someip_tp_test_service $1 &
@@ -28,16 +28,12 @@ sleep 1
if [ ! -z "$USE_LXC_TEST" ]; then
echo "Waiting for 5s"
sleep 5
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./someip_tp_test_msg_sender @TEST_IP_MASTER@ @TEST_IP_SLAVE@ $TESTMODE\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./someip_tp_test_msg_sender @TEST_IP_MASTER@ @TEST_IP_SLAVE@ $TESTMODE\"" &
echo "remote ssh pid: $!"
elif [ ! -z "$USE_DOCKER" ]; then
echo "Waiting for 5s"
sleep 5
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./someip_tp_test_msg_sender @TEST_IP_MASTER@ @TEST_IP_SLAVE@ $TESTMODE" &
-elif [ ! -z "$JENKINS" ]; then
- echo "Waiting for 5s"
- sleep 5
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./someip_tp_test_msg_sender @TEST_IP_MASTER@ @TEST_IP_SLAVE@ $TESTMODE\" >> $WS_ROOT/slave_test_output 2>&1" &
else
cat <<End-of-message
*******************************************************************************
diff --git a/test/someip_tp_tests/someip_tp_test_globals.hpp b/test/network_tests/someip_tp_tests/someip_tp_test_globals.hpp
index 723cfe1..723cfe1 100644
--- a/test/someip_tp_tests/someip_tp_test_globals.hpp
+++ b/test/network_tests/someip_tp_tests/someip_tp_test_globals.hpp
diff --git a/test/someip_tp_tests/someip_tp_test_msg_sender.cpp b/test/network_tests/someip_tp_tests/someip_tp_test_msg_sender.cpp
index c930acb..f2e4f9e 100644
--- a/test/someip_tp_tests/someip_tp_test_msg_sender.cpp
+++ b/test/network_tests/someip_tp_tests/someip_tp_test_msg_sender.cpp
@@ -14,7 +14,7 @@
#include <algorithm>
#include <list>
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
#include <arpa/inet.h>
#endif
@@ -57,7 +57,7 @@ std::vector<someip_tp_test::test_mode_e> its_modes({
class someip_tp : public ::testing::TestWithParam<someip_tp_test::test_mode_e> {
public:
someip_tp() :
- work_(std::make_shared<boost::asio::io_service::work>(io_)),
+ work_(std::make_shared<boost::asio::io_context::work>(io_)),
io_thread_(std::bind(&someip_tp::io_run, this)),
session_(0x0),
sd_session_(0x0),
@@ -346,8 +346,8 @@ protected:
MIXED_RANDOM,
};
- boost::asio::io_service io_;
- std::shared_ptr<boost::asio::io_service::work> work_;
+ boost::asio::io_context io_;
+ std::shared_ptr<boost::asio::io_context::work> work_;
std::thread io_thread_;
std::vector<vsomeip::message_buffer_ptr_t> fragments_request_to_master_;
std::vector<vsomeip::message_buffer_ptr_t> fragments_response_of_master_;
@@ -1357,7 +1357,7 @@ TEST_P(someip_tp, send_in_mode)
udp_server_socket.close(ec);
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
if(argc < 3) {
diff --git a/test/someip_tp_tests/someip_tp_test_service.cpp b/test/network_tests/someip_tp_tests/someip_tp_test_service.cpp
index abc1af3..26fdf6d 100644
--- a/test/someip_tp_tests/someip_tp_test_service.cpp
+++ b/test/network_tests/someip_tp_tests/someip_tp_test_service.cpp
@@ -382,7 +382,7 @@ TEST(someip_someip_tp_test, echo_requests)
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master.json.in b/test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master.json.in
index 26d9644..26d9644 100644
--- a/test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master.json.in
+++ b/test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master.json.in
diff --git a/test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master_tcp.json.in b/test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master_tcp.json.in
index 7b4b606..7b4b606 100644
--- a/test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master_tcp.json.in
+++ b/test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master_tcp.json.in
diff --git a/test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master_udp.json.in b/test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master_udp.json.in
index e5218b3..e5218b3 100644
--- a/test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master_udp.json.in
+++ b/test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_master_udp.json.in
diff --git a/test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave.json.in b/test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave.json.in
index a4283b9..a4283b9 100644
--- a/test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave.json.in
+++ b/test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave.json.in
diff --git a/test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave_tcp.json.in b/test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave_tcp.json.in
index 1cb1feb..1cb1feb 100644
--- a/test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave_tcp.json.in
+++ b/test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave_tcp.json.in
diff --git a/test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave_udp.json.in b/test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave_udp.json.in
index 138afae..138afae 100644
--- a/test/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave_udp.json.in
+++ b/test/network_tests/subscribe_notify_one_tests/conf/subscribe_notify_one_test_diff_client_ids_diff_ports_slave_udp.json.in
diff --git a/test/subscribe_notify_one_tests/subscribe_notify_one_test_globals.hpp b/test/network_tests/subscribe_notify_one_tests/subscribe_notify_one_test_globals.hpp
index 047ded7..047ded7 100644
--- a/test/subscribe_notify_one_tests/subscribe_notify_one_test_globals.hpp
+++ b/test/network_tests/subscribe_notify_one_tests/subscribe_notify_one_test_globals.hpp
diff --git a/test/subscribe_notify_one_tests/subscribe_notify_one_test_master_starter.sh b/test/network_tests/subscribe_notify_one_tests/subscribe_notify_one_test_master_starter.sh
index a53104f..8569a10 100755
--- a/test/subscribe_notify_one_tests/subscribe_notify_one_test_master_starter.sh
+++ b/test/network_tests/subscribe_notify_one_tests/subscribe_notify_one_test_master_starter.sh
@@ -42,13 +42,10 @@ sleep 3
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting subscribe_notify_one_test_slave_starter.sh on slave LXC with parameters $CLIENT_JSON_FILE"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./subscribe_notify_one_test_slave_starter.sh $RELIABILITY_TYPE $CLIENT_JSON_FILE\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./subscribe_notify_one_test_slave_starter.sh $RELIABILITY_TYPE $CLIENT_JSON_FILE\"" &
echo "remote ssh job id: $!"
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./subscribe_notify_one_test_slave_starter.sh $RELIABILITY_TYPE $CLIENT_JSON_FILE" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./subscribe_notify_one_test_slave_starter.sh $RELIABILITY_TYPE $CLIENT_JSON_FILE\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
@@ -73,7 +70,7 @@ do
wait $job || ((FAIL+=1))
done
-# Check if both exited successfully
+# Check if both exited successfully
if [ $FAIL -eq 0 ]
then
exit 0
diff --git a/test/subscribe_notify_one_tests/subscribe_notify_one_test_service.cpp b/test/network_tests/subscribe_notify_one_tests/subscribe_notify_one_test_service.cpp
index 4008a6d..a3b86b3 100644
--- a/test/subscribe_notify_one_tests/subscribe_notify_one_test_service.cpp
+++ b/test/network_tests/subscribe_notify_one_tests/subscribe_notify_one_test_service.cpp
@@ -470,7 +470,7 @@ TEST(someip_subscribe_notify_one_test, send_ten_notifications_to_service)
reliability_type);
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/subscribe_notify_one_tests/subscribe_notify_one_test_slave_starter.sh b/test/network_tests/subscribe_notify_one_tests/subscribe_notify_one_test_slave_starter.sh
index 830484d..830484d 100755
--- a/test/subscribe_notify_one_tests/subscribe_notify_one_test_slave_starter.sh
+++ b/test/network_tests/subscribe_notify_one_tests/subscribe_notify_one_test_slave_starter.sh
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_master.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_master.json.in
index 370cf98..370cf98 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_master.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_master.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_master_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_master_local_tcp.json.in
new file mode 100644
index 0000000..1ce1a05
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_master_local_tcp.json.in
@@ -0,0 +1,68 @@
+{
+ "unicast":"@TEST_IP_MASTER@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "services":
+ [
+ {
+ "service":"0x1111",
+ "instance":"0x0001",
+ "unreliable":"30001",
+ "reliable":
+ {
+ "port":"40001",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x2222",
+ "instance":"0x0001",
+ "unreliable":"30002",
+ "reliable":
+ {
+ "port":"40002",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x3333",
+ "instance":"0x0001",
+ "unreliable":"30003",
+ "reliable":
+ {
+ "port":"40003",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing" :
+ {
+ "host" :
+ {
+ "unicast" : "127.0.0.1",
+ "port" : "31490"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_slave.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_slave.json.in
index 46de8ff..46de8ff 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_slave.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_slave.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_slave_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_slave_local_tcp.json.in
new file mode 100644
index 0000000..46865e4
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_autoconfig_slave_local_tcp.json.in
@@ -0,0 +1,68 @@
+{
+ "unicast":"@TEST_IP_SLAVE@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "services":
+ [
+ {
+ "service":"0x4444",
+ "instance":"0x0001",
+ "unreliable":"30004",
+ "reliable":
+ {
+ "port":"40004",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x5555",
+ "instance":"0x0001",
+ "unreliable":"30005",
+ "reliable":
+ {
+ "port":"40005",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x6666",
+ "instance":"0x0001",
+ "unreliable":"30006",
+ "reliable":
+ {
+ "port":"40006",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing" :
+ {
+ "host" :
+ {
+ "unicast" : "127.0.0.1",
+ "port" : "31490"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master.json.in
index 87299aa..87299aa 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_local_tcp.json.in
new file mode 100644
index 0000000..b66fabc
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_local_tcp.json.in
@@ -0,0 +1,83 @@
+{
+ "unicast":"@TEST_IP_MASTER@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_one",
+ "id":"0x1111"
+ },
+ {
+ "name":"subscribe_notify_test_service_two",
+ "id":"0x2222"
+ },
+ {
+ "name":"subscribe_notify_test_service_three",
+ "id":"0x3333"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1111",
+ "instance":"0x0001",
+ "unreliable":"30001",
+ "reliable":
+ {
+ "port":"40001",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x2222",
+ "instance":"0x0001",
+ "unreliable":"30002",
+ "reliable":
+ {
+ "port":"40002",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x3333",
+ "instance":"0x0001",
+ "unreliable":"30003",
+ "reliable":
+ {
+ "port":"40003",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_one",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_tcp.json.in
index 99bf69a..99bf69a 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_tcp.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_tcp.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_tcp_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_tcp_local_tcp.json.in
new file mode 100644
index 0000000..817a4ee
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_tcp_local_tcp.json.in
@@ -0,0 +1,80 @@
+{
+ "unicast":"@TEST_IP_MASTER@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_one",
+ "id":"0x1111"
+ },
+ {
+ "name":"subscribe_notify_test_service_two",
+ "id":"0x2222"
+ },
+ {
+ "name":"subscribe_notify_test_service_three",
+ "id":"0x3333"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1111",
+ "instance":"0x0001",
+ "reliable":
+ {
+ "port":"40001",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x2222",
+ "instance":"0x0001",
+ "reliable":
+ {
+ "port":"40002",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x3333",
+ "instance":"0x0001",
+ "reliable":
+ {
+ "port":"40003",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_one",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+}
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_udp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_udp.json.in
index cb1ff9e..cb66202 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_udp.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_udp.json.in
@@ -44,7 +44,7 @@
"unreliable":"30003"
}
],
- "routing":"subscribe_notify_test_service_one",
+ "routing": "subscribe_notify_test_service_one",
"service-discovery":
{
"enable":"true",
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_udp_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_udp_local_tcp.json.in
new file mode 100644
index 0000000..4fe8882
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_master_udp_local_tcp.json.in
@@ -0,0 +1,68 @@
+{
+ "unicast":"@TEST_IP_MASTER@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_one",
+ "id":"0x1111"
+ },
+ {
+ "name":"subscribe_notify_test_service_two",
+ "id":"0x2222"
+ },
+ {
+ "name":"subscribe_notify_test_service_three",
+ "id":"0x3333"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1111",
+ "instance":"0x0001",
+ "unreliable":"30001"
+ },
+ {
+ "service":"0x2222",
+ "instance":"0x0001",
+ "unreliable":"30002"
+ },
+ {
+ "service":"0x3333",
+ "instance":"0x0001",
+ "unreliable":"30003"
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_one",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+}
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_master_udp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_master_udp.json.in
index 4de283c..4de283c 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_master_udp.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_master_udp.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_master_udp_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_master_udp_local_tcp.json.in
new file mode 100644
index 0000000..5960b61
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_master_udp_local_tcp.json.in
@@ -0,0 +1,68 @@
+{
+ "unicast":"@TEST_IP_MASTER@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_one",
+ "id":"0x1111"
+ },
+ {
+ "name":"subscribe_notify_test_service_two",
+ "id":"0x2222"
+ },
+ {
+ "name":"subscribe_notify_test_service_three",
+ "id":"0x3333"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1111",
+ "instance":"0x0001",
+ "unreliable":"30001"
+ },
+ {
+ "service":"0x1111",
+ "instance":"0x0002",
+ "unreliable":"30002"
+ },
+ {
+ "service":"0x1111",
+ "instance":"0x0003",
+ "unreliable":"30003"
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_one",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_slave_udp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_slave_udp.json.in
index 5dd9299..5dd9299 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_slave_udp.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_slave_udp.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_slave_udp_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_slave_udp_local_tcp.json.in
new file mode 100644
index 0000000..2521d62
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_same_service_id_slave_udp_local_tcp.json.in
@@ -0,0 +1,68 @@
+{
+ "unicast":"@TEST_IP_SLAVE@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_four",
+ "id":"0x4444"
+ },
+ {
+ "name":"subscribe_notify_test_service_five",
+ "id":"0x5555"
+ },
+ {
+ "name":"subscribe_notify_test_service_six",
+ "id":"0x6666"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x2222",
+ "instance":"0x0001",
+ "unreliable":"30004"
+ },
+ {
+ "service":"0x2222",
+ "instance":"0x0002",
+ "unreliable":"30005"
+ },
+ {
+ "service":"0x2222",
+ "instance":"0x0003",
+ "unreliable":"30006"
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_four",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave.json.in
index 5b110aa..5b110aa 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_local_tcp.json.in
new file mode 100644
index 0000000..0b2ebb8
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_local_tcp.json.in
@@ -0,0 +1,83 @@
+{
+ "unicast":"@TEST_IP_SLAVE@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_four",
+ "id":"0x4444"
+ },
+ {
+ "name":"subscribe_notify_test_service_five",
+ "id":"0x5555"
+ },
+ {
+ "name":"subscribe_notify_test_service_six",
+ "id":"0x6666"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x4444",
+ "instance":"0x0001",
+ "unreliable":"30004",
+ "reliable":
+ {
+ "port":"40004",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x5555",
+ "instance":"0x0001",
+ "unreliable":"30005",
+ "reliable":
+ {
+ "port":"40005",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x6666",
+ "instance":"0x0001",
+ "unreliable":"30006",
+ "reliable":
+ {
+ "port":"40006",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_four",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_tcp.json.in
index 628734c..628734c 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_tcp.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_tcp.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_tcp_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_tcp_local_tcp.json.in
new file mode 100644
index 0000000..14e5340
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_tcp_local_tcp.json.in
@@ -0,0 +1,85 @@
+{
+ "unicast":"@TEST_IP_SLAVE@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_four",
+ "id":"0x4444"
+ },
+ {
+ "name":"subscribe_notify_test_service_five",
+ "id":"0x5555"
+ },
+ {
+ "name":"subscribe_notify_test_service_six",
+ "id":"0x6666"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x4444",
+ "instance":"0x0001",
+ "reliable":
+ {
+ "port":"40004",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x5555",
+ "instance":"0x0001",
+ "reliable":
+ {
+ "port":"40005",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x6666",
+ "instance":"0x0001",
+ "reliable":
+ {
+ "port":"40006",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_four",
+ "unicast" : "127.0.0.1",
+ "port" : "44000"
+ },
+ "guests" :
+ {
+ "ports" : [ { "first" : "44100", "last" : "44105" } ]
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+}
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_udp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_udp.json.in
index 5b96b0e..5b96b0e 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_udp.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_udp.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_udp_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_udp_local_tcp.json.in
new file mode 100644
index 0000000..e4e75db
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_diff_ports_slave_udp_local_tcp.json.in
@@ -0,0 +1,68 @@
+{
+ "unicast":"@TEST_IP_SLAVE@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_four",
+ "id":"0x4444"
+ },
+ {
+ "name":"subscribe_notify_test_service_five",
+ "id":"0x5555"
+ },
+ {
+ "name":"subscribe_notify_test_service_six",
+ "id":"0x6666"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x4444",
+ "instance":"0x0001",
+ "unreliable":"30004"
+ },
+ {
+ "service":"0x5555",
+ "instance":"0x0001",
+ "unreliable":"30005"
+ },
+ {
+ "service":"0x6666",
+ "instance":"0x0001",
+ "unreliable":"30006"
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_four",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+}
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_master.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_master.json.in
index 81bb18e..81bb18e 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_master.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_master.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_master_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_master_local_tcp.json.in
new file mode 100644
index 0000000..acae8bb
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_master_local_tcp.json.in
@@ -0,0 +1,83 @@
+{
+ "unicast":"@TEST_IP_MASTER@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_one",
+ "id":"0x1111"
+ },
+ {
+ "name":"subscribe_notify_test_service_two",
+ "id":"0x2222"
+ },
+ {
+ "name":"subscribe_notify_test_service_three",
+ "id":"0x3333"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1111",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40001",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x2222",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40002",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x3333",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40003",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_one",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_slave.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_slave.json.in
index 98ce9a6..98ce9a6 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_slave.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_slave.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_slave_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_slave_local_tcp.json.in
new file mode 100644
index 0000000..7c1762d
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_partial_same_ports_slave_local_tcp.json.in
@@ -0,0 +1,83 @@
+{
+ "unicast":"@TEST_IP_SLAVE@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_four",
+ "id":"0x4444"
+ },
+ {
+ "name":"subscribe_notify_test_service_five",
+ "id":"0x5555"
+ },
+ {
+ "name":"subscribe_notify_test_service_six",
+ "id":"0x6666"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x4444",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40004",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x5555",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40005",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x6666",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40006",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_four",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master.json.in
index 253b55e..253b55e 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_local_tcp.json.in
new file mode 100644
index 0000000..f44a020
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_local_tcp.json.in
@@ -0,0 +1,83 @@
+{
+ "unicast":"@TEST_IP_MASTER@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_one",
+ "id":"0x1111"
+ },
+ {
+ "name":"subscribe_notify_test_service_two",
+ "id":"0x2222"
+ },
+ {
+ "name":"subscribe_notify_test_service_three",
+ "id":"0x3333"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1111",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x2222",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x3333",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_one",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_tcp.json.in
index 3969684..3969684 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_tcp.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_tcp.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_tcp_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_tcp_local_tcp.json.in
new file mode 100644
index 0000000..7bc81cc
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_tcp_local_tcp.json.in
@@ -0,0 +1,80 @@
+{
+ "unicast":"@TEST_IP_MASTER@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_one",
+ "id":"0x1111"
+ },
+ {
+ "name":"subscribe_notify_test_service_two",
+ "id":"0x2222"
+ },
+ {
+ "name":"subscribe_notify_test_service_three",
+ "id":"0x3333"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1111",
+ "instance":"0x0001",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x2222",
+ "instance":"0x0001",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x3333",
+ "instance":"0x0001",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_one",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_udp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_udp.json.in
index 72b53fc..72b53fc 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_udp.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_udp.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_udp_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_udp_local_tcp.json.in
new file mode 100644
index 0000000..25a017b
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_master_udp_local_tcp.json.in
@@ -0,0 +1,68 @@
+{
+ "unicast":"@TEST_IP_MASTER@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_one",
+ "id":"0x1111"
+ },
+ {
+ "name":"subscribe_notify_test_service_two",
+ "id":"0x2222"
+ },
+ {
+ "name":"subscribe_notify_test_service_three",
+ "id":"0x3333"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1111",
+ "instance":"0x0001",
+ "unreliable":"30000"
+ },
+ {
+ "service":"0x2222",
+ "instance":"0x0001",
+ "unreliable":"30000"
+ },
+ {
+ "service":"0x3333",
+ "instance":"0x0001",
+ "unreliable":"30000"
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_one",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave.json.in
index 556b10f..556b10f 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_local_tcp.json.in
new file mode 100644
index 0000000..85847ea
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_local_tcp.json.in
@@ -0,0 +1,83 @@
+{
+ "unicast":"@TEST_IP_SLAVE@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_four",
+ "id":"0x4444"
+ },
+ {
+ "name":"subscribe_notify_test_service_five",
+ "id":"0x5555"
+ },
+ {
+ "name":"subscribe_notify_test_service_six",
+ "id":"0x6666"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x4444",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x5555",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x6666",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_four",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_tcp.json.in
index 3f9aa0b..3f9aa0b 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_tcp.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_tcp.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_tcp_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_tcp_local_tcp.json.in
new file mode 100644
index 0000000..4aa32f1
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_tcp_local_tcp.json.in
@@ -0,0 +1,80 @@
+{
+ "unicast":"@TEST_IP_SLAVE@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_four",
+ "id":"0x4444"
+ },
+ {
+ "name":"subscribe_notify_test_service_five",
+ "id":"0x5555"
+ },
+ {
+ "name":"subscribe_notify_test_service_six",
+ "id":"0x6666"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x4444",
+ "instance":"0x0001",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x5555",
+ "instance":"0x0001",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x6666",
+ "instance":"0x0001",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_four",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_udp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_udp.json.in
index e485690..6e14f4f 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_udp.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_udp.json.in
@@ -44,7 +44,7 @@
"unreliable":"30000"
}
],
- "routing":"subscribe_notify_test_service_four",
+ "routing": "subscribe_notify_test_service_four",
"service-discovery":
{
"enable":"true",
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_udp_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_udp_local_tcp.json.in
new file mode 100644
index 0000000..baf3634
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_diff_client_ids_same_ports_slave_udp_local_tcp.json.in
@@ -0,0 +1,68 @@
+{
+ "unicast":"@TEST_IP_SLAVE@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_four",
+ "id":"0x4444"
+ },
+ {
+ "name":"subscribe_notify_test_service_five",
+ "id":"0x5555"
+ },
+ {
+ "name":"subscribe_notify_test_service_six",
+ "id":"0x6666"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x4444",
+ "instance":"0x0001",
+ "unreliable":"30000"
+ },
+ {
+ "service":"0x5555",
+ "instance":"0x0001",
+ "unreliable":"30000"
+ },
+ {
+ "service":"0x6666",
+ "instance":"0x0001",
+ "unreliable":"30000"
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_four",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_master.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_master.json.in
index 88d5ec9..88d5ec9 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_master.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_master.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_master_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_master_local_tcp.json.in
new file mode 100644
index 0000000..45e3943
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_master_local_tcp.json.in
@@ -0,0 +1,38 @@
+{
+ "unicast" : "@TEST_IP_MASTER@",
+ "logging" :
+ {
+ "level" : "warning",
+ "console" : "true",
+ "file" : { "enable" : "false", "path" : "/var/log/vsomeip.log" },
+ "dlt" : "false"
+ },
+ "applications" :
+ [
+ {
+ "name" : "subscribe_notify_test_client",
+ "id" : "0x9999"
+ }
+ ],
+ "routing" :
+ {
+ "host" :
+ {
+ "name" : "routingmanagerd",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery" :
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "0",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+}
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_tcp_slave.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_tcp_slave.json.in
index f712c07..f712c07 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_tcp_slave.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_tcp_slave.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_tcp_slave_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_tcp_slave_local_tcp.json.in
new file mode 100644
index 0000000..d87eb34
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_tcp_slave_local_tcp.json.in
@@ -0,0 +1,46 @@
+{
+ "unicast" : "@TEST_IP_SLAVE@",
+ "logging" :
+ {
+ "level" : "info",
+ "console" : "true",
+ "file" : { "enable" : "false", "path" : "/tmp/vsomeip.log" },
+ "dlt" : "false"
+ },
+ "applications" :
+ [
+ {
+ "name" : "subscribe_notify_test_service",
+ "id" : "0x8888"
+ }
+ ],
+ "services" :
+ [
+ {
+ "service" : "0xcafe",
+ "instance" : "0x1",
+ "reliable" : { "port":"30509", "enable-magic-cookies":"false" }
+ }
+ ],
+ "routing" :
+ {
+ "host" :
+ {
+ "name" : "routingmanagerd",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery" :
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "0",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+}
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_udp_slave.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_udp_slave.json.in
index cd6415c..cd6415c 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_udp_slave.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_udp_slave.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_udp_slave_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_udp_slave_local_tcp.json.in
new file mode 100644
index 0000000..a596b30
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_one_event_two_eventgroups_udp_slave_local_tcp.json.in
@@ -0,0 +1,46 @@
+{
+ "unicast" : "@TEST_IP_SLAVE@",
+ "logging" :
+ {
+ "level" : "warning",
+ "console" : "true",
+ "file" : { "enable" : "false", "path" : "/tmp/vsomeip.log" },
+ "dlt" : "false"
+ },
+ "applications" :
+ [
+ {
+ "name" : "subscribe_notify_test_service",
+ "id" : "0x8888"
+ }
+ ],
+ "services" :
+ [
+ {
+ "service" : "0xcafe",
+ "instance" : "0x1",
+ "unreliable" : "30509"
+ }
+ ],
+ "routing" :
+ {
+ "host" :
+ {
+ "name" : "routingmanagerd",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery" :
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "0",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+}
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_master.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_master.json.in
index 87299aa..87299aa 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_master.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_master.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_master_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_master_local_tcp.json.in
new file mode 100644
index 0000000..b66fabc
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_master_local_tcp.json.in
@@ -0,0 +1,83 @@
+{
+ "unicast":"@TEST_IP_MASTER@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_one",
+ "id":"0x1111"
+ },
+ {
+ "name":"subscribe_notify_test_service_two",
+ "id":"0x2222"
+ },
+ {
+ "name":"subscribe_notify_test_service_three",
+ "id":"0x3333"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1111",
+ "instance":"0x0001",
+ "unreliable":"30001",
+ "reliable":
+ {
+ "port":"40001",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x2222",
+ "instance":"0x0001",
+ "unreliable":"30002",
+ "reliable":
+ {
+ "port":"40002",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x3333",
+ "instance":"0x0001",
+ "unreliable":"30003",
+ "reliable":
+ {
+ "port":"40003",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_one",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_slave.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_slave.json.in
index bc13f01..bc13f01 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_slave.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_slave.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_slave_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_slave_local_tcp.json.in
new file mode 100644
index 0000000..654ec65
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_diff_ports_slave_local_tcp.json.in
@@ -0,0 +1,83 @@
+{
+ "unicast":"@TEST_IP_SLAVE@",
+ "logging":
+ {
+ "level":"info",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_four",
+ "id":"0x1111"
+ },
+ {
+ "name":"subscribe_notify_test_service_five",
+ "id":"0x2222"
+ },
+ {
+ "name":"subscribe_notify_test_service_six",
+ "id":"0x3333"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x4444",
+ "instance":"0x0001",
+ "unreliable":"30004",
+ "reliable":
+ {
+ "port":"40004",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x5555",
+ "instance":"0x0001",
+ "unreliable":"30005",
+ "reliable":
+ {
+ "port":"40005",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x6666",
+ "instance":"0x0001",
+ "unreliable":"30006",
+ "reliable":
+ {
+ "port":"40006",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_four",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_master.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_master.json.in
index 253b55e..253b55e 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_master.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_master.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_master_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_master_local_tcp.json.in
new file mode 100644
index 0000000..f44a020
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_master_local_tcp.json.in
@@ -0,0 +1,83 @@
+{
+ "unicast":"@TEST_IP_MASTER@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_one",
+ "id":"0x1111"
+ },
+ {
+ "name":"subscribe_notify_test_service_two",
+ "id":"0x2222"
+ },
+ {
+ "name":"subscribe_notify_test_service_three",
+ "id":"0x3333"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x1111",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x2222",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x3333",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_one",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_slave.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_slave.json.in
index c203e80..c203e80 100644
--- a/test/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_slave.json.in
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_slave.json.in
diff --git a/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_slave_local_tcp.json.in b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_slave_local_tcp.json.in
new file mode 100644
index 0000000..91e9006
--- /dev/null
+++ b/test/network_tests/subscribe_notify_tests/conf/subscribe_notify_test_same_client_ids_same_ports_slave_local_tcp.json.in
@@ -0,0 +1,83 @@
+{
+ "unicast":"@TEST_IP_SLAVE@",
+ "logging":
+ {
+ "level":"warning",
+ "console":"true",
+ "file":
+ {
+ "enable":"false",
+ "path":"/tmp/vsomeip.log"
+ },
+ "dlt":"false"
+ },
+ "applications":
+ [
+ {
+ "name":"subscribe_notify_test_service_four",
+ "id":"0x1111"
+ },
+ {
+ "name":"subscribe_notify_test_service_five",
+ "id":"0x2222"
+ },
+ {
+ "name":"subscribe_notify_test_service_six",
+ "id":"0x3333"
+ }
+ ],
+ "services":
+ [
+ {
+ "service":"0x4444",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x5555",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ },
+ {
+ "service":"0x6666",
+ "instance":"0x0001",
+ "unreliable":"30000",
+ "reliable":
+ {
+ "port":"40000",
+ "enable-magic-cookies":"false"
+ }
+ }
+ ],
+ "routing":
+ {
+ "host" :
+ {
+ "name" : "subscribe_notify_test_service_four",
+ "unicast" : "127.0.0.1"
+ }
+ },
+ "service-discovery":
+ {
+ "enable":"true",
+ "multicast":"224.0.0.1",
+ "port":"30490",
+ "protocol":"udp",
+ "initial_delay_min" : "10",
+ "initial_delay_max" : "10",
+ "repetitions_base_delay" : "30",
+ "repetitions_max" : "3",
+ "cyclic_offer_delay" : "1000",
+ "ttl" : "3"
+ }
+} \ No newline at end of file
diff --git a/test/subscribe_notify_tests/subscribe_notify_test_globals.hpp b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_globals.hpp
index 761c3c4..761c3c4 100644
--- a/test/subscribe_notify_tests/subscribe_notify_test_globals.hpp
+++ b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_globals.hpp
diff --git a/test/subscribe_notify_tests/subscribe_notify_test_master_starter.sh b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_master_starter.sh
index f068e99..10dfd8e 100755
--- a/test/subscribe_notify_tests/subscribe_notify_test_master_starter.sh
+++ b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_master_starter.sh
@@ -44,13 +44,10 @@ sleep 3
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting subscribe_notify_test_slave_starter.sh on slave LXC with parameters $CLIENT_JSON_FILE $2"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./subscribe_notify_test_slave_starter.sh $RELIABILITY_TYPE $CLIENT_JSON_FILE $3\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./subscribe_notify_test_slave_starter.sh $RELIABILITY_TYPE $CLIENT_JSON_FILE $3\"" &
echo "remote ssh job id: $!"
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./subscribe_notify_test_slave_starter.sh $RELIABILITY_TYPE $CLIENT_JSON_FILE $3" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./subscribe_notify_test_slave_starter.sh $RELIABILITY_TYPE $CLIENT_JSON_FILE $3\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
@@ -60,8 +57,8 @@ else
** from an external host to successfully complete this test.
**
** You probably will need to adapt the 'unicast' settings in
-** subscribe_notify_test_diff_client_ids_diff_ports_master.json and
-** subscribe_notify_test_diff_client_ids_diff_ports_slave.json to your personal setup.
+** $MASTER_JSON_FILE and
+** $CLIENT_JSON_FILE to your personal setup.
*******************************************************************************
*******************************************************************************
End-of-message
@@ -79,7 +76,7 @@ do
wait $job || ((FAIL+=1))
done
-# Check if both exited successfully
+# Check if both exited successfully
if [ $FAIL -eq 0 ]
then
exit 0
diff --git a/test/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_client.cpp b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_client.cpp
index 9d09394..c3b37a1 100644
--- a/test/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_client.cpp
+++ b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_client.cpp
@@ -368,7 +368,7 @@ TEST(someip_subscribe_notify_test_one_event_two_eventgroups, subscribe_to_servic
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_master_starter.sh b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_master_starter.sh
index c453796..e379958 100755
--- a/test/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_master_starter.sh
+++ b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_master_starter.sh
@@ -32,7 +32,7 @@ FAIL=0
export VSOMEIP_CONFIGURATION=$2
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/routingmanagerd &
PID_VSOMEIPD=$!
# Start the client
@@ -42,13 +42,10 @@ sleep 1
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting subscribe_notify_test_slave_starter.sh on slave LXC with parameters $SLAVE_JSON_FILE"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./subscribe_notify_test_one_event_two_eventgroups_slave_starter.sh $RELIABILITY_TYPE $SLAVE_JSON_FILE\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./subscribe_notify_test_one_event_two_eventgroups_slave_starter.sh $RELIABILITY_TYPE $SLAVE_JSON_FILE\"" &
echo "remote ssh job id: $!"
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./subscribe_notify_test_one_event_two_eventgroups_slave_starter.sh $RELIABILITY_TYPE $SLAVE_JSON_FILE" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./subscribe_notify_test_one_event_two_eventgroups_slave_starter.sh $RELIABILITY_TYPE $SLAVE_JSON_FILE\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
@@ -77,8 +74,9 @@ wait $PID_CLIENT || FAIL=$(($FAIL+1))
kill $PID_VSOMEIPD
wait $PID_VSOMEIPD || FAIL=$(($FAIL+1))
+echo ""
-# Check if both exited successfully
+# Check if both exited successfully
if [ $FAIL -eq 0 ]; then
exit 0
else
diff --git a/test/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_service.cpp b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_service.cpp
index a0f4894..20021e5 100644
--- a/test/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_service.cpp
+++ b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_service.cpp
@@ -219,7 +219,7 @@ TEST(someip_subscribe_notify_test_one_event_two_eventgroups, wait_for_attribute_
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_slave_starter.sh b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_slave_starter.sh
index 0d663d6..8d8b54c 100755
--- a/test/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_slave_starter.sh
+++ b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_one_event_two_eventgroups_slave_starter.sh
@@ -22,7 +22,7 @@ FAIL=0
export VSOMEIP_CONFIGURATION=$2
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/routingmanagerd &
PID_VSOMEIPD=$!
# Start the services
@@ -32,12 +32,14 @@ PID_SERVICE=$!
# wait until service exits successfully
wait $PID_SERVICE || FAIL=$(($FAIL+1))
+
# kill daemon
kill $PID_VSOMEIPD
wait $PID_VSOMEIPD || FAIL=$(($FAIL+1))
+echo ""
-# Check if both exited successfully
+# Check if both exited successfully
if [ $FAIL -eq 0 ]; then
exit 0
else
diff --git a/test/subscribe_notify_tests/subscribe_notify_test_service.cpp b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_service.cpp
index c522d1a..8e61757 100644
--- a/test/subscribe_notify_tests/subscribe_notify_test_service.cpp
+++ b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_service.cpp
@@ -82,12 +82,14 @@ public:
auto handler = std::bind(&subscribe_notify_test_service::on_subscription_state_change, this,
std::placeholders::_1, std::placeholders::_2,
std::placeholders::_3, std::placeholders::_4, std::placeholders::_5);
- app_->register_subscription_status_handler(i.service_id, i.instance_id, i.eventgroup_id, vsomeip::ANY_EVENT, handler);
+ app_->register_subscription_status_handler(i.service_id, i.instance_id, i.eventgroup_id,
+ vsomeip::ANY_EVENT, handler);
std::set<vsomeip::eventgroup_t> its_eventgroups;
its_eventgroups.insert(i.eventgroup_id);
- app_->request_event(i.service_id, i.instance_id, i.event_id, its_eventgroups, vsomeip::event_type_e::ET_FIELD, reliability_type_);
+ app_->request_event(i.service_id, i.instance_id, i.event_id, its_eventgroups,
+ vsomeip::event_type_e::ET_FIELD, reliability_type_);
other_services_available_[std::make_pair(i.service_id, i.instance_id)] = false;
other_services_received_notification_[std::make_pair(i.service_id, i.method_id)] = 0;
@@ -475,7 +477,7 @@ TEST(someip_subscribe_notify_test, send_ten_notifications_to_service)
}
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
diff --git a/test/subscribe_notify_tests/subscribe_notify_test_slave_starter.sh b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_slave_starter.sh
index 8133161..8133161 100755
--- a/test/subscribe_notify_tests/subscribe_notify_test_slave_starter.sh
+++ b/test/network_tests/subscribe_notify_tests/subscribe_notify_test_slave_starter.sh
diff --git a/test/suspend_resume_tests/conf/suspend_resume_test_client.json.in b/test/network_tests/suspend_resume_tests/conf/suspend_resume_test_client.json.in
index db94cea..db94cea 100644
--- a/test/suspend_resume_tests/conf/suspend_resume_test_client.json.in
+++ b/test/network_tests/suspend_resume_tests/conf/suspend_resume_test_client.json.in
diff --git a/test/suspend_resume_tests/conf/suspend_resume_test_service.json.in b/test/network_tests/suspend_resume_tests/conf/suspend_resume_test_service.json.in
index 44b510b..44b510b 100644
--- a/test/suspend_resume_tests/conf/suspend_resume_test_service.json.in
+++ b/test/network_tests/suspend_resume_tests/conf/suspend_resume_test_service.json.in
diff --git a/test/suspend_resume_tests/suspend_resume_test.hpp b/test/network_tests/suspend_resume_tests/suspend_resume_test.hpp
index 5271bba..5271bba 100644
--- a/test/suspend_resume_tests/suspend_resume_test.hpp
+++ b/test/network_tests/suspend_resume_tests/suspend_resume_test.hpp
diff --git a/test/suspend_resume_tests/suspend_resume_test_client.cpp b/test/network_tests/suspend_resume_tests/suspend_resume_test_client.cpp
index ca2956c..11ae578 100644
--- a/test/suspend_resume_tests/suspend_resume_test_client.cpp
+++ b/test/network_tests/suspend_resume_tests/suspend_resume_test_client.cpp
@@ -229,11 +229,11 @@ TEST(suspend_resume_test, fast)
its_client.run_test();
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
-#endif // _WIN32
+#endif
diff --git a/test/suspend_resume_tests/suspend_resume_test_master_starter.sh b/test/network_tests/suspend_resume_tests/suspend_resume_test_master_starter.sh
index 39a8d73..44b1b74 100755
--- a/test/suspend_resume_tests/suspend_resume_test_master_starter.sh
+++ b/test/network_tests/suspend_resume_tests/suspend_resume_test_master_starter.sh
@@ -17,7 +17,7 @@ export VSOMEIP_APPLICATION_NAME=suspend_resume_test_service
export VSOMEIP_CONFIGURATION=suspend_resume_test_service.json
# start daemon
-../examples/routingmanagerd/./routingmanagerd &
+../../examples/routingmanagerd/./routingmanagerd &
PID_VSOMEIPD=$!
# start the service
@@ -28,19 +28,16 @@ sleep 1
if [ ! -z "$USE_LXC_TEST" ]; then
echo "starting suspend_resume_test_slave_starter.sh on slave LXC with parameters $SLAVE_JSON_FILE"
- ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test; ./suspend_resume_test_slave_starter.sh\"" &
+ ssh -tt -i $SANDBOX_ROOT_DIR/commonapi_main/lxc-config/.ssh/mgc_lxc/rsa_key_file.pub -o StrictHostKeyChecking=no root@$LXC_TEST_SLAVE_IP "bash -ci \"set -m; cd \\\$SANDBOX_TARGET_DIR/vsomeip_lib/test/network_tests; ./suspend_resume_test_slave_starter.sh\"" &
echo "remote ssh job id: $!"
elif [ ! -z "$USE_DOCKER" ]; then
docker exec $DOCKER_IMAGE sh -c "cd $DOCKER_TESTS && ./suspend_resume_test_slave_starter.sh" &
-elif [ ! -z "$JENKINS" ]; then
- ssh -tt -i $PRV_KEY -o StrictHostKeyChecking=no jenkins@$IP_SLAVE "bash -ci \"set -m; cd $WS_ROOT/build/test; ./suspend_resume_test_slave_starter.sh\" >> $WS_ROOT/slave_test_output 2>&1" &
-
else
cat <<End-of-message
*******************************************************************************
*******************************************************************************
** Please now run:
-** suspend_resume_test_slave_starter.sh
+** suspend_resume_test_slave_starter.sh
** from an external host to successfully complete this test.
**
** You probably will need to adapt the 'unicast' settings in
@@ -64,9 +61,9 @@ wait $PID_VSOMEIPD || FAIL=$(($FAIL+1))
echo ""
-# Check if both exited successfully
+# Check if both exited successfully
if [ $FAIL -eq 0 ]; then
exit 0
else
exit 1
-fi
+fi \ No newline at end of file
diff --git a/test/suspend_resume_tests/suspend_resume_test_service.cpp b/test/network_tests/suspend_resume_tests/suspend_resume_test_service.cpp
index 205a2ce..b2773c6 100644
--- a/test/suspend_resume_tests/suspend_resume_test_service.cpp
+++ b/test/network_tests/suspend_resume_tests/suspend_resume_test_service.cpp
@@ -201,7 +201,7 @@ TEST(suspend_resume_test, fast)
its_service.run_test();
}
-#ifndef _WIN32
+#if defined(__linux__) || defined(ANDROID)
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
@@ -210,4 +210,4 @@ int main(int argc, char** argv) {
return RUN_ALL_TESTS();
}
-#endif // _WIN32
+#endif
diff --git a/test/suspend_resume_tests/suspend_resume_test_slave_starter.sh b/test/network_tests/suspend_resume_tests/suspend_resume_test_slave_starter.sh
index 9cbf85d..9cbf85d 100755
--- a/test/suspend_resume_tests/suspend_resume_test_slave_starter.sh
+++ b/test/network_tests/suspend_resume_tests/suspend_resume_test_slave_starter.sh
diff --git a/test/offer_tests/offer_test_external_slave_sd_starter.sh b/test/offer_tests/offer_test_external_slave_sd_starter.sh
deleted file mode 100755
index 8e30086..0000000
--- a/test/offer_tests/offer_test_external_slave_sd_starter.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-# Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-FAIL=0
-# Rejecting offer for which there is already a remote offer:
-# * start daemon
-# * start application which offers service
-# * start daemon remotely
-# * start same application which offers the same service again remotely
-# -> should be rejected as there is already a service instance
-# running in the network
-
-export VSOMEIP_CONFIGURATION=offer_test_external_slave.json
-# start daemon
-../examples/routingmanagerd/./routingmanagerd &
-PID_VSOMEIPD=$!
-
-echo "calling availabiliy checker"
-
-./offer_test_service_availability_checker &
-
-PID_AVAILABILITY_CHECKER=$!
-
-echo "waiting for offer_test_service_availability_checker"
-
-# wait until the services on the remote node were started as well
-wait $PID_AVAILABILITY_CHECKER
-
-# kill the routing manager services
-kill $PID_VSOMEIPD
-
-./offer_test_external_sd_msg_sender $1 &
-
-
-
diff --git a/test/offer_tests/offer_test_service_availability_checker.cpp b/test/offer_tests/offer_test_service_availability_checker.cpp
deleted file mode 100644
index 3cef64f..0000000
--- a/test/offer_tests/offer_test_service_availability_checker.cpp
+++ /dev/null
@@ -1,118 +0,0 @@
-// Copyright (C) 2014-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
-// This Source Code Form is subject to the terms of the Mozilla Public
-// License, v. 2.0. If a copy of the MPL was not distributed with this
-// file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-#include <chrono>
-#include <condition_variable>
-#include <iomanip>
-#include <iostream>
-#include <sstream>
-#include <thread>
-#include <map>
-#include <algorithm>
-
-#include <gtest/gtest.h>
-
-#include <vsomeip/vsomeip.hpp>
-#include <vsomeip/internal/logger.hpp>
-
-#include "offer_test_globals.hpp"
-
-
-class offer_test_service_availability_checker {
-public:
- offer_test_service_availability_checker(struct offer_test::service_info _service_info) :
- service_info_(_service_info),
- app_(vsomeip::runtime::get()->create_application()),
- wait_until_registered_(true),
- wait_for_stop_(true),
- stop_thread_(std::bind(&offer_test_service_availability_checker::wait_for_stop, this)) {
- if (!app_->init()) {
- ADD_FAILURE() << "Couldn't initialize application";
- return;
- }
- app_->register_state_handler(
- std::bind(&offer_test_service_availability_checker::on_state, this,
- std::placeholders::_1));
-
- // register availability for all other services and request their event.
- app_->register_availability_handler(service_info_.service_id,
- service_info_.instance_id,
- std::bind(&offer_test_service_availability_checker::on_availability, this,
- std::placeholders::_1, std::placeholders::_2,
- std::placeholders::_3));
- app_->request_service(service_info_.service_id,
- service_info_.instance_id);
-
- app_->start();
- }
-
- ~offer_test_service_availability_checker() {
- stop_thread_.join();
- }
-
- void on_state(vsomeip::state_type_e _state) {
- VSOMEIP_INFO << "MY Application " << app_->get_name() << " is "
- << (_state == vsomeip::state_type_e::ST_REGISTERED ?
- "registered." : "deregistered.");
-
- if (_state == vsomeip::state_type_e::ST_REGISTERED) {
- std::lock_guard<std::mutex> its_lock(mutex_);
- wait_until_registered_ = false;
- condition_.notify_one();
- }
- }
-
- void on_availability(vsomeip::service_t _service,
- vsomeip::instance_t _instance, bool _is_available) {
- VSOMEIP_INFO << "MY Service [" << std::setw(4)
- << std::setfill('0') << std::hex << _service << "." << _instance
- << "] is " << (_is_available ? "available":"not available") << ".";
- std::lock_guard<std::mutex> its_lock(mutex_);
- if(_is_available) {
- wait_for_stop_ = false;
- stop_condition_.notify_one();
- }
- }
-
- void wait_for_stop() {
- VSOMEIP_INFO << " MY offer_test_service_availability_check wait_for_stop() ";
- std::unique_lock<std::mutex> its_lock(stop_mutex_);
- while (wait_for_stop_) {
- stop_condition_.wait(its_lock);
- }
- //VSOMEIP_INFO << "[" << std::setw(4) << std::setfill('0') << std::hex
- // << client_number_ << "] all services are available. Going down";
- VSOMEIP_INFO << " MY offer_test_service_availability_check is going down ";
- app_->clear_all_handler();
- app_->stop();
- }
-
-private:
- struct offer_test::service_info service_info_;
- std::shared_ptr<vsomeip::application> app_;
-
- bool wait_until_registered_;
- std::mutex mutex_;
- std::condition_variable condition_;
-
- bool wait_for_stop_;
- std::mutex stop_mutex_;
- std::condition_variable stop_condition_;
- std::thread stop_thread_;
-};
-
-TEST(someip_offer_test_external, wait_for_availability_and_exit)
-{
- offer_test_service_availability_checker its_sample(
- offer_test::service);
-}
-
-#ifndef _WIN32
-int main(int argc, char** argv)
-{
- ::testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
-}
-#endif
diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt
new file mode 100644
index 0000000..ed63f6f
--- /dev/null
+++ b/test/unit_tests/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Copyright (C) 2015-2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+project ("unit_tests_bin" LANGUAGES CXX)
+
+file (GLOB SRCS main.cpp **/*.cpp ../common/utility.cpp)
+
+set(THREADS_PREFER_PTHREAD_FLAG ON)
+
+find_package(Threads REQUIRED)
+find_package(Boost 1.55 COMPONENTS filesystem system REQUIRED)
+
+# ----------------------------------------------------------------------------
+# Executable and libraries to link
+# ----------------------------------------------------------------------------
+add_executable (${PROJECT_NAME} ${SRCS} )
+target_link_libraries (
+ ${PROJECT_NAME}
+ vsomeip3
+ vsomeip3-cfg
+ Threads::Threads
+ ${Boost_LIBRARIES}
+ ${DL_LIBRARY}
+ gtest
+)
+
+add_dependencies(build_unit_tests ${PROJECT_NAME})
diff --git a/test/unit_tests/main.cpp b/test/unit_tests/main.cpp
new file mode 100644
index 0000000..3f704af
--- /dev/null
+++ b/test/unit_tests/main.cpp
@@ -0,0 +1,16 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <gtest/gtest.h>
+
+int main(int argc, char **argv)
+{
+ ::testing::InitGoogleTest(&argc, argv);
+ // Test execution
+ int ret = RUN_ALL_TESTS();
+
+ // Exit
+ return ret;
+} \ No newline at end of file
diff --git a/test/unit_tests/security_tests/ut_check_credentials.cpp b/test/unit_tests/security_tests/ut_check_credentials.cpp
new file mode 100644
index 0000000..7696892
--- /dev/null
+++ b/test/unit_tests/security_tests/ut_check_credentials.cpp
@@ -0,0 +1,122 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <gtest/gtest.h>
+
+#include "../../common/utility.hpp"
+
+namespace {
+ vsomeip_v3::client_t client = 1;
+ vsomeip_v3::uid_t invalid_uid = 1;
+ vsomeip_v3::uid_t valid_uid = 4004201;
+ vsomeip_v3::gid_t invalid_gid = 1;
+ vsomeip_v3::gid_t valid_gid = 4004200;
+}
+
+TEST(check_credentials_test, check_no_policies_loaded) {
+
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+
+ //no policies loaded -> check credentials will return false independent of the uid or gid
+ ASSERT_TRUE(its_manager->is_audit());
+ ASSERT_FALSE(its_manager->is_enabled());
+
+ // create security clients
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+ EXPECT_TRUE(its_manager->check_credentials(client, &its_sec_client_invalid));
+}
+
+TEST(check_credentials_test, check_policies_loaded) {
+
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(
+ new vsomeip_v3::policy_manager_impl);
+
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+
+ utility::read_data(utility::get_all_files_in_dir(
+ utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+
+ for (const auto& e : policy_elements)
+ its_manager->load(e, false);
+
+ //check if the load worked
+ ASSERT_TRUE(policy_elements.size() > 0);
+ ASSERT_TRUE(its_failed.size() == 0);
+
+ //the check_credentials_ and the policy_enabled_ variables should be set to true
+ ASSERT_FALSE(its_manager->is_audit());
+ ASSERT_TRUE(its_manager->is_enabled());
+
+ // create security clients
+ vsomeip_sec_client_t its_sec_client_valid = utility::create_uds_client(valid_uid, valid_gid);
+
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ //invalid uid and gid -> the check must return false
+ EXPECT_FALSE(its_manager->check_credentials(client, &its_sec_client_invalid));
+
+ //invalid uid and valid gid -> the check must return false
+ EXPECT_FALSE(its_manager->check_credentials(client, &its_sec_client_invalid));
+
+ //valid uid and invalid gid -> the check must return false
+ EXPECT_FALSE(its_manager->check_credentials(client, &its_sec_client_invalid));
+
+ //valid uid and gid -> the check must return true
+ EXPECT_TRUE(its_manager->check_credentials(client, &its_sec_client_valid));
+}
+
+// check_credentials with policies loaded but in audit mode
+// vsomeip's security implementation can be put in a so called 'Audit Mode' where
+// all security violations will be logged but allowed.
+// To activate the 'Audit Mode' the 'security' object has to be included in the
+// json file but the 'check_credentials' switch has to be set to false.
+TEST(check_credentials_test, check_policies_loaded_in_audit_mode) {
+
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(
+ new vsomeip_v3::policy_manager_impl);
+
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(
+ utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+
+ //the check_credentials_ variable is force to be false
+ utility::force_check_credentials(policy_elements, "false");
+
+ for (const auto& e : policy_elements)
+ its_manager->load(e, false);
+
+ //check if the load worked
+ ASSERT_TRUE(policy_elements.size() > 0);
+ ASSERT_TRUE(its_failed.size() == 0);
+
+ //expect check_credentials_ false and the policy_enabled_ true
+ ASSERT_TRUE(its_manager->is_audit());
+ ASSERT_TRUE(its_manager->is_enabled());
+
+ // create security clients
+ vsomeip_sec_client_t its_sec_client_valid = utility::create_uds_client(valid_uid, valid_gid);
+ vsomeip_sec_client_t its_sec_client_invalid_valid = utility::create_uds_client(invalid_uid, valid_gid);
+ vsomeip_sec_client_t its_sec_client_valid_invalid = utility::create_uds_client(valid_uid, invalid_gid);
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ // is expected check_credentials method always return true
+ //invalid uid and gid
+ EXPECT_TRUE(its_manager->check_credentials(client, &its_sec_client_invalid));
+
+ //invalid uid and valid gid
+ EXPECT_TRUE(its_manager->check_credentials(client, &its_sec_client_invalid_valid));
+
+ //valid uid and invalid gid
+ EXPECT_TRUE(its_manager->check_credentials(client, &its_sec_client_valid_invalid));
+
+ //valid uid and gid
+ EXPECT_TRUE(its_manager->check_credentials(client, &its_sec_client_valid));
+} \ No newline at end of file
diff --git a/test/unit_tests/security_tests/ut_check_routing_credentials.cpp b/test/unit_tests/security_tests/ut_check_routing_credentials.cpp
new file mode 100644
index 0000000..ef9040d
--- /dev/null
+++ b/test/unit_tests/security_tests/ut_check_routing_credentials.cpp
@@ -0,0 +1,85 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <memory>
+#include <gtest/gtest.h>
+#include "../../common/utility.hpp"
+
+namespace {
+vsomeip_v3::uid_t invalid_uid = 1;
+vsomeip_v3::uid_t valid_uid = 4003017;
+vsomeip_v3::gid_t invalid_gid = 1;
+vsomeip_v3::gid_t valid_gid = 5002;
+}
+
+TEST(check_routing_credentials, check_policies_loaded) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+
+ for (const auto& e : policy_elements)
+ security->load(e, false);
+
+ //check if the load worked
+ ASSERT_TRUE(policy_elements.size() > 0);
+ ASSERT_TRUE(its_failed.size() == 0);
+
+ // create security clients
+ vsomeip_sec_client_t its_sec_client_valid = utility::create_uds_client(valid_uid, valid_gid);
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+ vsomeip_sec_client_t its_sec_client_valid_uid_invalid_gid = utility::create_uds_client(valid_uid, invalid_gid);
+ vsomeip_sec_client_t its_sec_client_invalid_uid_valid_gid = utility::create_uds_client(invalid_uid, valid_gid);
+
+ //valid uid and gid -> the check must return true
+ EXPECT_TRUE(security->check_routing_credentials(&its_sec_client_valid));
+
+ //invalid gid and valid gid -> the check must return false
+ EXPECT_FALSE(security->check_routing_credentials(&its_sec_client_valid_uid_invalid_gid));
+
+ //invalid uid and valid gid -> the check must return false
+ EXPECT_FALSE(security->check_routing_credentials(&its_sec_client_invalid_uid_valid_gid));
+
+ //invalid uid and gid -> the check must return false
+ EXPECT_FALSE(security->check_routing_credentials(&its_sec_client_invalid));
+}
+
+// check_routing_credentials with policies loaded in lazy mode
+// vsomeip's security implementation can be put in a so called 'Audit Mode' where
+// all security violations will be logged but allowed.
+// To activate the 'Audit Mode' the 'security' object has to be included in the
+// json file but the 'check_routing_credentials' switch has to be set to false.
+TEST(check_routing_credentials, check_policies_loaded_lazy_load) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+
+ // load policies in lazy mode so that check_routing_credentials is false
+ for (const auto& e : policy_elements)
+ security->load(e, true);
+
+ //check if the load worked
+ ASSERT_TRUE(policy_elements.size() > 0);
+ ASSERT_TRUE(its_failed.size() == 0);
+
+ // create security clients
+ vsomeip_sec_client_t its_sec_client_valid = utility::create_uds_client(valid_uid, valid_gid);
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+ vsomeip_sec_client_t its_sec_client_valid_uid_invalid_gid = utility::create_uds_client(valid_uid, invalid_gid);
+ vsomeip_sec_client_t its_sec_client_invalid_uid_valid_gid = utility::create_uds_client(invalid_uid, valid_gid);
+
+ //expect check_routing_credentials_ false so method always returns true
+ EXPECT_TRUE(security->check_routing_credentials(&its_sec_client_valid));
+ EXPECT_TRUE(security->check_routing_credentials(&its_sec_client_valid_uid_invalid_gid));
+ EXPECT_TRUE(security->check_routing_credentials(&its_sec_client_invalid_uid_valid_gid));
+ EXPECT_TRUE(security->check_routing_credentials(&its_sec_client_invalid));
+}
diff --git a/test/unit_tests/security_tests/ut_get_client_to_sec_client_mapping.cpp b/test/unit_tests/security_tests/ut_get_client_to_sec_client_mapping.cpp
new file mode 100644
index 0000000..efcb826
--- /dev/null
+++ b/test/unit_tests/security_tests/ut_get_client_to_sec_client_mapping.cpp
@@ -0,0 +1,62 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <memory>
+#include <gtest/gtest.h>
+#include "../../common/utility.hpp"
+
+namespace {
+vsomeip_v3::client_t client = 10;
+vsomeip_v3::client_t alternate_client = 11;
+vsomeip_v3::uid_t uid_1 = 4003030;
+vsomeip_v3::gid_t gid_1 = 4003032;
+vsomeip_v3::uid_t uid_2 = 1;
+vsomeip_v3::gid_t gid_2 = 1;
+vsomeip_v3::uid_t uid_3 = 2;
+vsomeip_v3::gid_t gid_3 = 2;
+}
+
+TEST(get_client_to_sec_client_mapping, test)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client_uid_gid_1 = utility::create_uds_client(uid_1, gid_1);
+ vsomeip_sec_client_t its_sec_client_uid_gid_2 = utility::create_uds_client(uid_2, gid_2);
+ vsomeip_sec_client_t its_sec_client_uid_gid_3 = utility::create_uds_client(uid_3, gid_3);
+
+ // Client and uid_gid should not be stored yet.
+ EXPECT_FALSE(security->get_client_to_sec_client_mapping(client, its_sec_client_uid_gid_1));
+
+ // Add client and uid_gid mappings.
+ security->store_client_to_sec_client_mapping(client, &its_sec_client_uid_gid_1);
+
+ // uid_gid and uid_gid_2 should not be equal.
+ EXPECT_NE(its_sec_client_uid_gid_1.client.uds_client.group, its_sec_client_uid_gid_2.client.uds_client.group);
+ EXPECT_NE(its_sec_client_uid_gid_1.client.uds_client.user, its_sec_client_uid_gid_2.client.uds_client.user);
+
+ // Client and uid_gid mapping should be returned.
+ EXPECT_TRUE(security->get_client_to_sec_client_mapping(client, its_sec_client_uid_gid_2));
+
+ // uid_gid and uid_gid_2 should be equal if get was successful.
+ EXPECT_EQ(its_sec_client_uid_gid_1.client.uds_client.group, its_sec_client_uid_gid_2.client.uds_client.group);
+ EXPECT_EQ(its_sec_client_uid_gid_1.client.uds_client.user, its_sec_client_uid_gid_2.client.uds_client.user);
+
+ // Alternate_client is not stored, this should return false.
+ EXPECT_FALSE(security->get_client_to_sec_client_mapping(alternate_client, its_sec_client_uid_gid_1));
+
+ // Add alternate client and uid_gid mappings.
+ security->store_client_to_sec_client_mapping(alternate_client, &its_sec_client_uid_gid_1);
+
+ // uid_gid and uid_gid_3 should not be equal.
+ EXPECT_NE(its_sec_client_uid_gid_1.client.uds_client.group, its_sec_client_uid_gid_3.client.uds_client.group);
+ EXPECT_NE(its_sec_client_uid_gid_1.client.uds_client.user, its_sec_client_uid_gid_3.client.uds_client.user);
+
+ // Alternate client and uid_gid mapping should be returned.
+ EXPECT_TRUE(security->get_client_to_sec_client_mapping(alternate_client, its_sec_client_uid_gid_3));
+
+ // uid_gid and uid_gid_3 should be equal if get was successful.
+ EXPECT_EQ(its_sec_client_uid_gid_1.client.uds_client.group, its_sec_client_uid_gid_3.client.uds_client.group);
+ EXPECT_EQ(its_sec_client_uid_gid_1.client.uds_client.user, its_sec_client_uid_gid_3.client.uds_client.user);
+ }
diff --git a/test/unit_tests/security_tests/ut_get_clients.cpp b/test/unit_tests/security_tests/ut_get_clients.cpp
new file mode 100644
index 0000000..093200c
--- /dev/null
+++ b/test/unit_tests/security_tests/ut_get_clients.cpp
@@ -0,0 +1,56 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <memory>
+#include <gtest/gtest.h>
+#include "../../common/utility.hpp"
+
+namespace {
+std::unordered_set<vsomeip_v3::client_t> clients;
+std::unordered_set<vsomeip_v3::client_t> local_clients;
+vsomeip_v3::client_t client_1 = 10;
+vsomeip_v3::client_t client_2 = 11;
+vsomeip_v3::client_t client_3 = 12;
+vsomeip_v3::uid_t uid = 4003030;
+vsomeip_v3::gid_t gid = 4003032;
+}
+
+TEST(get_clients, test)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client_uid_gid = utility::create_uds_client(uid, gid);
+
+ // Local_clients has now one client(10).
+ local_clients.insert(client_1);
+
+ // Clients should be empty.
+ EXPECT_TRUE(clients.empty());
+
+ // Should do nothing because there is not a client to uid_gid mapping yet.
+ security->get_clients(uid, gid, clients);
+
+ // clients should still be empty.
+ EXPECT_TRUE(clients.empty());
+
+ // Stores client to uid_gid_mapping.
+ security->store_client_to_sec_client_mapping(client_1, &its_sec_client_uid_gid);
+ security->get_clients(uid, gid, clients);
+
+ // Clients and local_clients should be equal and have the same client(10).
+ EXPECT_EQ(clients, local_clients);
+
+ // Repeat with two more clients.
+ security->store_client_to_sec_client_mapping(client_2, &its_sec_client_uid_gid);
+ security->store_client_to_sec_client_mapping(client_3, &its_sec_client_uid_gid);
+
+ local_clients.insert(client_2);
+ local_clients.insert(client_3);
+
+ security->get_clients(uid, gid, clients);
+
+ // Clients and local_clients should be equal and have the same 3 clients(10,11,12).
+ EXPECT_EQ(clients, local_clients);
+}
diff --git a/test/unit_tests/security_tests/ut_get_sec_client_to_clients_mapping.cpp b/test/unit_tests/security_tests/ut_get_sec_client_to_clients_mapping.cpp
new file mode 100644
index 0000000..96ae416
--- /dev/null
+++ b/test/unit_tests/security_tests/ut_get_sec_client_to_clients_mapping.cpp
@@ -0,0 +1,61 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <memory>
+#include <gtest/gtest.h>
+#include "../../common/utility.hpp"
+
+namespace{
+vsomeip_v3::client_t client = 10;
+vsomeip_v3::uid_t uid_1 = 4003030;
+vsomeip_v3::gid_t gid_1 = 4003032;
+vsomeip_v3::uid_t uid_2 = 1;
+vsomeip_v3::gid_t gid_2 = 1;
+}
+
+TEST(get_sec_client_to_clients_mapping, test)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ std::set<vsomeip_v3::client_t> clients_1;
+ clients_1.insert(client);
+
+ vsomeip_sec_client_t its_sec_client_uid_gid = utility::create_uds_client(uid_1, gid_1);
+ vsomeip_sec_client_t its_sec_client_uid_gid_alternate = utility::create_uds_client(uid_2, gid_2);
+
+ // Client and uid_gid should not be stored yet.
+ EXPECT_FALSE(security->get_sec_client_to_clients_mapping(&its_sec_client_uid_gid, clients_1));
+
+ // Add client and uid_gid mappings.
+ security->store_sec_client_to_client_mapping(&its_sec_client_uid_gid, client);
+
+ std::set<vsomeip_v3::client_t> clients_2;
+
+ // Clients and clients_2 should not be equal.
+ EXPECT_NE(clients_1, clients_2);
+
+ // Client and uid_gid mapping should be returned.
+ EXPECT_TRUE(security->get_sec_client_to_clients_mapping(&its_sec_client_uid_gid, clients_2));
+
+ // Clients and clients_2 should be equal if get was successful.
+ EXPECT_EQ(clients_1, clients_2);
+
+ // Alternate_uid_gid is not stored, this should return false.
+ EXPECT_FALSE(security->get_sec_client_to_clients_mapping(&its_sec_client_uid_gid_alternate, clients_1));
+
+ // Add alternate client and uid_gid mappings.
+ security->store_sec_client_to_client_mapping(&its_sec_client_uid_gid_alternate, client);
+
+ std::set<vsomeip_v3::client_t> clients_3;
+
+ // Clients and clients_3 should not be equal.
+ EXPECT_NE(clients_1, clients_3);
+
+ // Alternate client and uid_gid mapping should be returned.
+ EXPECT_TRUE(security->get_sec_client_to_clients_mapping(&its_sec_client_uid_gid_alternate, clients_3));
+
+ // Clients and clients_3 should be equal if get was successful.
+ EXPECT_EQ(clients_1, clients_3);
+}
diff --git a/test/unit_tests/security_tests/ut_is_client_allowed.cpp b/test/unit_tests/security_tests/ut_is_client_allowed.cpp
new file mode 100644
index 0000000..ab65153
--- /dev/null
+++ b/test/unit_tests/security_tests/ut_is_client_allowed.cpp
@@ -0,0 +1,149 @@
+#include <memory>
+#include "gtest/gtest.h"
+#include "../../common/utility.hpp"
+
+namespace {
+ vsomeip_v3::uid_t uid_1 = 4003031;
+ vsomeip_v3::gid_t gid_1 = 4003031;
+ vsomeip_v3::service_t service_1 = 0xf913;
+
+ vsomeip_v3::service_t service_2 = 0x41; // service not defined in policies
+
+ vsomeip_v3::instance_t instance = 0x03;
+ vsomeip_v3::instance_t instance_2 = 0x04;
+ vsomeip_v3::method_t method = 0x04;
+ vsomeip_v3::method_t method_2 = 0x05;
+
+ vsomeip_v3::gid_t invalid_uid = 1;
+ vsomeip_v3::gid_t invalid_gid = 1;
+ vsomeip_v3::uid_t ANY_UID = 0xFFFFFFFF;
+ vsomeip_v3::gid_t ANY_GID = 0xFFFFFFFF;
+
+ vsomeip_v3::gid_t deny_uid = 9999;
+ vsomeip_v3::gid_t deny_gid = 9999;
+ vsomeip_v3::service_t deny_service = 0x40;
+}
+
+TEST(is_client_allowed_test, check_no_policies_loaded) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+
+ //no policies loaded -> is_client_allowed must return true
+ ASSERT_FALSE(its_manager->is_enabled());
+
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client_invalid, service_1, instance, method));
+}
+
+TEST(is_client_allowed_test, check_policies_loaded) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+
+ //check if the load worked
+ ASSERT_TRUE(policy_elements.size() > 0);
+ ASSERT_TRUE(its_failed.size() == 0);
+
+ for (const auto& e : policy_elements) {
+ its_manager->load(e, false);
+ }
+
+ // check if the policies are loaded and check_credentials_ variable are true
+ ASSERT_TRUE(its_manager->is_enabled());
+ ASSERT_FALSE(its_manager->is_audit());
+
+ // create security clients
+ vsomeip_sec_client_t its_sec_client = utility::create_uds_client(uid_1, gid_1);
+ vsomeip_sec_client_t its_sec_client_invalid_uid = utility::create_uds_client(invalid_uid, gid_1);
+ vsomeip_sec_client_t its_sec_client_invalid_gid = utility::create_uds_client(uid_1, invalid_gid);
+ vsomeip_sec_client_t its_sec_client_any = utility::create_uds_client(ANY_UID, ANY_GID);
+ vsomeip_sec_client_t its_sec_client_deny = utility::create_uds_client(deny_uid, deny_gid);
+
+ //valid credential for valid service / istance / method
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client, service_1, instance, method));
+
+ // test is_client_allowed_cache_, request with the same credentials and service / instance / method
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client, service_1, instance, method));
+
+ // test is_client_allowed_cache_, request with the same credentials and service but with a different instance or method
+ // is_client_allowed return true because it's define ANY_INSTANCE and ANY_METHOD in the policy
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client, service_1, instance_2, method));
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client, service_1, instance, method_2));
+
+ //invalid credential for the service / istance / method
+ EXPECT_FALSE(its_manager->is_client_allowed(&its_sec_client_invalid_uid, service_1, instance, method));
+ EXPECT_FALSE(its_manager->is_client_allowed(&its_sec_client_invalid_gid, service_1, instance, method));
+
+ //ANY_UID and ANY_GID
+ EXPECT_FALSE(its_manager->is_client_allowed(&its_sec_client_any, service_1, instance, method));
+
+ // test deny client
+ // deny client with credentials for the service
+ EXPECT_FALSE(its_manager->is_client_allowed(&its_sec_client_deny, deny_service, instance, method));
+ // credencials exists in deny policy, but not for that service
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client_deny, service_2, instance, method));
+}
+
+
+// is_client_allowed with policies loaded but in audit mode
+// vsomeip's security implementation can be put in a so called 'Audit Mode' where
+// all security violations will be logged but allowed.
+// To activate the 'Audit Mode' the 'security' object has to be included in the
+// json file but the 'check_credentials' switch has to be set to false.
+ TEST(is_client_allowed_test, check_policies_loaded_in_audit_mode) {
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> its_manager(new vsomeip_v3::policy_manager_impl);
+
+ //force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+
+ //check if the load worked
+ ASSERT_TRUE(policy_elements.size() > 0);
+ ASSERT_TRUE(its_failed.size() == 0);
+
+ utility::force_check_credentials(policy_elements, "false");
+
+ for (const auto& e : policy_elements) {
+ its_manager->load(e, false);
+ }
+
+ // check if the policies are loaded and check_credentials_ variable are false
+ ASSERT_TRUE(its_manager->is_enabled());
+ ASSERT_TRUE(its_manager->is_audit());
+
+ // create security clients
+ vsomeip_sec_client_t its_sec_client = utility::create_uds_client(uid_1, gid_1);
+ vsomeip_sec_client_t its_sec_client_invalid_uid = utility::create_uds_client(invalid_uid, gid_1);
+ vsomeip_sec_client_t its_sec_client_invalid_gid = utility::create_uds_client(uid_1, invalid_gid);
+ vsomeip_sec_client_t its_sec_client_any = utility::create_uds_client(ANY_UID, ANY_GID);
+ vsomeip_sec_client_t its_sec_client_deny = utility::create_uds_client(deny_uid, deny_gid);
+
+ // is expected is_client_allowed method always returns true
+ // valid credential for valid service / istance / method
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client, service_1, instance, method));
+
+ // test is_client_allowed_cache_, request with the same credentials and service / instance / method
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client, service_1, instance, method));
+
+ // test is_client_allowed_cache_, request with the same credentials and service but with a different instance or method
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client, service_1, instance_2, method));
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client, service_1, instance, method_2));
+
+ // invalid credential for the service / istance / method
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client_invalid_uid, service_1, instance, method));
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client_invalid_gid, service_1, instance, method));
+
+ // ANY_UID and ANY_GID
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client_any, service_1, instance, method));
+
+ // test deny client
+ // deny client with credentials for the service
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client_deny, deny_service, instance, method));
+ // credencials exists in deny policy, but not for that service
+ EXPECT_TRUE(its_manager->is_client_allowed(&its_sec_client_deny, service_2, instance, method));
+} \ No newline at end of file
diff --git a/test/unit_tests/security_tests/ut_is_offer_allowed.cpp b/test/unit_tests/security_tests/ut_is_offer_allowed.cpp
new file mode 100644
index 0000000..f60d4ed
--- /dev/null
+++ b/test/unit_tests/security_tests/ut_is_offer_allowed.cpp
@@ -0,0 +1,153 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <memory>
+#include <gtest/gtest.h>
+#include "../../common/utility.hpp"
+namespace{
+
+vsomeip_v3::uid_t uid_1 = 4003016;
+vsomeip_v3::gid_t gid_1 = 4003016;
+vsomeip_v3::service_t service_1 = 0xf8c2;
+
+vsomeip_v3::service_t deny_service = 0x40;
+
+vsomeip_v3::instance_t instance = 0x03;
+vsomeip_v3::instance_t any_instance = 0xfffe;
+
+vsomeip_v3::uid_t invalid_uid = 1;
+vsomeip_v3::gid_t invalid_gid = 1;
+vsomeip_v3::uid_t ANY_UID = 0xFFFFFFFF;
+vsomeip_v3::gid_t ANY_GID = 0xFFFFFFFF;
+
+vsomeip_v3::gid_t deny_uid = 9000;
+vsomeip_v3::gid_t deny_gid = 9000;
+}
+
+TEST(is_offer_allowed, check_no_policies_loaded)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ ASSERT_FALSE(security->is_enabled());
+
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+
+ // no policies loaded -> is_offer_allowed must return true
+ EXPECT_TRUE(security->is_offer_allowed(&its_sec_client_invalid, service_1, instance));
+}
+
+TEST(is_offer_allowed, check_policies_loaded)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+
+ // check if the load worked
+ ASSERT_TRUE(policy_elements.size() > 0);
+ ASSERT_TRUE(its_failed.size() == 0);
+
+ for (const auto &e : policy_elements)
+ {
+ security->load(e, false);
+ }
+
+ // check if the policies are loaded and check_credentials_ variable are true
+ ASSERT_TRUE(security->is_enabled());
+ ASSERT_FALSE(security->is_audit());
+
+ // create security clients
+ vsomeip_sec_client_t its_sec_client_valid = utility::create_uds_client(uid_1, gid_1);
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+ vsomeip_sec_client_t its_sec_client_valid_uid_invalid_gid = utility::create_uds_client(uid_1, invalid_gid);
+ vsomeip_sec_client_t its_sec_client_invalid_uid_valid_gid = utility::create_uds_client(invalid_uid, gid_1);
+ vsomeip_sec_client_t its_sec_client_deny = utility::create_uds_client(deny_uid, deny_gid);
+ vsomeip_sec_client_t its_sec_client_any = utility::create_uds_client(ANY_UID, ANY_GID);
+
+ // valid credential for valid service / instance
+ EXPECT_TRUE(security->is_offer_allowed(&its_sec_client_valid, service_1, instance));
+
+ // request with the same credentials and service but with a different instance
+ // is_offer_allowed return true because it's define ANY_INSTANCE in the policy
+ EXPECT_TRUE(security->is_offer_allowed(&its_sec_client_valid, service_1, any_instance));
+
+ // invalid credential for the service / instance
+ EXPECT_FALSE(security->is_offer_allowed(&its_sec_client_invalid_uid_valid_gid, service_1, instance));
+ EXPECT_FALSE(security->is_offer_allowed(&its_sec_client_valid_uid_invalid_gid, service_1, instance));
+ EXPECT_FALSE(security->is_offer_allowed(&its_sec_client_invalid, service_1, instance));
+
+ // test deny offer
+ // deny client with credentials for the service
+ EXPECT_FALSE(security->is_offer_allowed(&its_sec_client_deny, deny_service, instance));
+ // credentials exists in deny policy, but not for that service
+ EXPECT_TRUE(security->is_offer_allowed(&its_sec_client_deny, service_1, instance));
+
+ // ANY_UID and ANY_GID
+ EXPECT_FALSE(security->is_offer_allowed(&its_sec_client_any, service_1, instance));
+}
+
+// is_offer_allowed with policies loaded but in audit mode
+// vsomeip's security implementation can be put in a so called 'Audit Mode' where
+// all security violations will be logged but allowed.
+// To activate the 'Audit Mode' the 'security' object has to be included in the
+// json file but the 'check_credentials' switch has to be set to false.
+
+TEST(is_offer_allowed, check_policies_loaded_in_audit_mode)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // create security clients
+ vsomeip_sec_client_t its_sec_client_valid = utility::create_uds_client(uid_1, gid_1);
+ vsomeip_sec_client_t its_sec_client_invalid = utility::create_uds_client(invalid_uid, invalid_gid);
+ vsomeip_sec_client_t its_sec_client_valid_uid_invalid_gid = utility::create_uds_client(uid_1, invalid_gid);
+ vsomeip_sec_client_t its_sec_client_invalid_uid_valid_gid = utility::create_uds_client(invalid_uid, gid_1);
+ vsomeip_sec_client_t its_sec_client_deny = utility::create_uds_client(deny_uid, deny_gid);
+ vsomeip_sec_client_t its_sec_client_any = utility::create_uds_client(ANY_UID, ANY_GID);
+
+ // force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip), policy_elements, its_failed);
+
+ // check if the load worked
+ ASSERT_TRUE(policy_elements.size() > 0);
+ ASSERT_TRUE(its_failed.size() == 0);
+
+ utility::force_check_credentials(policy_elements, "false");
+
+ for (const auto &e : policy_elements)
+ {
+ security->load(e, false);
+ }
+
+ // check if the policies are loaded and check_credentials_ variable are true
+ ASSERT_TRUE(security->is_enabled());
+ ASSERT_TRUE(security->is_audit());
+
+ // valid credential for valid service / instance
+ EXPECT_TRUE(security->is_offer_allowed(&its_sec_client_valid, service_1, instance));
+
+ // request with the same credentials and service but with a different instance
+ // is_offer_allowed return true because it's define ANY_INSTANCE in the policy
+ EXPECT_TRUE(security->is_offer_allowed(&its_sec_client_valid, service_1, any_instance));
+
+ // invalid credential for the service / instance
+ EXPECT_TRUE(security->is_offer_allowed(&its_sec_client_invalid_uid_valid_gid, service_1, instance));
+ EXPECT_TRUE(security->is_offer_allowed(&its_sec_client_valid_uid_invalid_gid, service_1, instance));
+ EXPECT_TRUE(security->is_offer_allowed(&its_sec_client_invalid, service_1, instance));
+
+ // test deny offer
+ // deny client with credentials for the service
+ EXPECT_TRUE(security->is_offer_allowed(&its_sec_client_deny, deny_service, instance));
+ // credentials exists in deny policy, but not for that service
+ EXPECT_TRUE(security->is_offer_allowed(&its_sec_client_deny, service_1, instance));
+
+ // ANY_UID and ANY_GID
+ EXPECT_TRUE(security->is_offer_allowed(&its_sec_client_any, service_1, instance));
+}
diff --git a/test/unit_tests/security_tests/ut_is_policy_update_allowed.cpp b/test/unit_tests/security_tests/ut_is_policy_update_allowed.cpp
new file mode 100644
index 0000000..20c6ba5
--- /dev/null
+++ b/test/unit_tests/security_tests/ut_is_policy_update_allowed.cpp
@@ -0,0 +1,221 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <memory>
+#include <iostream>
+#include <gtest/gtest.h>
+#include "../../common/utility.hpp"
+
+namespace {
+std::string configuration_file { "/vsomeip/0_0/vsomeip_security.json" };
+
+vsomeip_v3::uid_t valid_uid { 0 };
+vsomeip_v3::uid_t invalid_uid { 1234567 };
+
+vsomeip_v3::gid_t valid_gid { 0 };
+
+vsomeip_v3::service_t valid_service { 0xf913 };
+vsomeip_v3::service_t invalid_service { 0x41 };
+}
+
+TEST(is_policy_update_allowed, check_whitelist_disabled)
+{
+ // Test object.
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Get some configurations.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Load the configuration into the security.
+ ASSERT_GT(policy_elements.size(), 0) << "Failed to fetch policy elements!";
+ const bool check_whitelist { false };
+ utility::add_security_whitelist(policy_elements.at(0), check_whitelist);
+ security->load(policy_elements.at(0), false);
+
+ // Create policy credentials.
+ boost::icl::discrete_interval<uid_t> its_uids(valid_uid, valid_uid);
+ boost::icl::interval_set<gid_t> its_gids;
+ its_gids.insert(boost::icl::interval<gid_t>::closed(valid_gid, valid_gid));
+
+ // Create a policy.
+ std::shared_ptr<vsomeip::policy> policy(std::make_shared<vsomeip::policy>());
+ policy->credentials_ += std::make_pair(its_uids, its_gids);
+ policy->allow_who_ = true;
+ policy->allow_what_ = true;
+
+ // NO REQUESTS IN POLICY ---------------------------------------------------------------------//
+
+ EXPECT_TRUE(security->is_policy_update_allowed(invalid_uid, policy))
+ << "Failed to allow policy update with invalid user id when check_whitelist is "
+ "disabled!";
+
+ EXPECT_TRUE(security->is_policy_update_allowed(valid_uid, policy))
+ << "Failed to allow policy update with valid user id when check_whitelist is "
+ "disabled!";
+
+ // ONLY VALID REQUESTS IN POLICY -------------------------------------------------------------//
+
+ boost::icl::discrete_interval<vsomeip::instance_t> its_instances(0x1, 0x2);
+ boost::icl::interval_set<vsomeip::method_t> its_methods;
+ its_methods.insert(boost::icl::interval<vsomeip::method_t>::closed(0x01, 0x2));
+ boost::icl::interval_map<vsomeip::instance_t, boost::icl::interval_set<vsomeip::method_t>>
+ its_instances_methods;
+ its_instances_methods += std::make_pair(its_instances, its_methods);
+
+ // Add a valid request to the policy.
+ policy->requests_ += std::make_pair(
+ boost::icl::discrete_interval<vsomeip::service_t>(
+ valid_service, valid_service, boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ EXPECT_TRUE(security->is_policy_update_allowed(invalid_uid, policy))
+ << "Failed to allow policy update with invalid user id and valid request when "
+ "check_whitelist is disabled!";
+
+ EXPECT_TRUE(security->is_policy_update_allowed(valid_uid, policy))
+ << "Failed to allow policy update with valid user id and valid request when "
+ "check_whitelist is disabled!";
+
+ // INVALID REQUESTS IN POLICY ----------------------------------------------------------------//
+
+ // Add a invalid request to the policy.
+ policy->requests_ += std::make_pair(
+ boost::icl::discrete_interval<vsomeip::service_t>(
+ invalid_service, invalid_service, boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ EXPECT_TRUE(security->is_policy_update_allowed(invalid_uid, policy))
+ << "Failed to allow policy update with invalid user id and invalid request when "
+ "check_whitelist is disabled!";
+
+ EXPECT_TRUE(security->is_policy_update_allowed(valid_uid, policy))
+ << "Failed to allow policy update with valid user id and invalid request when "
+ "check_whitelist is disabled!";
+}
+
+TEST(is_policy_update_allowed, check_whitelist_enabled)
+{
+ // Test object.
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Get some configurations.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Load the policy into the security.
+ ASSERT_GT(policy_elements.size(), 0) << "Failed to fetch policy elements!";
+ const bool check_whitelist { true };
+ utility::add_security_whitelist(policy_elements.at(0), check_whitelist);
+ security->load(policy_elements.at(0), false);
+
+ // Create policy credentials.
+ boost::icl::discrete_interval<uid_t> its_uids(valid_uid, valid_uid);
+ boost::icl::interval_set<gid_t> its_gids;
+ its_gids.insert(boost::icl::interval<gid_t>::closed(valid_gid, valid_gid));
+
+ // Create a policy.
+ std::shared_ptr<vsomeip::policy> policy(std::make_shared<vsomeip::policy>());
+ policy->credentials_ += std::make_pair(its_uids, its_gids);
+ policy->allow_who_ = true;
+ policy->allow_what_ = true;
+
+ // NO REQUESTS IN POLICY ---------------------------------------------------------------------//
+
+ EXPECT_FALSE(security->is_policy_update_allowed(invalid_uid, policy))
+ << "Failed to deny policy update with invalid user id!";
+
+ EXPECT_TRUE(security->is_policy_update_allowed(valid_uid, policy))
+ << "Failed to allow policy update with valid user id!";
+
+ // ONLY VALID REQUESTS IN POLICY -------------------------------------------------------------//
+
+ boost::icl::discrete_interval<vsomeip::instance_t> its_instances(0x1, 0x2);
+ boost::icl::interval_set<vsomeip::method_t> its_methods;
+ its_methods.insert(boost::icl::interval<vsomeip::method_t>::closed(0x01, 0x2));
+ boost::icl::interval_map<vsomeip::instance_t, boost::icl::interval_set<vsomeip::method_t>>
+ its_instances_methods;
+ its_instances_methods += std::make_pair(its_instances, its_methods);
+
+ // Add valid request to the policy.
+ policy->requests_ += std::make_pair(
+ boost::icl::discrete_interval<vsomeip::service_t>(
+ valid_service, valid_service, boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ EXPECT_FALSE(security->is_policy_update_allowed(invalid_uid, policy))
+ << "Failed to deny policy update with invalid user id and valid request!";
+
+ EXPECT_TRUE(security->is_policy_update_allowed(valid_uid, policy))
+ << "Failed to allow policy update with valid user id and valid request!";
+
+ // INVALID REQUESTS IN POLICY ----------------------------------------------------------------//
+
+ // Add invalid request to the policy.
+ policy->requests_ += std::make_pair(
+ boost::icl::discrete_interval<vsomeip::service_t>(
+ invalid_service, invalid_service, boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ EXPECT_FALSE(security->is_policy_update_allowed(invalid_uid, policy))
+ << "Failed to deny policy update with invalid user id and invalid request!";
+
+ EXPECT_FALSE(security->is_policy_update_allowed(valid_uid, policy))
+ << "Failed to deny policy update with valid user id and invalid request!";
+}
+
+TEST(is_policy_update_allowed, null_policy)
+{
+ // Test objects.
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+ std::shared_ptr<vsomeip_v3::policy> policy = nullptr;
+
+ // NO POLICIES LOADED ------------------------------------------------------------------------//
+
+ ASSERT_EXIT((security->is_policy_update_allowed(0, policy), exit(0)),
+ testing::ExitedWithCode(0), ".*")
+ << "Could not handle a nullptr when no policies are loaded!";
+
+ EXPECT_TRUE(security->is_policy_update_allowed(0, policy))
+ << "Denied update of policy when security whitelist is not loaded!";
+
+ // LOADED POLICY W/O SECURITY WHITELIST ------------------------------------------------------//
+
+ // Get some configurations.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Load the policy into the security.
+ ASSERT_GT(policy_elements.size(), 0) << "Failed to fetch policy elements!";
+ security->load(policy_elements.at(0), false);
+
+ ASSERT_EXIT((security->is_policy_update_allowed(0, policy), exit(0)),
+ testing::ExitedWithCode(0), ".*")
+ << "Could not handle a nullptr when a policy without a security whitelist was loaded!";
+
+ EXPECT_TRUE(security->is_policy_update_allowed(0, policy))
+ << "Denied update of policy when security whitelist is not loaded!";
+
+ // LOADED POLICY W/ SECURITY WHITELIST -------------------------------------------------------//
+
+ // Add a security whitelist to the policy.
+
+ utility::add_security_whitelist(policy_elements.at(0), true);
+
+ security->load(policy_elements.at(0), false);
+
+ ASSERT_EXIT((security->is_policy_update_allowed(0, policy), exit(0)),
+ testing::ExitedWithCode(0), ".*")
+ << "Could not handle a nullptr when a policy with a security whitelist was loaded!";
+
+ EXPECT_FALSE(security->is_policy_update_allowed(0, policy))
+ << "Allowed update of invalid policy!";
+}
diff --git a/test/unit_tests/security_tests/ut_load_policies.cpp b/test/unit_tests/security_tests/ut_load_policies.cpp
new file mode 100644
index 0000000..83d7b3a
--- /dev/null
+++ b/test/unit_tests/security_tests/ut_load_policies.cpp
@@ -0,0 +1,100 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <memory>
+#include <gtest/gtest.h>
+#include "../../common/utility.hpp"
+
+namespace {
+std::string configuration_file { "/vsomeip/0_0/vsomeip_security.json" };
+vsomeip_v3::uid_t valid_uid = 4002200;
+vsomeip_v3::gid_t valid_gid = 4003014;
+}
+
+// Since this set of tests check a private method, there is the need to indirectly change the
+// parameters used by load_policies, and check its changes using other methods.
+// The remove_security_policy method checks if there is any loaded policy.
+// The is_audit method checks the check_credentials value.
+// No test was created for allow_remote_clients because it was inacessible.
+
+TEST(load_policies, any_policies_present)
+{
+ // LOADED POLICIES --------------------------------------------------------------------------//
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Force load of some policies.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Check if the load worked.
+ ASSERT_EQ(its_failed.size(), 0);
+
+ // Using load function to indirectly call load_policies.
+ security->load(policy_elements.at(0));
+
+ // Check that the policies were loaded from the file by trying to remove one of the loaded
+ // policies.
+ // If the policy is present, remove_security_policy returns true.
+ ASSERT_TRUE(security->remove_security_policy(valid_uid,valid_gid))
+ << "Trying to remove a policy that is supposed to exist, but doesn't";
+
+ // POLICIES NOT LOADED -----------------------------------------------------------------------//
+ // Remove all the policies from the file.
+ policy_elements.at(0).tree_.get_child("security").erase("policies");
+
+ // Using load function to indirectly call load_policies.
+ security->load(policy_elements.at(0));
+
+ // Check that no policies were loaded.
+ ASSERT_FALSE(security->remove_security_policy(valid_uid,valid_gid))
+ << "Trying to remove a policy should not exist, but it exists";
+}
+
+TEST(load_policies, check_credentials)
+{
+ // CHECK CREDENTIALS NOT SET -----------------------------------------------------------------//
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Force load of some policies without the check credentials value set.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Check if the load worked.
+ ASSERT_EQ(its_failed.size(), 0);
+
+ security->load(policy_elements.at(0));
+
+ // Check that the check_credentials value was not set, using the is_audit method.
+ ASSERT_TRUE(security->is_audit())
+ << "Check credentials value should be false when no value is loaded";
+
+ // CHECK CREDENTIALS SET TRUE ----------------------------------------------------------------//
+
+ // Load the check credentials value as false.
+ bool check_credentials_value {true};
+ policy_elements.at(0).tree_.add<bool>("security.check_credentials", check_credentials_value);
+ security->load(policy_elements.at(0));
+
+ // Check that the check_credentials flag was not set internally, using the is_audit method.
+ ASSERT_FALSE(security->is_audit())
+ << "Check credentials flag should be true when the check_credential value is loaded as"
+ "true";
+
+ // CHECK CREDENTIALS SET FALSE ---------------------------------------------------------------//
+
+ // Load the check credentials value as false.
+ check_credentials_value = false;
+ policy_elements.at(0).tree_.put<bool>("security.check_credentials", check_credentials_value);
+ security->load(policy_elements.at(0));
+
+ // Check that the check_credentials flag was set false, using the is_audit method.
+ ASSERT_TRUE(security->is_audit())
+ << "Check credentials flag should be false when the check_credential value is loaded as"
+ "false";
+}
diff --git a/test/unit_tests/security_tests/ut_load_security_update_whitelist.cpp b/test/unit_tests/security_tests/ut_load_security_update_whitelist.cpp
new file mode 100644
index 0000000..5fcd5da
--- /dev/null
+++ b/test/unit_tests/security_tests/ut_load_security_update_whitelist.cpp
@@ -0,0 +1,218 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <memory>
+#include <gtest/gtest.h>
+#include "../../common/utility.hpp"
+
+namespace {
+std::string configuration_file { "/vsomeip/0_0/vsomeip_security.json" };
+vsomeip_v3::service_t valid_service_id = 0xf91f;
+vsomeip_v3::service_t invalid_service_id = 0xf923;
+vsomeip_v3::uid_t valid_uid = 4017205;
+vsomeip_v3::uid_t invalid_uid = 111111;
+}
+
+// Since this set of tests check a private method, there is the need to indirectly change the
+// parameters used by load_security_update_whitelist, and check its changes using other methods.
+// The is_policy_removal_allowed method checks if a selected uid is present in the whitelist.
+// The is_policy_update_allowed method checks if a selected service_id is present in the whitelist.
+
+TEST(load_security_update_whitelist, check_uids)
+{
+ // LOADED POLICY W/O UIDS ON SECURITY WHITELIST ---------------------------------------------//
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Force load of some policies.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Check if the load worked.
+ ASSERT_EQ(its_failed.size(), 0);
+
+ std::vector<vsomeip_v3::service_t> services;
+ utility::get_policy_services(policy_elements.at(0), services);
+
+ // Add a security whitelist with an empty list of user uids.
+ std::vector<vsomeip_v3::uid_t> user_ids;
+ utility::add_security_whitelist(policy_elements.at(0), user_ids, services, true);
+
+ // Using load function to indirectly call load_security_update_whitelist.
+ security->load(policy_elements.at(0));
+
+ // Check that the valid and invalid uids are not present in the whitelist by calling a method
+ // that verifies that condition.
+ ASSERT_FALSE(security->is_policy_removal_allowed(valid_uid))
+ << "The whitelist unexpectedly holds a valid uid";
+
+ ASSERT_FALSE(security->is_policy_removal_allowed(invalid_uid))
+ << "The whitelist unexpectedly holds an invalid uid";
+
+ // LOADED POLICY WITH UIDS ON SECURITY WHITELIST ---------------------------------------------//
+ utility::get_policy_uids(policy_elements.at(0), user_ids);
+
+ // Add a security whitelist with list of user uids loaded.
+ utility::add_security_whitelist(policy_elements.at(0), user_ids, services, true);
+
+ // Using load function to indirectly call load_security_update_whitelist.
+ security->load(policy_elements.at(0));
+
+ // Check that the valid and invalid uids are not present in the whitelist by calling a method
+ // that verifies that condition.
+ ASSERT_TRUE(security->is_policy_removal_allowed(valid_uid))
+ << "The whitelist expected to hold a valid uid";
+
+ ASSERT_FALSE(security->is_policy_removal_allowed(invalid_uid))
+ << "The whitelist unexpectedly holds an invalid uid";
+}
+
+TEST(load_security_update_whitelist, check_service_ids)
+{
+ // LOADED POLICY W/O SERVICE IDS ON SECURITY WHITELIST -------------------------------------//
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Force load of some policies.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Check if the load worked.
+ ASSERT_EQ(its_failed.size(), 0);
+
+ std::vector<vsomeip_v3::uid_t> user_ids;
+ utility::get_policy_uids(policy_elements.at(0), user_ids);
+
+ // Add a security whitelist with an empty list of service ids.
+ std::vector<vsomeip_v3::service_t> services;
+ utility::add_security_whitelist(policy_elements.at(0), user_ids, services, true);
+
+ // Using load function to indirectly call load_security_update_whitelist.
+ security->load(policy_elements.at(0));
+
+ std::shared_ptr<vsomeip::policy> policy(std::make_shared<vsomeip::policy>());
+
+ vsomeip::service_t its_service(valid_service_id);
+ vsomeip::service_t its_invalid_service(invalid_service_id);
+
+ boost::icl::discrete_interval<vsomeip::instance_t> its_instances(0x1, 0x2);
+ boost::icl::interval_set<vsomeip::method_t> its_methods;
+ its_methods.insert(boost::icl::interval<vsomeip::method_t>::closed(0x01, 0x2));
+ boost::icl::interval_map<vsomeip::instance_t, boost::icl::interval_set<vsomeip::method_t>>
+ its_instances_methods;
+ its_instances_methods += std::make_pair(its_instances, its_methods);
+
+ // Add a valid request to the policy
+ policy->requests_ +=
+ std::make_pair(boost::icl::discrete_interval<vsomeip::service_t>(
+ its_service, its_service, boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ // Check its presence using the is_policy_update_allowed method.
+ ASSERT_FALSE(security->is_policy_update_allowed(valid_uid, policy))
+ << "The whitelist unexpectedly holds a valid service_id";
+
+ // Add an invalid request to the policy
+ policy->requests_ += std::make_pair(boost::icl::discrete_interval<vsomeip::service_t>(
+ its_invalid_service, its_invalid_service,
+ boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ // Check its presence using the is_policy_update_allowed method.
+ ASSERT_FALSE(security->is_policy_update_allowed(valid_uid, policy))
+ << "The whitelist unexpectedly holds an invalid service_id";
+
+ // LOADED POLICY WITH SERVICE IDS ON SECURITY WHITELIST --------------------------------------//
+ utility::get_policy_services(policy_elements.at(0), services);
+ utility::add_security_whitelist(policy_elements.at(0), user_ids, services, true);
+
+ security->load(policy_elements.at(0));
+
+ // Reset the policies pointer to add a correct serviceid and an incorrect one.
+ policy->requests_.clear();
+
+ // Add a valid request to the policy.
+ policy->requests_ +=
+ std::make_pair(boost::icl::discrete_interval<vsomeip::service_t>(
+ its_service, its_service, boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ // Check its presence using the is_policy_update_allowed method.
+ ASSERT_TRUE(security->is_policy_update_allowed(valid_uid, policy))
+ << "The whitelist expected to hold a valid service_id";
+
+ // Add an invalid request to the policy.
+ policy->requests_ += std::make_pair(boost::icl::discrete_interval<vsomeip::service_t>(
+ its_invalid_service, its_invalid_service,
+ boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ // Check its presence using the is_policy_update_allowed method.
+ ASSERT_FALSE(security->is_policy_update_allowed(invalid_uid, policy))
+ << "The whitelist unexpectedly holds an invalid service_id";
+}
+
+TEST(load_security_update_whitelist, check_whitelist_disabled)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // Force load of some policies.
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::set<std::string> input { utility::get_policies_path() + configuration_file };
+ utility::read_data(input, policy_elements, its_failed);
+
+ // Check if the load worked.
+ ASSERT_EQ(its_failed.size(), 0);
+
+ std::vector<vsomeip_v3::uid_t> user_ids;
+ utility::get_policy_uids(policy_elements.at(0), user_ids);
+
+ std::vector<vsomeip_v3::service_t> services;
+ utility::get_policy_services(policy_elements.at(0), services);
+
+ // Add a security whitelist with check_whitelist disabled.
+ utility::add_security_whitelist(policy_elements.at(0), user_ids, services, false);
+
+ security->load(policy_elements.at(0));
+
+ std::shared_ptr<vsomeip::policy> policy(std::make_shared<vsomeip::policy>());
+
+ vsomeip::service_t its_service(valid_service_id);
+ vsomeip::service_t its_invalid_service(invalid_service_id);
+
+ boost::icl::discrete_interval<vsomeip::instance_t> its_instances(0x1, 0x2);
+ boost::icl::interval_set<vsomeip::method_t> its_methods;
+ its_methods.insert(boost::icl::interval<vsomeip::method_t>::closed(0x01, 0x2));
+ boost::icl::interval_map<vsomeip::instance_t, boost::icl::interval_set<vsomeip::method_t>>
+ its_instances_methods;
+ its_instances_methods += std::make_pair(its_instances, its_methods);
+
+ // Add a valid request to the policy.
+ policy->requests_ +=
+ std::make_pair(boost::icl::discrete_interval<vsomeip::service_t>(
+ its_service, its_service, boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ ASSERT_TRUE(security->is_policy_removal_allowed(valid_uid))
+ << "The whitelist is disabled, a valid uid should be allowed to be removed";
+
+ ASSERT_TRUE(security->is_policy_removal_allowed(invalid_uid))
+ << "The whitelist is disabled, an invalid uid should be allowed to be removed";
+
+ ASSERT_TRUE(security->is_policy_update_allowed(valid_uid, policy))
+ << "The whitelist is disabled, a valid service_id should be allowed to be updated";
+
+ // Add an invalid request to the policy.
+ policy->requests_ += std::make_pair(boost::icl::discrete_interval<vsomeip::service_t>(
+ its_invalid_service, its_invalid_service,
+ boost::icl::interval_bounds::closed()),
+ its_instances_methods);
+
+ ASSERT_TRUE(security->is_policy_update_allowed(valid_uid, policy))
+ << "The whitelist is disabled, a valid service_id should be allowed to be updated";
+}
diff --git a/test/unit_tests/security_tests/ut_remove_client_to_sec_client_mapping.cpp b/test/unit_tests/security_tests/ut_remove_client_to_sec_client_mapping.cpp
new file mode 100644
index 0000000..3aff27a
--- /dev/null
+++ b/test/unit_tests/security_tests/ut_remove_client_to_sec_client_mapping.cpp
@@ -0,0 +1,41 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <memory>
+#include <gtest/gtest.h>
+#include "../../common/utility.hpp"
+
+namespace
+{
+vsomeip_v3::client_t client = 10;
+vsomeip_v3::uid_t uid = 4003030;
+vsomeip_v3::gid_t gid = 4003032;
+}
+
+TEST(remove_client_to_sec_client_mapping, check_no_policies_loaded)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ vsomeip_sec_client_t its_sec_client = utility::create_uds_client(uid, gid);
+
+ // client and uid_gid should not be stored yet
+ EXPECT_FALSE(security->get_client_to_sec_client_mapping (client, its_sec_client));
+
+ // client and uid_gid should not be stored yet
+ EXPECT_FALSE(security->remove_client_to_sec_client_mapping(client));
+
+ // add client and uid_gid mappings
+ security->store_client_to_sec_client_mapping(client, &its_sec_client);
+ security->store_sec_client_to_client_mapping(&its_sec_client, client);
+
+ // client and uid_gid mapping should be returned
+ EXPECT_TRUE(security->get_client_to_sec_client_mapping(client, its_sec_client));
+
+ // client and uid_gid mapping should be in the vector and able to be removed
+ EXPECT_TRUE(security->remove_client_to_sec_client_mapping(client));
+
+ // client and uid_gid should be removed from the vector
+ EXPECT_FALSE(security->get_client_to_sec_client_mapping(client, its_sec_client));
+}
diff --git a/test/unit_tests/security_tests/ut_remove_security_policy.cpp b/test/unit_tests/security_tests/ut_remove_security_policy.cpp
new file mode 100644
index 0000000..b3d6770
--- /dev/null
+++ b/test/unit_tests/security_tests/ut_remove_security_policy.cpp
@@ -0,0 +1,61 @@
+// Copyright (C) 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <gtest/gtest.h>
+
+#include "../../common/utility.hpp"
+
+namespace {
+vsomeip_v3::uid_t invalid_uid = 1;
+vsomeip_v3::uid_t valid_uid = 4002200;
+vsomeip_v3::gid_t invalid_gid = 1;
+vsomeip_v3::gid_t valid_gid = 4003014;
+}
+
+TEST(remove_security_policy_test, check_no_policies_loaded)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // no policies loaded -> remove_security_policy will return true independent of the uid or gid
+ EXPECT_FALSE(security->remove_security_policy(valid_uid, valid_gid));
+ EXPECT_FALSE(security->remove_security_policy(invalid_uid, valid_gid));
+ EXPECT_FALSE(security->remove_security_policy(valid_uid, invalid_gid));
+ EXPECT_FALSE(security->remove_security_policy(invalid_uid, invalid_gid));
+}
+
+TEST(remove_security_policy_test, check_policies_loaded)
+{
+ std::unique_ptr<vsomeip_v3::policy_manager_impl> security(new vsomeip_v3::policy_manager_impl);
+
+ // force load of some policies
+ std::set<std::string> its_failed;
+ std::vector<vsomeip_v3::configuration_element> policy_elements;
+ std::vector<std::string> dir_skip;
+ utility::read_data(utility::get_all_files_in_dir(utility::get_policies_path(), dir_skip),
+ policy_elements, its_failed);
+
+ for (const auto &e : policy_elements)
+ security->load(e, false);
+
+ // check if the load worked
+ ASSERT_TRUE(policy_elements.size() > 0);
+ ASSERT_TRUE(its_failed.size() == 0);
+
+ // the check_credentials_ and the policy_enabled_ variables should be set to true
+ ASSERT_FALSE(security->is_audit());
+ ASSERT_TRUE(security->is_enabled());
+
+ // invalid uid and gid -> remove_security_policy must return false
+ EXPECT_FALSE(security->remove_security_policy(invalid_uid, invalid_gid));
+
+ // invalid uid and valid gid -> remove_security_policy must return false
+ EXPECT_FALSE(security->remove_security_policy(invalid_uid, valid_gid));
+
+ // valid uid and invalid gid -> remove_security_policy must return false
+ EXPECT_FALSE(security->remove_security_policy(valid_uid, invalid_gid));
+
+ // valid uid and gid -> remove_security_policy must return true
+ EXPECT_TRUE(security->remove_security_policy(valid_uid, valid_gid));
+}