Merge pull request #17 from danielinux/runtime-devid #61
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: Test PSA API | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test-psa-api: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out wolfPSA | |
| uses: actions/checkout@v4 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential autoconf automake libtool libtool-bin pkg-config | |
| - name: Clone sibling wolfSSL | |
| run: git clone --depth 1 https://github.com/wolfSSL/wolfssl ../wolfssl | |
| - name: Build wolfPSA | |
| run: make | |
| - name: Build sibling wolfSSL for wolfPSA tests | |
| run: make -C test rebuild-wolfssl-psa | |
| - name: Build PSA API tests | |
| run: make -C test psa_api_test psa_des3_stack_scrub_test psa_ecc_bit_inference_test psa_ecc_curve_id_test psa_random_size_test | |
| - name: Run PSA API test | |
| env: | |
| LD_LIBRARY_PATH: ${{ github.workspace }}:${{ github.workspace }}/../wolfssl/src/.libs | |
| run: | | |
| rm -rf test/.store | |
| ./test/psa_api_test | |
| - name: Run ECC bit inference test | |
| env: | |
| LD_LIBRARY_PATH: ${{ github.workspace }}:${{ github.workspace }}/../wolfssl/src/.libs | |
| run: | | |
| rm -rf test/.store | |
| ./test/psa_ecc_bit_inference_test | |
| - name: Run DES3 stack scrub test | |
| env: | |
| LD_LIBRARY_PATH: ${{ github.workspace }}:${{ github.workspace }}/../wolfssl/src/.libs | |
| run: | | |
| rm -rf test/.store | |
| ./test/psa_des3_stack_scrub_test | |
| - name: Run ECC curve id test | |
| env: | |
| LD_LIBRARY_PATH: ${{ github.workspace }}:${{ github.workspace }}/../wolfssl/src/.libs | |
| run: | | |
| rm -rf test/.store | |
| ./test/psa_ecc_curve_id_test | |
| - name: Run random size test | |
| env: | |
| LD_LIBRARY_PATH: ${{ github.workspace }}:${{ github.workspace }}/../wolfssl/src/.libs | |
| run: | | |
| rm -rf test/.store | |
| ./test/psa_random_size_test |