test: convert LIST unit tests from CMock to Ztest framework #4
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: "Unit tests (Zephyr ztest)" | |
| on: | |
| pull_request: | |
| branches: | |
| - 'main' | |
| permissions: | |
| contents: read | |
| # Specifies group name that stops previous workflows if the name matches | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| zephyr-utests: | |
| name: SOF CI Unit Tests | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout SOF repository | |
| uses: actions/checkout@v4 | |
| with: | |
| path: ./workspace/sof | |
| fetch-depth: 2 | |
| filter: 'tree:0' | |
| - name: west update | |
| run: | | |
| cd workspace/sof | |
| pip3 install west | |
| west init -l | |
| west update --narrow --fetch-opt=--filter=tree:0 | |
| - name: build and run unit tests | |
| run: | | |
| cd workspace | |
| echo "pwd: $(pwd)" | |
| echo "ls -l:" | |
| ls -l | |
| west twister --testsuite-root sof/test/ztest/unit/ --platform native_sim --verbose --inline-logs | |
| echo "End" |