Move to valgrind for mem leak tests #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run GoogleTest | |
on: | |
push: | |
branches: [main, devel] | |
pull_request: | |
branches: [main, devel] | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Install valgrind | |
run: sudo apt install -y valgrind | |
- name: Prepare build directory | |
run: cmake -Bbuild | |
- name: Compile tests | |
run: cmake --build build --parallel --target DCCEXProtocolTests | |
- name: Run tests | |
run: ./build/tests/DCCEXProtocolTests --gtest_shuffle --gtest_repeat=5 --gtest_recreate_environments_when_repeating | |
- name: Run valgrind | |
run: valgrind --leak-check=full --track-origins=yes build/tests/DCCEXProtocolTests |