ci: use bazel for unittests

This commit is contained in:
Leonard Cohnen 2023-05-04 11:59:31 +02:00 committed by Malte Poll
parent b467327128
commit c98644df2b
4 changed files with 19 additions and 110 deletions

View file

@ -83,13 +83,13 @@ You can also copy the `remote_cache` config from `.bazelrc` to your `~/.bazelrc`
# Test
You can run all integration and unitttests like this:
You can run all integration like this:
```sh
ctest -j `nproc`
```
You can limit the execution of tests to specific targets with e.g. `ctest -R unit-*` to only execute unit tests.
You can limit the execution of tests to specific targets with e.g. `ctest -R integration-node-operator`.
Some of the tests rely on libvirt and won't work if you don't have a virtualization capable CPU. You can find instructions on setting up libvirt in our [QEMU README](qemu.md).