Skip to content

Commit cebfea5

Browse files
update client only test case for TLS
1 parent 0272216 commit cebfea5

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/build-and-test-clientonly.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,24 @@ jobs:
5959
# Restart server with fresh state for second test run
6060
- name: Restart POSIX server
6161
run: |
62-
kill $TCP_SERVER_PID || true
62+
kill $SERVER_PID || true
6363
cd examples/posix/wh_posix_server
6464
rm -f *.bin || true
65-
./Build/wh_posix_server.elf &
66-
TCP_SERVER_PID=$!
67-
echo "TCP_SERVER_PID=$TCP_SERVER_PID" >> $GITHUB_ENV
65+
./Build/wh_posix_server.elf --type ${{ matrix.transport }} &
66+
SERVER_PID=$!
67+
echo "SERVER_PID=$SERVER_PID" >> $GITHUB_ENV
6868
sleep 2
6969
7070
# Build and test client-only with DEBUG_VERBOSE=1 (includes DEBUG)
7171
- name: Build client-only unit tests with DEBUG_VERBOSE
7272
run: |
7373
cd test
7474
make clean
75-
make -j CLIENT_ONLY_TCP=1 SHE=1 DEBUG_VERBOSE=1 WOLFSSL_DIR=../wolfssl && make run
75+
if [ "${{ matrix.transport }}" = "tcp" ]; then
76+
make -j CLIENT_ONLY_TCP=1 SHE=1 DEBUG_VERBOSE=1 WOLFSSL_DIR=../wolfssl && make run
77+
else
78+
make -j CLIENT_ONLY_TLS=1 SHE=1 DEBUG_VERBOSE=1 WOLFSSL_DIR=../wolfssl && make run
79+
fi
7680
7781
# Optional: Kill the server process if it doesn't exit on its own
7882
- name: Cleanup POSIX server

0 commit comments

Comments
 (0)