Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGAzed committed Jun 13, 2024
1 parent 54cad43 commit a21bdc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,13 @@ 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).
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- 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
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a21bdc1

Please sign in to comment.