diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a2a6808..cb4494a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,8 +12,11 @@ list yields a list of all related PRs for each release. # [v1.12.0] -## Changes +## Changed +- Build unittest as default side product of hosted builds + PR: https://egit.irs.uni-stuttgart.de/eive/eive-obsw/pulls/244 +- Let CI/CD build host build and run unittest side product in same step - Sun Sensors have names denoting their location and poiting in the satellite now PR: https://egit.irs.uni-stuttgart.de/eive/eive-obsw/pulls/245 - Better RTD names denoting their purpose (and location consequently) diff --git a/CMakeLists.txt b/CMakeLists.txt index 54049b34..c96070b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -298,7 +298,11 @@ target_include_directories(${WATCHDOG_NAME} PUBLIC ) # unittests -add_executable(${UNITTEST_NAME} EXCLUDE_FROM_ALL) +if(NOT TGT_BSP) + add_executable(${UNITTEST_NAME}) +else() + add_executable(${UNITTEST_NAME} EXCLUDE_FROM_ALL) +endif() if(EIVE_ADD_ETL_LIB) endif() diff --git a/automation/Jenkinsfile b/automation/Jenkinsfile index f8b180a1..e8ad8851 100644 --- a/automation/Jenkinsfile +++ b/automation/Jenkinsfile @@ -24,11 +24,11 @@ pipeline { } } } - stage('Unittests') { + stage('Build Host and Tests') { steps { dir(BUILDDIR_LINUX) { sh 'cmake ..' - sh 'cmake --build . -t eive-unittest -j4' + sh 'cmake --build . -j4' sh './eive-unittest' } }