Add Command-Line Integration Tests for AES, RSA, RSA-PSS, HASH, and ECC Operations #288
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Simple Tests | |
| # START OF COMMON SECTION | |
| on: | |
| push: | |
| branches: [ '*' ] | |
| # branches: [ 'master', 'main', 'release/**' ] | |
| pull_request: | |
| branches: [ '*' ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| # END OF COMMON SECTION | |
| jobs: | |
| make_check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| strategy: | |
| matrix: | |
| config: | |
| - '' | |
| - 'OPENSSL_TAG=master' | |
| - 'WOLFSSL_TAG=master' | |
| - 'OPENSSL_TAG=master WOLFSSL_TAG=master' | |
| force_fail: | |
| - '' | |
| - 'WOLFPROV_FORCE_FAIL=1' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| name: Checkout repository | |
| - name: Run build and tests | |
| run: | | |
| # Build first with matrix config | |
| ${{ matrix.config }} ${{ matrix.force_fail }} ./scripts/build-wolfprovider.sh || BUILD_RESULT=$? | |
| # Run all tests regardless of build result | |
| ${{ matrix.force_fail }} ./scripts/cmd_test/do-cmd-tests.sh || TEST_RESULT=$? | |
| # For force_fail, we expect failures (return 1) | |
| if [ -n "${{ matrix.force_fail }}" ]; then | |
| if [ $BUILD_RESULT -eq 0 ] || [ $TEST_RESULT -eq 0 ]; then | |
| echo "Build/Test unexpectedly succeeded with force fail enabled" | |
| exit 1 # failure was not seen when expected | |
| else | |
| echo "Build/Test failed as expected with force fail enabled" | |
| exit 0 # expected failure occurred | |
| fi | |
| else | |
| # Normal case - expect success | |
| if [ $BUILD_RESULT -ne 0 ] || [ $TEST_RESULT -ne 0 ]; then | |
| exit 1 # unexpected failure | |
| fi | |
| fi | |
| - name: Print test logs | |
| if: always() | |
| run: | | |
| if [ -f test-suite.log ] ; then | |
| cat test-suite.log | |
| fi | |