diff options
author | Darren Tucker <dtucker@dtucker.net> | 2021-04-08 13:31:08 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2021-04-08 13:35:14 +1000 |
commit | 19e534462710e98737478fd9c44768b50c27c4c6 (patch) | |
tree | 3dbb6b79fa549126a58a2b8ae4457d3b0f82cb07 | |
parent | 80032102d05e866dc2a48a5caf760cf42c2e090e (diff) |
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.
-rwxr-xr-x | .github/configs | 3 | ||||
-rw-r--r-- | .github/workflows/c-cpp.yml | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/.github/configs b/.github/configs index 87c7a6dc..62dbe879 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 a712af7c..c4ae2843 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 } |