From 7a2a6131320db45af3a52f818f77c2791e6c0f06 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Sat, 1 Mar 2025 18:20:15 +0100 Subject: [PATCH] CI: github: run make unit-tests on the CI Run the new make unit-tests on the CI. It requires HAProxy to be built with -DDEBUG_UNIT so the -U option is available in HAProxy --- .github/workflows/vtest.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vtest.yml b/.github/workflows/vtest.yml index 9353bba22..e22308c82 100644 --- a/.github/workflows/vtest.yml +++ b/.github/workflows/vtest.yml @@ -117,7 +117,7 @@ jobs: ERR=1 \ TARGET=${{ matrix.TARGET }} \ CC=${{ matrix.CC }} \ - DEBUG="-DDEBUG_POOL_INTEGRITY" \ + DEBUG="-DDEBUG_POOL_INTEGRITY -DDEBUG_UNIT" \ ${{ join(matrix.FLAGS, ' ') }} \ ADDLIB="-Wl,-rpath,/usr/local/lib/ -Wl,-rpath,$HOME/opt/lib/" sudo make install @@ -146,6 +146,10 @@ jobs: ulimit -n 65536 ulimit -c unlimited make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel + - name: Run Unit tests + id: unittests + run: | + make unit-tests - name: Config syntax check memleak smoke testing if: ${{ contains(matrix.name, 'ASAN') }} run: |