Skip to content

Commit

Permalink
[ci] Test uart_smoketest with QEMU env in CI
Browse files Browse the repository at this point in the history
Signed-off-by: James Wainwright <[email protected]>
  • Loading branch information
jwnrt committed Jan 21, 2025
1 parent b6f1644 commit 20fb404
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -702,3 +702,28 @@ jobs:
- name: Check for unrunnable tests
run: ./ci/scripts/check-unrunnable-tests.sh
continue-on-error: true

execute_rom_qemu_tests:
name: QEMU ROM Tests
needs: quick_lint
runs-on: ubuntu-22.04-vivado
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Required for bitstream cache to work.
- name: Prepare environment
uses: ./.github/actions/prepare-env
with:
service_account_json: '${{ secrets.BAZEL_CACHE_CREDS }}'
- name: Execute QEMU tests
run: |
./bazelisk.sh test \
--run_under=//ci/scripts:run_test \
--define DISABLED_VERILATOR_BUILD=true \
--nokeep_going \
--test_timeout_filters=short,moderate \
--test_output=all \
--build_tests_only \
--flaky_test_attempts=2 \
--test_tag_filters=sim_qemu \
//...
5 changes: 5 additions & 0 deletions sw/device/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ load(
"fpga_params",
"opentitan_binary",
"opentitan_test",
"qemu_params",
"silicon_params",
"verilator_params",
)
Expand Down Expand Up @@ -4256,8 +4257,12 @@ opentitan_test(
EARLGREY_CW340_TEST_ENVS,
{
"//hw/top_earlgrey:silicon_creator": None,
"//hw/top_earlgrey:sim_qemu_rom_with_fake_keys": None,
},
),
qemu = qemu_params(
test_harness = "//third_party/qemu:qemu-system-riscv32",
),
deps = [
"//hw/top_earlgrey/sw/autogen:top_earlgrey",
"//sw/device/lib/arch:device",
Expand Down

0 comments on commit 20fb404

Please sign in to comment.