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
This commit is contained in:
William Lallemand 2025-03-01 18:20:15 +01:00
parent 09457111bb
commit 7a2a613132

View File

@ -117,7 +117,7 @@ jobs:
ERR=1 \ ERR=1 \
TARGET=${{ matrix.TARGET }} \ TARGET=${{ matrix.TARGET }} \
CC=${{ matrix.CC }} \ CC=${{ matrix.CC }} \
DEBUG="-DDEBUG_POOL_INTEGRITY" \ DEBUG="-DDEBUG_POOL_INTEGRITY -DDEBUG_UNIT" \
${{ join(matrix.FLAGS, ' ') }} \ ${{ join(matrix.FLAGS, ' ') }} \
ADDLIB="-Wl,-rpath,/usr/local/lib/ -Wl,-rpath,$HOME/opt/lib/" ADDLIB="-Wl,-rpath,/usr/local/lib/ -Wl,-rpath,$HOME/opt/lib/"
sudo make install sudo make install
@ -146,6 +146,10 @@ jobs:
ulimit -n 65536 ulimit -n 65536
ulimit -c unlimited ulimit -c unlimited
make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel 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 - name: Config syntax check memleak smoke testing
if: ${{ contains(matrix.name, 'ASAN') }} if: ${{ contains(matrix.name, 'ASAN') }}
run: | run: |