From c83a177061c5311ff008179158885e830d36f03b Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 4 May 2022 17:38:08 +0200 Subject: [PATCH 1/2] Build unittest by default in host build - Also update CI/CD to build host build --- CMakeLists.txt | 6 +++++- automation/Jenkinsfile | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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' } } -- 2.43.0 From a2e22302fbad13fda660b9e5574042b488c7e06f Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 4 May 2022 17:46:01 +0200 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2baa3275..6bb12fa7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,11 @@ list yields a list of all related PRs for each release. # [unreleased] +# [v1.12.0] + +- Build unittest as default side product of hosted builds +- Let CI/CD build host build and run unittest side product in same step + # [v1.11.0] ## Fixed -- 2.43.0