From: William Lallemand Date: Sat, 1 Mar 2025 17:20:15 +0000 (+0100) Subject: CI: github: run make unit-tests on the CI X-Git-Tag: v3.2-dev7~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a2a6131320db45af3a52f818f77c2791e6c0f06;p=thirdparty%2Fhaproxy.git 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 --- 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: |