Skip to content

Commit a8b1b08

Browse files
chipitsinewtarreau
authored andcommitted
CI: musl: enable unit tests
Run the new make unit-tests on the CI.
1 parent 01225f9 commit a8b1b08

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/musl.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
echo '/tmp/core/core.%h.%e.%t' > /proc/sys/kernel/core_pattern
2323
- uses: actions/checkout@v4
2424
- name: Install dependencies
25-
run: apk add gcc gdb make tar git python3 libc-dev linux-headers pcre-dev pcre2-dev openssl-dev lua5.3-dev grep socat curl musl-dbg lua5.3-dbg
25+
run: apk add gcc gdb make tar git python3 libc-dev linux-headers pcre-dev pcre2-dev openssl-dev lua5.3-dev grep socat curl musl-dbg lua5.3-dbg jose
2626
- name: Install VTest
2727
run: scripts/build-vtest.sh
2828
- name: Build
29-
run: make -j$(nproc) TARGET=linux-musl ARCH_FLAGS='-ggdb3' CC=cc V=1 USE_LUA=1 LUA_INC=/usr/include/lua5.3 LUA_LIB=/usr/lib/lua5.3 USE_OPENSSL=1 USE_PCRE2=1 USE_PCRE2_JIT=1 USE_PROMEX=1
29+
run: make -j$(nproc) TARGET=linux-musl DEBUG="-DDEBUG_POOL_INTEGRITY -DDEBUG_UNIT" ARCH_FLAGS='-ggdb3' CC=cc V=1 USE_LUA=1 LUA_INC=/usr/include/lua5.3 LUA_LIB=/usr/lib/lua5.3 USE_OPENSSL=1 USE_PCRE2=1 USE_PCRE2_JIT=1 USE_PROMEX=1
3030
- name: Show version
3131
run: ./haproxy -vv
3232
- name: Show linked libraries
@@ -37,6 +37,10 @@ jobs:
3737
- name: Run VTest
3838
id: vtest
3939
run: make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel
40+
- name: Run Unit tests
41+
id: unittests
42+
run: |
43+
make unit-tests
4044
- name: Show coredumps
4145
if: ${{ failure() && steps.vtest.outcome == 'failure' }}
4246
run: |
@@ -60,3 +64,13 @@ jobs:
6064
cat $folder/LOG
6165
echo "::endgroup::"
6266
done
67+
- name: Show Unit-Tests results
68+
if: ${{ failure() && steps.unittests.outcome == 'failure' }}
69+
run: |
70+
for result in ${TMPDIR:-/tmp}/ha-unittests-*/results/res.*; do
71+
printf "::group::"
72+
cat $result
73+
echo "::endgroup::"
74+
done
75+
exit 1
76+

0 commit comments

Comments
 (0)