-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
40 additions
and
27,156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
project(aws-lambda-runtime-tests LANGUAGES CXX) | ||
|
||
find_package(AWSSDK COMPONENTS lambda iam) | ||
include(FetchContent) | ||
FetchContent_Declare(gtest | ||
QUIET | ||
URL https://github.com/google/googletest/archive/v1.15.2.tar.gz | ||
) | ||
# configure build of googletest | ||
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) | ||
set(BUILD_GMOCK OFF CACHE BOOL "" FORCE) | ||
set(INSTALL_GTEST OFF) | ||
FetchContent_MakeAvailable(gtest) | ||
|
||
add_executable(${PROJECT_NAME} | ||
main.cpp | ||
runtime_tests.cpp | ||
version_tests.cpp | ||
gtest/gtest-all.cc) | ||
add_executable( | ||
unit_tests | ||
no_op_test.cpp | ||
) | ||
|
||
target_link_libraries(${PROJECT_NAME} PRIVATE ${AWSSDK_LINK_LIBRARIES} aws-lambda-runtime) | ||
target_link_libraries(unit_tests | ||
PRIVATE | ||
gtest_main | ||
) | ||
|
||
# automatic discovery of unit tests | ||
include(GoogleTest) | ||
gtest_discover_tests(${PROJECT_NAME} EXTRA_ARGS "--aws_prefix=${TEST_RESOURCE_PREFIX}") # requires CMake 3.10 or later | ||
|
||
add_subdirectory(resources) | ||
|
||
gtest_discover_tests(unit_tests | ||
PROPERTIES | ||
LABELS "unit" | ||
DISCOVERY_TIMEOUT # how long to wait (in seconds) before crashing | ||
240 | ||
) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.