You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/development/integration_testing.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,26 @@
1
-
# Integration Testing cAdvisor
1
+
# Integration Testing cAdvisor
2
+
3
+
## Docker-based tests
4
+
5
+
The cAdvisor integration tests are run per-pr using [Github Actions](https://help.github.com/en/actions). Workflow configuration can be found at [.github/workflows/test.yml](.github/workflows/test.yml). Tests are executed in Docker containers run on MS Azure virtual machines.
6
+
7
+
To run them locally Docker must be installed on your machine. Following command allows you to execute default suite of integration tests:
8
+
9
+
```
10
+
make docker-test-integration
11
+
```
12
+
13
+
Build scripts take care of building cAdvisor and integration tests, and executing them against running cAdvisor process.
14
+
15
+
In order to run non-default tests suites (e.g. such that rely on third-party C libraries) you must source one of the files available at [build/config](build/config), e.g.:
16
+
17
+
```
18
+
source build/config/libpfm4.sh && make docker-test-integration
19
+
```
20
+
21
+
All the necessary packages will be installed, build flags will be applied and additional parameters will be passed to cAdvisor automatically. Configuration is performed using shell environment variables.
22
+
23
+
## VM-base tests (legacy)
2
24
3
25
The cAdvisor integration tests are run per-pr using the [kubernetes node-e2e testing framework](https://github.com/kubernetes/community/blob/master/contributors/devel/e2e-node-tests.md) on GCE instances. To make use of this framework, complete the setup of GCP described in the node-e2e testing framework, clone `k8s.io/kubernetes`, and from that repository run:
0 commit comments