Skip to content
Snippets Groups Projects
Verified Commit 4c414e66 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP pipeline

parent 81e01d43
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 3.14)
cmake_minimum_required(VERSION 3.13)
set(libcaosdb_VERSION 0.0.1)
......
include(FetchCMocka)
# append all the test cases here (file name without the ".c" suffix)
set(test_cases
test_connection
)
find_library(cmocka-static cmocka)
if (NOT cmocka-static)
message(${cmocka-static})
elseif (${CMAKE_VERSION} VERSION_LESS "3.14.0")
message(FATAL_ERROR
"Failed to run tests. A pre-installed cmocka could not be found and
your cmake version is prior to 3.14. Please consider to upgrade you
cmake (>=3.14) or install cmocka.")
else ()
include(FetchCMocka)
endif ()
list(LENGTH test_cases len_test_cases)
math(EXPR len_test_cases "${len_test_cases} - 1")
foreach (i RANGE "${len_test_cases}")
......@@ -15,10 +26,6 @@ foreach (i RANGE "${len_test_cases}")
add_test(${test_case_name} ${test_case_name})
endforeach ()
#add_executable(test_connection test_connection.c)
#target_compile_features(test_connection PRIVATE c_std_99)
#target_link_libraries(test_connection PRIVATE cmocka-static libcaosdb)
#add_test(test_connection test_connection)
# code coverage report
include(CodeCoverage)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment