diff options
author | Thomas Haller <thaller@redhat.com> | 2022-03-04 17:05:45 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-03-04 20:34:42 (GMT) |
commit | b1caff802c42ae549da8a426e8e944d3da84052b (patch) | |
tree | 1015736e4fe80ead98705192e26b060b6049dbe4 /.github | |
parent | 38b3be3ef2ba545111d346076955298a06d61cad (diff) | |
download | libnl-b1caff802c42ae549da8a426e8e944d3da84052b.zip libnl-b1caff802c42ae549da8a426e8e944d3da84052b.tar.gz libnl-b1caff802c42ae549da8a426e8e944d3da84052b.tar.bz2 |
github: run unit tests under valgrind
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2bb7744..ce020bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,19 +9,27 @@ jobs: runs-on: ubuntu-latest steps: - name: Install packages - run: sudo apt-get -y install check + run: | + sudo apt-get update + sudo apt-get -y install check valgrind libtool-bin - name: Check out repository code uses: actions/checkout@v2 - name: Build and Test run: | + set -x + CFLAGS="-DNL_MORE_ASSERTS=1000 -O2 -Werror -Wall -Wdeclaration-after-statement -Wvla" if [ "$CC" = "clang" ]; then CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument -Wno-error=unused-function" fi export CFLAGS + ./autogen.sh ./configure make -j 5 make -j 5 check + + CK_FORK=no libtool --mode=execute valgrind --error-exitcode=66 --leak-check=full -s --show-leak-kinds=all ./tests/check-all + CK_FORK=no libtool --mode=execute valgrind --error-exitcode=66 --leak-check=full -s --show-leak-kinds=all ./tests/check-direct shell: bash - run: echo "🍏 This job's status is ${{ job.status }}." |