Skip to content

Commit 61b30a0

Browse files
chipitsinewtarreau
authored andcommitted
CI: AWS-LC: enable unit tests
Run the new make unit-tests on the CI.
1 parent 944a961 commit 61b30a0

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/aws-lc.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111
jobs:
1212
test:
1313
runs-on: ubuntu-latest
14+
if: ${{ github.repository_owner == 'haproxy' || github.event_name == 'workflow_dispatch' }}
1415
steps:
1516
- uses: actions/checkout@v4
1617
- name: Install VTest
@@ -31,7 +32,7 @@ jobs:
3132
- name: Install apt dependencies
3233
run: |
3334
sudo apt-get update -o Acquire::Languages=none -o Acquire::Translation=none
34-
sudo apt-get --no-install-recommends -y install socat gdb
35+
sudo apt-get --no-install-recommends -y install socat gdb jose
3536
- name: Install AWS-LC
3637
if: ${{ steps.cache_ssl.outputs.cache-hit != 'true' }}
3738
run: env ${{ steps.get_aws_lc_release.outputs.result }} scripts/build-ssl.sh
@@ -40,7 +41,7 @@ jobs:
4041
make -j$(nproc) ERR=1 CC=gcc TARGET=linux-glibc \
4142
USE_OPENSSL_AWSLC=1 USE_QUIC=1 \
4243
SSL_LIB=${HOME}/opt/lib SSL_INC=${HOME}/opt/include \
43-
DEBUG="-DDEBUG_POOL_INTEGRITY" \
44+
DEBUG="-DDEBUG_POOL_INTEGRITY -DDEBUG_UNIT" \
4445
ADDLIB="-Wl,-rpath,/usr/local/lib/ -Wl,-rpath,$HOME/opt/lib/"
4546
sudo make install
4647
- name: Show HAProxy version
@@ -60,6 +61,10 @@ jobs:
6061
# allow to catch coredumps
6162
ulimit -c unlimited
6263
make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel
64+
- name: Run Unit tests
65+
id: unittests
66+
run: |
67+
make unit-tests
6368
- name: Show VTest results
6469
if: ${{ failure() && steps.vtest.outcome == 'failure' }}
6570
run: |
@@ -84,3 +89,13 @@ jobs:
8489
if [ "$failed" = true ]; then
8590
exit 1;
8691
fi
92+
- name: Show Unit-Tests results
93+
if: ${{ failure() && steps.unittests.outcome == 'failure' }}
94+
run: |
95+
for result in ${TMPDIR:-/tmp}/ha-unittests-*/results/res.*; do
96+
printf "::group::"
97+
cat $result
98+
echo "::endgroup::"
99+
done
100+
exit 1
101+

0 commit comments

Comments
 (0)