From a21bdc1ec786f0f248a787b52ca09411d84a41d9 Mon Sep 17 00:00:00 2001 From: TheGAzed Date: Thu, 13 Jun 2024 20:46:07 +0200 Subject: [PATCH] tests --- .github/workflows/cmake-multi-platform.yml | 9 +++------ CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 3d92063..66362ae 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -65,11 +65,6 @@ jobs: -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -S ${{ github.workspace }} - - - name: Install gcovr - run: | - sudo apt-get -qq update - sudo apt-get -qq install -y gcovr - name: Build # Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). @@ -77,4 +72,6 @@ jobs: - name: Test working-directory: ${{ steps.strings.outputs.build-output-dir }} - run: gcovr -e test/unit/UNITTEST -e test/blackbox/BLACKBOX + run: | + ./test/unit/UNITTESTS + ./test/blackbox/BLACKBOX diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ae01f9..d51675a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ project(SLNOSLAV if(MSVC) add_compile_options(/std:c17) else() - set(CMAKE_C_FLAGS "-std=c17 -pg -Wall -Werror") + set(CMAKE_C_FLAGS "-std=c17 -pg -Wall -Werror -ftest-coverage") endif() add_subdirectory(external)