Skip to content

Move to valgrind for mem leak tests #62

Move to valgrind for mem leak tests

Move to valgrind for mem leak tests #62

Workflow file for this run

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