Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
4c414e66
Verified
Commit
4c414e66
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP pipeline
parent
81e01d43
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
test/CMakeLists.txt
+13
-6
13 additions, 6 deletions
test/CMakeLists.txt
with
14 additions
and
7 deletions
CMakeLists.txt
+
1
−
1
View file @
4c414e66
cmake_minimum_required
(
VERSION 3.1
4
)
cmake_minimum_required
(
VERSION 3.1
3
)
set
(
libcaosdb_VERSION 0.0.1
)
...
...
This diff is collapsed.
Click to expand it.
test/CMakeLists.txt
+
13
−
6
View file @
4c414e66
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment