adding Test file sufix to all tests (#2337)
* azure core * perf * identity * keyvault * storage
This commit is contained in:
parent
0876ff4fd5
commit
88dc1ac8cf
@ -11,7 +11,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
|
||||
add_executable (
|
||||
azure-core-test-fault-injector
|
||||
main.cpp
|
||||
fault_injector_test.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(azure-core-test-fault-injector PRIVATE azure-core)
|
||||
|
||||
@ -9,12 +9,12 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
|
||||
set(
|
||||
AZURE_CORE_PERF_TEST_HEADER
|
||||
inc/azure/core/test/nullable.hpp
|
||||
inc/azure/core/test/nullable_test.hpp
|
||||
)
|
||||
|
||||
set(
|
||||
AZURE_CORE_PERF_TEST_SOURCE
|
||||
src/main.cpp
|
||||
src/azure_core_perf_test.cpp
|
||||
)
|
||||
|
||||
# Name the binary to be created.
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
#include <azure/perf.hpp>
|
||||
|
||||
#include "azure/core/test/nullable.hpp"
|
||||
#include "azure/core/test/nullable_test.hpp"
|
||||
|
||||
#include <vector>
|
||||
|
||||
@ -20,9 +20,9 @@ set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
|
||||
if(BUILD_TRANSPORT_CURL)
|
||||
SET(CURL_OPTIONS_TESTS curl_options.cpp)
|
||||
SET(CURL_SESSION_TESTS curl_session_test.cpp)
|
||||
SET(CURL_CONNECTION_POOL_TESTS curl_connection_pool.cpp)
|
||||
SET(CURL_OPTIONS_TESTS curl_options_test.cpp)
|
||||
SET(CURL_SESSION_TESTS curl_session_test_test.cpp curl_session_test.hpp)
|
||||
SET(CURL_CONNECTION_POOL_TESTS curl_connection_pool_test.cpp)
|
||||
endif()
|
||||
|
||||
if(RUN_LONG_UNIT_TESTS)
|
||||
@ -33,42 +33,45 @@ include(GoogleTest)
|
||||
|
||||
add_executable (
|
||||
azure-core-test
|
||||
base64.cpp
|
||||
bearer_token_authentication_policy.cpp
|
||||
bodystream.cpp
|
||||
case_insensitive_containers.cpp
|
||||
client_options.cpp
|
||||
context.cpp
|
||||
azure_core_test.cpp
|
||||
base64_test.cpp
|
||||
bearer_token_authentication_policy_test.cpp
|
||||
bodystream_test.cpp
|
||||
case_insensitive_containers_test.cpp
|
||||
client_options_test.cpp
|
||||
context_test.cpp
|
||||
${CURL_CONNECTION_POOL_TESTS}
|
||||
${CURL_OPTIONS_TESTS}
|
||||
${CURL_SESSION_TESTS}
|
||||
datetime.cpp
|
||||
etag.cpp
|
||||
http.cpp
|
||||
http_method.cpp
|
||||
json.cpp
|
||||
log_policy.cpp
|
||||
logging.cpp
|
||||
macro_guard.cpp
|
||||
main.cpp
|
||||
match_conditions.cpp
|
||||
md5.cpp
|
||||
modified_conditions.cpp
|
||||
nullable.cpp
|
||||
operation.cpp
|
||||
operation_status.cpp
|
||||
pipeline.cpp
|
||||
policy.cpp
|
||||
request_id_policy.cpp
|
||||
response_t.cpp
|
||||
retry_policy.cpp
|
||||
simplified_header.cpp
|
||||
string.cpp
|
||||
telemetry_policy.cpp
|
||||
transport_adapter_base.cpp
|
||||
transport_adapter_implementation.cpp
|
||||
url.cpp
|
||||
uuid.cpp
|
||||
datetime_test.cpp
|
||||
etag_test.cpp
|
||||
http_test.cpp
|
||||
http_test.hpp
|
||||
http_method_test.cpp
|
||||
json_test.cpp
|
||||
log_policy_test.cpp
|
||||
logging_test.cpp
|
||||
macro_guard_test.cpp
|
||||
match_conditions_test.cpp
|
||||
md5_test.cpp
|
||||
modified_conditions_test.cpp
|
||||
nullable_test.cpp
|
||||
operation_test.cpp
|
||||
operation_test.hpp
|
||||
operation_status_test.cpp
|
||||
pipeline_test.cpp
|
||||
policy_test.cpp
|
||||
request_id_policy_test.cpp
|
||||
response_t_test.cpp
|
||||
retry_policy_test.cpp
|
||||
simplified_header_test.cpp
|
||||
string_test.cpp
|
||||
telemetry_policy_test.cpp
|
||||
transport_adapter_base_test.cpp
|
||||
transport_adapter_base_test.hpp
|
||||
transport_adapter_implementation_test.cpp
|
||||
url_test.cpp
|
||||
uuid_test.cpp
|
||||
)
|
||||
|
||||
if (MSVC)
|
||||
@ -95,7 +98,7 @@ target_link_libraries(azure-core-test PRIVATE azure-core gtest gmock)
|
||||
## Global context test
|
||||
add_executable (
|
||||
azure-core-global-context-test
|
||||
global_context.cpp
|
||||
global_context_test.cpp
|
||||
)
|
||||
if (MSVC)
|
||||
# Disable gtest warnings for MSVC
|
||||
@ -117,7 +120,7 @@ if(BUILD_TRANSPORT_CURL)
|
||||
# without getting errors.
|
||||
add_executable (
|
||||
azure-core-libcurl-test
|
||||
azure_libcurl_core_main.cpp
|
||||
azure_libcurl_core_main_test.cpp
|
||||
)
|
||||
|
||||
if (MSVC)
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#include "transport_adapter_base.hpp"
|
||||
#include "transport_adapter_base_test.hpp"
|
||||
#include <azure/core/context.hpp>
|
||||
#include <azure/core/http/policies/policy.hpp>
|
||||
#include <azure/core/response.hpp>
|
||||
@ -21,7 +21,7 @@
|
||||
#include <private/curl_connection_pool.hpp>
|
||||
#include <private/curl_session.hpp>
|
||||
|
||||
#include "curl_session.hpp"
|
||||
#include "curl_session_test.hpp"
|
||||
|
||||
using testing::ValuesIn;
|
||||
using namespace Azure::Core::Http::_detail;
|
||||
@ -17,7 +17,7 @@
|
||||
#include <private/curl_connection.hpp>
|
||||
#include <private/curl_session.hpp>
|
||||
|
||||
#include "transport_adapter_base.hpp"
|
||||
#include "transport_adapter_base_test.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@ -1,7 +1,7 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#include "curl_session.hpp"
|
||||
#include "curl_session_test.hpp"
|
||||
|
||||
#include <azure/core/http/curl_transport.hpp>
|
||||
#include <azure/core/http/http.hpp>
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "http.hpp"
|
||||
#include "http_test.hpp"
|
||||
#include <azure/core/http/http.hpp>
|
||||
#include <azure/core/internal/io/null_body_stream.hpp>
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include "transport_adapter_base.hpp"
|
||||
#include "transport_adapter_base_test.hpp"
|
||||
#include <azure/core/context.hpp>
|
||||
#include <azure/core/response.hpp>
|
||||
#include <iostream>
|
||||
@ -1,7 +1,7 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#include "transport_adapter_base.hpp"
|
||||
#include "transport_adapter_base_test.hpp"
|
||||
|
||||
#include <azure/core/http/policies/policy.hpp>
|
||||
#include <azure/core/http/transport.hpp>
|
||||
@ -20,7 +20,7 @@ set(
|
||||
|
||||
set(
|
||||
AZURE_PERF_TEST_SOURCE
|
||||
src/main.cpp
|
||||
src/perf_test.cpp
|
||||
)
|
||||
|
||||
# Name the binary to be created.
|
||||
|
||||
@ -11,10 +11,10 @@ include(GoogleTest)
|
||||
|
||||
add_executable (
|
||||
azure-identity-livetest
|
||||
client_secret_credential.cpp
|
||||
environment_credential.cpp
|
||||
getenv.hpp
|
||||
main.cpp
|
||||
azure_identity_live_test.cpp
|
||||
client_secret_credential_test.cpp
|
||||
environment_credential_test.cpp
|
||||
getenv.hpp
|
||||
)
|
||||
|
||||
if (MSVC)
|
||||
|
||||
@ -9,12 +9,12 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
|
||||
set(
|
||||
AZURE_IDENTITY_PERF_TEST_HEADER
|
||||
inc/azure/identity/test/secret_credential.hpp
|
||||
inc/azure/identity/test/secret_credential_test.hpp
|
||||
)
|
||||
|
||||
set(
|
||||
AZURE_IDENTITY_PERF_TEST_SOURCE
|
||||
src/main.cpp
|
||||
src/azure_identity_perf_test.cpp
|
||||
)
|
||||
|
||||
# Name the binary to be created.
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
#include <azure/perf.hpp>
|
||||
|
||||
#include "azure/identity/test/secret_credential.hpp"
|
||||
#include "azure/identity/test/secret_credential_test.hpp"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
@ -13,12 +13,12 @@ include(GoogleTest)
|
||||
|
||||
add_executable (
|
||||
azure-identity-test
|
||||
client_secret_credential.cpp
|
||||
environment_credential.cpp
|
||||
macro_guard.cpp
|
||||
main.cpp
|
||||
simplified_header.cpp
|
||||
test_transport.hpp
|
||||
azure_identity_test.cpp
|
||||
client_secret_credential_test.cpp
|
||||
environment_credential_test.cpp
|
||||
macro_guard_test.cpp
|
||||
simplified_header_test.cpp
|
||||
test_transport_test.hpp
|
||||
)
|
||||
|
||||
if (MSVC)
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
|
||||
#include <azure/core/io/body_stream.hpp>
|
||||
|
||||
#include "test_transport.hpp"
|
||||
#include "test_transport_test.hpp"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
#include <azure/core/io/body_stream.hpp>
|
||||
#include <azure/core/platform.hpp>
|
||||
|
||||
#include "test_transport.hpp"
|
||||
#include "test_transport_test.hpp"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <stdlib.h>
|
||||
@ -11,9 +11,9 @@ include(GoogleTest)
|
||||
|
||||
add_executable (
|
||||
azure-security-keyvault-common-test
|
||||
main.cpp
|
||||
pipeline_test.cpp
|
||||
sha.cpp
|
||||
azure_security_keyvault_common_test.cpp
|
||||
pipeline_test.cpp
|
||||
sha_test.cpp
|
||||
)
|
||||
|
||||
if (MSVC)
|
||||
|
||||
@ -9,12 +9,12 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
|
||||
set(
|
||||
AZURE_KEYVAULT_KEY_PERF_TEST_HEADER
|
||||
inc/azure/keyvault/keys/test/get_key.hpp
|
||||
inc/azure/keyvault/keys/test/get_key_test.hpp
|
||||
)
|
||||
|
||||
set(
|
||||
AZURE_KEYVAULT_KEY_PERF_TEST_SOURCE
|
||||
src/main.cpp
|
||||
src/azure_security_keyvault_keys_perf_test.cpp
|
||||
)
|
||||
|
||||
# Name the binary to be created.
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
#include <azure/perf.hpp>
|
||||
|
||||
#include "azure/keyvault/keys/test/get_key.hpp"
|
||||
#include "azure/keyvault/keys/test/get_key_test.hpp"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
@ -12,11 +12,12 @@ include(GoogleTest)
|
||||
################## Unit Tests ##########################
|
||||
add_executable (
|
||||
azure-security-keyvault-keys-test
|
||||
key_client_test.cpp
|
||||
macro_guard.cpp
|
||||
main.cpp
|
||||
mocked_transport_adapter_test.hpp
|
||||
telemetry_header_test.cpp
|
||||
azure_security_keyvault_keys_test.cpp
|
||||
key_client_base_test.hpp
|
||||
key_client_test.cpp
|
||||
macro_guard.cpp
|
||||
mocked_transport_adapter_test.hpp
|
||||
telemetry_header_test.cpp
|
||||
)
|
||||
|
||||
if (MSVC)
|
||||
@ -37,15 +38,15 @@ gtest_discover_tests(azure-security-keyvault-keys-test
|
||||
################## Live Tests ##########################
|
||||
add_executable (
|
||||
azure-security-keyvault-keys-test-live
|
||||
key_client_backup_test_live.cpp
|
||||
key_client_create_test_live.cpp
|
||||
key_client_delete_test_live.cpp
|
||||
key_client_get_test_live.cpp
|
||||
key_client_import_test_live.cpp
|
||||
key_client_update_test_live.cpp
|
||||
key_cryptographic_client_test_live.cpp
|
||||
main.cpp
|
||||
key_client_base_test.hpp
|
||||
azure_security_keyvault_keys_test.cpp
|
||||
key_client_backup_test_live.cpp
|
||||
key_client_create_test_live.cpp
|
||||
key_client_delete_test_live.cpp
|
||||
key_client_get_test_live.cpp
|
||||
key_client_import_test_live.cpp
|
||||
key_client_update_test_live.cpp
|
||||
key_cryptographic_client_test_live.cpp
|
||||
key_client_base_test.hpp
|
||||
)
|
||||
|
||||
if (MSVC)
|
||||
|
||||
@ -11,7 +11,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
|
||||
add_executable (
|
||||
azure-storage-blobs-test-fault-injector
|
||||
main.cpp
|
||||
azure_storage_blobs_fault_injector_test.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(azure-storage-blobs-test-fault-injector PRIVATE azure-storage-blobs)
|
||||
|
||||
@ -10,12 +10,12 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
set(
|
||||
AZURE_STORAGE_BLOBS_PERF_TEST_HEADER
|
||||
inc/azure/storage/blobs/test/blob_base_test.hpp
|
||||
inc/azure/storage/blobs/test/download_blob.hpp
|
||||
inc/azure/storage/blobs/test/download_blob_test.hpp
|
||||
)
|
||||
|
||||
set(
|
||||
AZURE_STORAGE_BLOBS_PERF_TEST_SOURCE
|
||||
src/main.cpp
|
||||
src/azure_storage_blobs_perf_test.cpp
|
||||
)
|
||||
|
||||
# Name the binary to be created.
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
#include <azure/perf.hpp>
|
||||
|
||||
#include "azure/storage/blobs/test/download_blob.hpp"
|
||||
#include "azure/storage/blobs/test/download_blob_test.hpp"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
Loading…
Reference in New Issue
Block a user