]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: github: run make unit-tests on the CI
authorWilliam Lallemand <wlallemand@haproxy.com>
Sat, 1 Mar 2025 17:20:15 +0000 (18:20 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 3 Mar 2025 11:43:32 +0000 (12:43 +0100)
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

index 9353bba22dd0aeb94e30146edfd1163a865e2b33..e22308c823e87ffca8e1523615fdceb2ae93a70d 100644 (file)
@@ -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: |