|
73 | 73 | matrix: |
74 | 74 | curl_ref: [ 'master', 'curl-8_4_0' ] |
75 | 75 | wolfssl_ref: [ 'master', 'v5.7.4-stable' ] |
| 76 | + force_fail: [ 1, 0 ] |
76 | 77 | steps: |
77 | 78 | - name: Checkout wolfProvider |
78 | 79 | uses: actions/checkout@v4 |
@@ -115,34 +116,26 @@ jobs: |
115 | 116 | configure: --with-openssl |
116 | 117 | check: false |
117 | 118 |
|
118 | | - - name: Test curl with wolfProvider - default |
119 | | - working-directory: curl |
| 119 | + - name: Generate certificates for force-fail tests |
120 | 120 | run: | |
121 | | - # Set environment variables for default |
122 | | - export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/wolfssl-install/lib:$GITHUB_WORKSPACE/openssl-install/lib64 |
123 | | - export OPENSSL_CONF=$GITHUB_WORKSPACE/provider.conf |
124 | | - export OPENSSL_MODULES=$GITHUB_WORKSPACE/wolfprov-install/lib |
125 | | - export PKG_CONFIG_PATH=$GITHUB_WORKSPACE/openssl-install/lib64/pkgconfig |
126 | | -
|
127 | | - # Run tests |
128 | | - make -j$(nproc) test-ci || true |
129 | | - TEST_RESULT=$? |
130 | | - $GITHUB_WORKSPACE/.github/scripts/check-workflow-result.sh $TEST_RESULT 0 curl |
| 121 | + if [ "${{ matrix.force_fail }}" = "1" ]; then |
| 122 | + cd curl/tests/certs |
| 123 | + make test-ca.cacert |
| 124 | + cd ../.. |
| 125 | + fi |
131 | 126 |
|
132 | | - # Test WPFF after default so certs get generated |
133 | | - - name: Test curl with wolfProvider - force fail |
| 127 | + - name: Test curl with wolfProvider |
134 | 128 | working-directory: curl |
135 | 129 | run: | |
136 | | - # Set environment variables for force fail |
| 130 | + # Set environment variables |
137 | 131 | export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/wolfssl-install/lib:$GITHUB_WORKSPACE/openssl-install/lib64 |
138 | 132 | export OPENSSL_CONF=$GITHUB_WORKSPACE/provider.conf |
139 | 133 | export OPENSSL_MODULES=$GITHUB_WORKSPACE/wolfprov-install/lib |
140 | 134 | export PKG_CONFIG_PATH=$GITHUB_WORKSPACE/openssl-install/lib64/pkgconfig |
141 | | - export WOLFPROV_FORCE_FAIL=1 |
| 135 | + export WOLFPROV_FORCE_FAIL=${{ matrix.force_fail }} |
142 | 136 | export CURL_REF=${{ matrix.curl_ref }} |
143 | 137 |
|
144 | | - # Run tests and save output to test.log |
145 | | - mkdir -p tests |
146 | | - make -j$(nproc) test-ci 2>&1 | tee tests/test.log || true |
| 138 | + # Run tests |
| 139 | + make -j$(nproc) test-ci || true |
147 | 140 | TEST_RESULT=$? |
148 | | - $GITHUB_WORKSPACE/.github/scripts/check-workflow-result.sh $TEST_RESULT 1 curl |
| 141 | + $GITHUB_WORKSPACE/.github/scripts/check-workflow-result.sh $TEST_RESULT ${{ matrix.force_fail }} curl |
0 commit comments