From 391be3176ee8a561eee3d6d20da40ea7f05ddb33 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Thu, 4 Feb 2021 14:11:34 +0100 Subject: [PATCH] [CI] main.yml: Run unit tests with valgrind --- .github/workflows/main.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e5aa7cdc..038578c2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,13 +43,17 @@ jobs: cd build-${{matrix.TLS}}-${{matrix.CC}} make - name: test - if: matrix.TLS != 'tinydtls' run: | cd build-${{matrix.TLS}}-${{matrix.CC}} - libtool --mode=execute tests/testdriver - - name: test tinydtls - if: matrix.TLS == 'tinydtls' + libtool --mode=execute valgrind --track-origins=yes --leak-check=yes --show-reachable=yes --error-exitcode=123 --quiet --suppressions=$GITHUB_WORKSPACE/tests/valgrind_suppression tests/testdriver + - name: OSS Fuzz + if: matrix.TLS == 'openssl' # run only once for each compiler run: | cd build-${{matrix.TLS}}-${{matrix.CC}} - LD_LIBRARY_PATH="ext/tinydtls" libtool --mode=execute tests/testdriver - + make -C tests/oss-fuzz -f Makefile.ci check clean + - name: manual page examples check + if: matrix.TLS == 'openssl' # run only once for each compiler + run: | + cd build-${{matrix.TLS}}-${{matrix.CC}} + make -C man + man/examples-code-check man