diff options
author | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-05 21:17:16 +0400 |
---|---|---|
committer | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-05 21:17:16 +0400 |
commit | 26dfa76faa883c35fe3e5ff4b2b33f4102059a81 (patch) | |
tree | 27b71a44b38fb4b64e991146e235ae327c86ef5d /source/test/integration/fetch_content | |
download | kit-26dfa76faa883c35fe3e5ff4b2b33f4102059a81.zip |
Async function & unit-testing
Diffstat (limited to 'source/test/integration/fetch_content')
-rw-r--r-- | source/test/integration/fetch_content/.gitignore | 1 | ||||
-rw-r--r-- | source/test/integration/fetch_content/CMakeLists.txt | 19 | ||||
-rw-r--r-- | source/test/integration/fetch_content/main.c | 5 |
3 files changed, 25 insertions, 0 deletions
diff --git a/source/test/integration/fetch_content/.gitignore b/source/test/integration/fetch_content/.gitignore new file mode 100644 index 0000000..84c048a --- /dev/null +++ b/source/test/integration/fetch_content/.gitignore @@ -0,0 +1 @@ +/build/ diff --git a/source/test/integration/fetch_content/CMakeLists.txt b/source/test/integration/fetch_content/CMakeLists.txt new file mode 100644 index 0000000..efa83d0 --- /dev/null +++ b/source/test/integration/fetch_content/CMakeLists.txt @@ -0,0 +1,19 @@ +cmake_minimum_required(VERSION 3.16) +set(NAME kit-integration-fetch-content) +project(${NAME} C) + +include(FetchContent) +FetchContent_Declare( + kit + GIT_REPOSITORY https://github.com/automainint/kit.git + GIT_TAG dev) +set(KIT_ENABLE_TESTING OFF) +FetchContent_MakeAvailable(kit) + +add_executable(${NAME}) +target_sources(${NAME} PRIVATE main.c) +target_link_libraries(${NAME} PRIVATE kit::kit) + +enable_testing() +add_test(NAME ${NAME}-run COMMAND ${NAME}) +set_tests_properties(${NAME}-run PROPERTIES TIMEOUT "15") diff --git a/source/test/integration/fetch_content/main.c b/source/test/integration/fetch_content/main.c new file mode 100644 index 0000000..c9dc882 --- /dev/null +++ b/source/test/integration/fetch_content/main.c @@ -0,0 +1,5 @@ +#include <kit/async_function.h> + +int main() { + return 0; +} |