Skip to content

Commit 013f4e6

Browse files
committed
Fix curl cjose bind9
1 parent d1598bf commit 013f4e6

5 files changed

Lines changed: 36 additions & 5 deletions

File tree

.github/scripts/check-workflow-result.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,23 @@ if [ "$WOLFPROV_FORCE_FAIL" = "WOLFPROV_FORCE_FAIL=1" ]; then
293293
echo "Error: $IPERF_TEST_LOG not found"
294294
exit 1
295295
fi
296+
# ----- BIND9 -----
297+
elif [ "$TEST_SUITE" = "bind9" ]; then
298+
if [ -f "bind9-test.log" ]; then
299+
# Check for expected error count (12 errors) and non-zero exit code
300+
if grep -q "ERROR: 12" bind9-test.log && [ $TEST_RESULT -ne 0 ]; then
301+
echo "PASS: BIND9 tests failed as expected with force fail enabled (12 errors)"
302+
exit 0
303+
else
304+
echo "FAIL: BIND9 tests did not fail as expected with force fail enabled"
305+
echo " Expected: 12 errors and non-zero exit code"
306+
echo " Got: $(grep 'ERROR:' bind9-test.log | tail -1) and exit code $TEST_RESULT"
307+
exit 1
308+
fi
309+
else
310+
echo "Error: bind9-test.log not found"
311+
exit 1
312+
fi
296313
else
297314
if [ $TEST_RESULT -eq 0 ]; then
298315
echo "$TEST_SUITE tests unexpectedly succeeded with force fail enabled"

.github/workflows/cjose.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,15 @@ jobs:
8484
run: |
8585
# Set up the environment for wolfProvider
8686
source $GITHUB_WORKSPACE/scripts/env-setup
87-
export LDFLAGS="-L${OPENSSL_INSTALL}/lib64"
87+
88+
# Set additional environment variables for OpenSSL
89+
export OPENSSL_INSTALL=$GITHUB_WORKSPACE/openssl-install
90+
export LDFLAGS="-L${OPENSSL_INSTALL}/lib64 -L${OPENSSL_INSTALL}/lib"
8891
export CPPFLAGS="-I${OPENSSL_INSTALL}/include"
92+
export PKG_CONFIG_PATH="${OPENSSL_INSTALL}/lib64/pkgconfig:${OPENSSL_INSTALL}/lib/pkgconfig:${PKG_CONFIG_PATH}"
8993
9094
# Configure with OpenSSL
91-
./configure CFLAGS="-Wno-error=deprecated-declarations" --with-openssl=$GITHUB_WORKSPACE/openssl-install
95+
./configure CFLAGS="-Wno-error=deprecated-declarations" --with-openssl=$OPENSSL_INSTALL
9296
9397
# Build cjose
9498
make

.github/workflows/cmdline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
# If not yet built this version, build it now
5252
- name: Build wolfProvider
5353
# Only run the test for a cache miss. On hit, we've already run the test.
54-
if: steps.wolfprov-cache-restore.cache-hit != 'true'
54+
if: steps.wolfprov-cache.outputs.cache-hit != 'true'
5555
run: |
5656
${{ matrix.debug }} OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh
5757

.github/workflows/curl.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,23 @@ jobs:
7373
sudo apt-get install -y build-essential autoconf automake libtool \
7474
pkg-config nghttp2 libpsl5 libpsl-dev python3-impacket
7575
76+
- name: Set up environment for curl build
77+
run: |
78+
# Set up the environment for wolfProvider
79+
source $GITHUB_WORKSPACE/scripts/env-setup
80+
echo "OPENSSL_INSTALL=$OPENSSL_INSTALL" >> $GITHUB_ENV
81+
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV
82+
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" >> $GITHUB_ENV
83+
echo "CPPFLAGS=$CPPFLAGS" >> $GITHUB_ENV
84+
echo "LDFLAGS=$LDFLAGS" >> $GITHUB_ENV
85+
7686
- name: Build curl
7787
uses: wolfSSL/actions-build-autotools-project@v1
7888
with:
7989
repository: curl/curl
8090
path: curl
8191
ref: ${{ matrix.curl_ref }}
82-
configure: --with-openssl
92+
configure: --with-openssl=$OPENSSL_INSTALL
8393
check: false
8494

8595
- name: Generate certificates for curl master force-fail tests

.github/workflows/simple.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383

8484
- name: Build and test wolfProvider
8585
# Only run the test for a cache miss. On hit, we've already run the test.
86-
if: steps.wolfprov-cache-restore.cache-hit != 'true'
86+
if: steps.wolfprov-cache-restore.outputs.cache-hit != 'true'
8787
run: |
8888
${{ matrix.debug }} \
8989
OPENSSL_TAG=${{ matrix.openssl_ref }} \

0 commit comments

Comments
 (0)