Skip to content

Commit

Permalink
[ci] Run more on-host tests in sw_tests
Browse files Browse the repository at this point in the history
I noticed that a few unit test targets outside of //sw/... were not
running on CI.

This commit ensures that CI runs the following additional targets:
* //hw/ip/rom_ctrl/util:gen_vivado_mem_image_test (after lowRISC#15163 merges)
* //rules/scripts:bitstreams_workspace_test
* //util:generate_compilation_db_test

Signed-off-by: Dan McArdle <dmcardle@google.com>
  • Loading branch information
dmcardle committed Oct 19, 2022
1 parent feac7a5 commit 67bbbf2
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,25 @@ jobs:
# Set the remote cache GCP key path
- bash: |
set -x -e
# This command builds all software and runs all unit tests that run on
# the host.
# This command builds all software and runs all unit tests that run on the
# host, with a few exceptions:
# * It excludes //quality because that's the purview of `slow_lints`.
# * It excludes the tests from //third_party/riscv-compliance because
# they're already covered by `execute_fpga_tests_cw310`.
# * It excludes //hw:all to avoid building Verilator, which is pulled in
# because //... effectively asks to build //hw:verilator_real and other
# targets in //hw:all that depend on it. Note that this is only a
# shallow exclusion; tests deeper under //hw will still be found.
export GCP_BAZEL_CACHE_KEY=$(bazelCacheGcpKeyPath)
ci/bazelisk.sh test \
--build_tests_only=false \
--test_output=errors \
--define DISABLE_VERILATOR_BUILD=true \
--test_tag_filters=-broken,-cw310,-verilator,-dv \
//sw/...
-- //... \
-//quality/... \
-//third_party/riscv-compliance/... \
-//hw:all
displayName: Build & test SW
- bash: |
set -x -e
Expand Down

0 comments on commit 67bbbf2

Please sign in to comment.