Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
NAMESPACE ?= trusted-execution-clusters

KUBECTL=kubectl
INTEGRATION_TEST_THREADS ?= 1

LOCALBIN ?= $(shell pwd)/bin
CONTROLLER_TOOLS_VERSION ?= v0.19.0
Expand Down Expand Up @@ -172,7 +173,7 @@ test-release: crds-rs

integration-tests: generate trusted-cluster-gen crds-rs
RUST_LOG=info cargo test --test trusted_execution_cluster --test attestation \
--features virtualization -- --no-capture --test-threads=3
--features virtualization -- --no-capture --test-threads=$(INTEGRATION_TEST_THREADS)

$(LOCALBIN):
mkdir -p $(LOCALBIN)
Expand Down
3 changes: 2 additions & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ VM, like getting the serial console and verifying that the guest has correctly b
N.B KubeVirt requires the cluster to be run as a privileged container on the host in order to handle the devices. Therefore, for now, we have moved to Docker with kind in order to generate the cluster. In the future, we might be able to move to rootful podman.

Run the tests locally with kind:
```
```bash
export RUNTIME=docker
make cluster-up
export REGISTRY=localhost:5000/trusted-execution-clusters
make push
make install-kubevirt
# Set $INTEGRATION_TEST_THREADS to multi-thread (>4G memory per test)
make integration-tests
```

Expand Down