From 2897800cfbed4dc82e974a102418320979337283 Mon Sep 17 00:00:00 2001 From: Tuomo Kriikkula Date: Tue, 23 Jan 2024 12:11:36 +0200 Subject: [PATCH] Run CTest with Valgrind --- .github/workflows/cmake-build.yaml | 5 +++++ CMakeLists.txt | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/cmake-build.yaml b/.github/workflows/cmake-build.yaml index 913705b..0640d46 100644 --- a/.github/workflows/cmake-build.yaml +++ b/.github/workflows/cmake-build.yaml @@ -143,6 +143,11 @@ jobs: ${{ env.UMB_VALGRIND_BIN }} --version if: matrix.os == 'ubuntu-latest' + - name: Run CTest with Valgrind + env: + VALGRIND_LIB: ${{ env.VALGRIND_PREFIX }}/libexec/valgrind/ + run: ctest -C ${{ matrix.build_type }} --verbose -T memcheck + - name: Run UMB generator with Valgrind env: UMB_GEN_BIN: build/uscript_msgbuf_generator diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c7e263..8a7b63a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,8 @@ # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see . +# TODO: set Valgrind arguments here? + cmake_minimum_required(VERSION 3.25) project(uscript-msgbuf)