Skip to content

Commit 77ef33b

Browse files
authored
Merge pull request #144 from Jakob-Naucke/optional-parallel-integration
tests: Default integration test threads to 1
2 parents 0c17fcd + 4dca750 commit 77ef33b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ NAMESPACE ?= trusted-execution-clusters
99
PLATFORM ?= kind
1010

1111
KUBECTL=kubectl
12+
INTEGRATION_TEST_THREADS ?= 1
1213

1314
LOCALBIN ?= $(shell pwd)/bin
1415
CONTROLLER_TOOLS_VERSION ?= v0.19.0
@@ -181,7 +182,7 @@ test-release: crds-rs
181182

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

186187
$(LOCALBIN):
187188
mkdir -p $(LOCALBIN)

tests/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ VM, like getting the serial console and verifying that the guest has correctly b
1212
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.
1313

1414
Run the tests locally with kind:
15-
```
15+
```bash
1616
export RUNTIME=docker
1717
make cluster-up
1818
export REGISTRY=localhost:5000/trusted-execution-clusters
1919
make push
2020
make install-kubevirt
21+
# Set $INTEGRATION_TEST_THREADS to multi-thread (>4G memory per test)
2122
make integration-tests
2223
```
2324

0 commit comments

Comments
 (0)