From 19e534462710e98737478fd9c44768b50c27c4c6 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 8 Apr 2021 13:31:08 +1000 Subject: [PATCH] Run unit tests under valgrind. Run a separate build for the unit tests under Valgrind. They take long enough that running in parallel with the other Valgrind tests helps. --- .github/configs | 3 +++ .github/workflows/c-cpp.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/configs b/.github/configs index 87c7a6dc2..62dbe8795 100755 --- a/.github/configs +++ b/.github/configs @@ -84,6 +84,9 @@ case "$config" in valgrind-4) LTESTS="${tests4}" ;; + valgrind-unit) + TEST_TARGET="unit USE_VALGRIND=1" + ;; esac ;; *) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index a712af7c2..c4ae28434 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -22,6 +22,7 @@ jobs: - { os: ubuntu-20.04, configs: valgrind-2 } - { os: ubuntu-20.04, configs: valgrind-3 } - { os: ubuntu-20.04, configs: valgrind-4 } + - { os: ubuntu-20.04, configs: valgrind-unit } - { os: ubuntu-20.04, configs: pam } - { os: ubuntu-20.04, configs: kitchensink } - { os: ubuntu-20.04, configs: hardenedmalloc }