]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Run unit tests under valgrind.
authorDarren Tucker <dtucker@dtucker.net>
Thu, 8 Apr 2021 03:31:08 +0000 (13:31 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 8 Apr 2021 03:35:14 +0000 (13:35 +1000)
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
.github/workflows/c-cpp.yml

index 87c7a6dc213a2ddb84e6c422840abf420fc6cefb..62dbe879511031bf1ef7bc27288d7762a6746e25 100755 (executable)
@@ -84,6 +84,9 @@ case "$config" in
            valgrind-4)
                LTESTS="${tests4}"
                ;;
+           valgrind-unit)
+               TEST_TARGET="unit USE_VALGRIND=1"
+               ;;
        esac
        ;;
     *)
index a712af7c2189f0e91d57a066c18bbcd7ae2e7b38..c4ae28434305a1f4fcd9109f15723298cb1df53a 100644 (file)
@@ -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 }