-
Notifications
You must be signed in to change notification settings - Fork 76
Test cases #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Test cases #45
Conversation
This file contains hidden or 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
Member
Member
Member
af333fe to
09cb653
Compare
Member
09cb653 to
86e280a
Compare
Member
201f343 to
9c5d543
Compare
9c5d543 to
5df3042
Compare
BorjaOuterelo
suggested changes
Dec 5, 2019
Comment on lines
15
to
48
| cmake_minimum_required(VERSION 3.5.0 FATAL_ERROR) | ||
|
|
||
| project(microcdr_ci LANGUAGES C CXX) | ||
|
|
||
| include(ExternalProject) | ||
|
|
||
| set(_c_flags "-fwrapv -fprofile-arcs -ftest-coverage") | ||
| set(_cxx_flags "-fwrapv -fprofile-arcs -ftest-coverage") | ||
| set(_exe_linker_flags "-fprofile-arcs -ftest-coverage") | ||
| set(_shared_linker_flags "-fprofile-arcs -ftest-coverage") | ||
|
|
||
| ExternalProject_Add(microcdr | ||
| SOURCE_DIR | ||
| ${CMAKE_CURRENT_SOURCE_DIR}/../../ | ||
| BINARY_DIR | ||
| ${PROJECT_BINARY_DIR}/microcdr-build | ||
| INSTALL_DIR | ||
| ${PROJECT_BINARY_DIR}/temp_install | ||
| TEST_AFTER_INSTALL | ||
| TRUE | ||
| TEST_COMMAND | ||
| COMMAND ${CMAKE_CTEST_COMMAND} -VV -T Test | ||
| COMMAND ${CMAKE_CTEST_COMMAND} -VV -T MemCheck -E "test-case*" | ||
| COMMAND ${CMAKE_CTEST_COMMAND} -VV -T Coverage -E "test-case*" | ||
| CMAKE_CACHE_ARGS | ||
| -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} | ||
| -DCMAKE_C_FLAGS:STRING=${_c_flags} | ||
| -DCMAKE_CXX_FLAGS:STRING=${_cxx_flags} | ||
| -DCMAKE_EXE_LINKER_FLAGS:STRING=${_exe_linker_flags} | ||
| -DCMAKE_SHARED_LINKER_FLAGS:STRING=${_shared_linker_flags} | ||
| -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> | ||
| -DUCDR_BUILD_CI_TESTS:BOOL=ON | ||
| -DGTEST_INDIVIDUAL:BOOL=ON | ||
| ) No newline at end of file |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we adopt the same changes regarding Ninja and multiple compilers done in Client?
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not?
Co-Authored-By: Borja Outerelo <borjaouterelo@gmail.com>
BorjaOuterelo
approved these changes
Dec 5, 2019
BorjaOuterelo
approved these changes
Dec 5, 2019
TSC21
pushed a commit
to PX4/Micro-CDR
that referenced
this pull request
Mar 30, 2020
* Refs #6972. Add installation test cases. * Refs #6972. Add packaging test case. * Refs #6972. Fix test cases compilation with normal tests. * Refs #6972. Fix toolset and platform generator for Windows. * Refs #6972. Change CI approach in Linux platforms. * Refs #6972. Change CI approach in Windows platforms. * Refs #6972. Change source dir in CI projects. * Refs #6972. Move CTestJenkins.cmake into ci folder. * Update CMakeLists.txt Co-Authored-By: Borja Outerelo <borjaouterelo@gmail.com> * Refs #6972. Attend pull request comments.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds tests which cover releases test cases.
In particular, there are two new tests, one which checks the installation directory, and others which checks the packaging and compile an example.