Skip to content

Conversation

@julionce
Copy link
Contributor

@julionce julionce commented Nov 29, 2019

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.

@richiware
Copy link
Member

Build status:

  • Linux Build Status
  • Windows Build Status

@richiware
Copy link
Member

Build status:

  • Linux Build Status
  • Windows Build Status

@richiware
Copy link
Member

Build status:

  • Linux Build Status
  • Windows Build Status

@richiware
Copy link
Member

Build status:

  • Linux Build Status
  • Windows Build Status

@richiware
Copy link
Member

Build status:

  • Linux Build Status
  • Windows Build Status

@julionce julionce force-pushed the feature/test_cases branch 2 times, most recently from 201f343 to 9c5d543 Compare December 2, 2019 08:08
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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not?

Julián Bermúdez Ortega and others added 2 commits December 5, 2019 12:22
Co-Authored-By: Borja Outerelo <borjaouterelo@gmail.com>
@BorjaOuterelo BorjaOuterelo merged commit 6f8e4a1 into master Dec 5, 2019
@julionce julionce deleted the feature/test_cases branch December 7, 2019 19:29
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants