File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ # SPDX-License-Identifier: Apache-2.0.
3+ #
4+
5+ add_project (performance-tests
6+ "A suite of AWS C++ SDK performance tests"
7+ aws-cpp-sdk-core
8+ aws-cpp-sdk-s3
9+ aws-cpp-sdk-dynamodb
10+ )
11+
12+ # Add cxxopts dependency
13+ include (FetchContent )
14+ FetchContent_Declare (
15+ cxxopts
16+ GIT_REPOSITORY https://github.com/jarro2783/cxxopts.git
17+ GIT_TAG v3.1.1
18+ )
19+ FetchContent_MakeAvailable (cxxopts)
20+
21+ function (add_service_test SERVICE SDK_LIB PERF_TEST_FILE )
22+ add_executable (${SERVICE} -performance-test
23+ src/services/${SERVICE}/main.cpp
24+ src/reporting/JsonReportingMetrics.cpp
25+ src/services/${SERVICE}/${PERF_TEST_FILE}
26+ )
27+ set_compiler_flags (${SERVICE} -performance-test )
28+ set_compiler_warnings (${SERVICE} -performance-test )
29+ target_include_directories (${SERVICE} -performance-test PRIVATE include )
30+ target_link_libraries (${SERVICE} -performance-test PRIVATE aws-cpp-sdk-core ${SDK_LIB} cxxopts::cxxopts )
31+ target_compile_options (${SERVICE} -performance-test PRIVATE -std=c++17 -fexceptions )
32+ endfunction ()
33+
34+ add_service_test (s3 aws-cpp-sdk-s3 S3PerformanceTest.cpp )
35+ add_service_test (dynamodb aws-cpp-sdk-dynamodb DynamoDBPerformanceTest.cpp )
You can’t perform that action at this time.
0 commit comments