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: doc/ctest.md
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,49 +1,48 @@
1
1
2
2
### Run Test
3
3
4
-
Use `ctest` to run a single test or batch of tests. You can do this at the top-level `build` directory or under each workload directory. In the latter case, only the tests of the workload will be executed.
4
+
Use `./ctest.sh` to run a single test or batch of tests. You can do this at the top-level `build` directory or under each workload directory. In the latter case, only the tests of the workload will be executed.
5
5
6
6
```
7
7
cd build
8
8
cd workload/dummy
9
-
ctest
9
+
./ctest.sh -N
10
10
```
11
11
12
12
### CTest Options
13
13
14
-
There is extensive list of options in `ctest` to control how tests can be executed. See the `ctest` manpage. The followings are most common options.
14
+
There is extensive list of options in `./ctest.sh` to control how tests can be executed. See the `./ctest.sh` manpage. The followings are most common options.
15
15
16
16
-*`-R`*: Select tests based on a regular expression string.
17
17
-*`-E`*: Exclude tests based on a regular expression string.
18
18
-*`-V`*: Show test execution with details.
19
19
-*`-N`*: Dry-run the tests only.
20
20
21
21
Example: list tests with `boringssl` in name excluding those with `_gated`
22
+
22
23
```
23
-
ctest -R boringssl -E _gated -N
24
-
```
24
+
./ctest.sh -R boringssl -E _gated -N
25
25
26
+
```
26
27
Example: run only `test_static_boringssl` (exact match)
28
+
27
29
```
28
-
ctest -R '^test_static_boringssl$'
30
+
./ctest.sh -R '^test_static_boringssl$'
29
31
```
30
32
31
33
### Customize Configurations
32
34
33
-
It is possible to specify a global test configuration file to overwrite any configuration parameter of a test case:
35
+
It is possible to specify a test configuration file to overwrite any configuration parameter of a test case:
34
36
35
37
```
36
-
TEST_CONFIG=$(pwd)/test_config.yaml ctest -V
38
+
./ctest.sh --config=test_config.yaml -V
37
39
```
38
40
39
-
where `TEST_CONFIG` specifies the test configuration file.
40
-
41
41
The configuration file uses the following format:
42
42
43
43
```
44
44
*_dummy_pi:
45
45
SCALE: 3000
46
-
47
46
```
48
47
49
48
where `*_dummy_pi` specifies the test case name. You can use `*` to specify a wildcard match. The subsection underneath specifies the configuration variables and values. Any parameters specified in each test case [`validate.sh`](validate.md) can be overwritten.
@@ -62,17 +61,19 @@ A set of utility scripts are linked under your workload build directory to make
62
61
Usage: [options]
63
62
--nohup Run ctest in the daemon mode for long benchmark
64
63
--loop Run the benchmark multiple times sequentially.
65
-
--run Run the benchmark multiple times on the same SUT(s), only for cumulus.
64
+
--run Run the benchmark multiple times on the same SUT(s).
66
65
--burst Run the benchmark multiple times simultaneously.
With the cumulus backend, it is possible to reuse the Cloud SUT instances during the benchmark process. This is especially useful in tuning parameters for any workload.
175
+
It is possible to reuse the Cloud SUT instances during the benchmark process. This is especially useful in tuning parameters for any workload.
175
176
176
177
To reuse any SUT instances, you need to first prepare (provision) the Cloud instances, using the `ctest.sh``--prepare-sut` command as follows:
177
178
@@ -205,6 +206,6 @@ SUT reuse is subject to the following limitations:
205
206
206
207
---
207
208
208
-
Please cleanup the Cloud instances after use.
209
+
After using the Cloud instances, please clean them up.
Copy file name to clipboardExpand all lines: doc/setup-auth.md
+20-11Lines changed: 20 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,35 @@
1
1
2
2
### Introduction
3
3
4
-
A private docker registry is optional in most of the validation scenarios except if you want to run the workloads on an On-Premises Kubernetes cluster, or you explicitly setup a docker registry to store any newly built workload images.
4
+
A private docker registry is optional in most of the validation scenarios except if you want to run the workloads on an On-Premises Kubernetes cluster, or you explicitly setup a docker registry to store any newly built workload images.
5
5
6
-
This document describes how to authenticate to a docker registry if the registry requires authentication. Skip this document if there is no authentication requirement.
6
+
This document describes how to authenticate to a docker registry if the registry requires authentication. Skip this document if there is no authentication requirement.
7
7
8
8
### `REGISTRY_AUTH`
9
9
10
-
The [`cmake`](cmake.md)`REGISTRY_AUTH` option specifies how to authenticate to a private docker registry. Currently, `docker`is the only supported value, which uses the docker authentication mechanism.
10
+
The [`cmake`](cmake.md)`REGISTRY_AUTH` option specifies how to authenticate to a private docker registry. Currently, `docker`and `pass` are the only supported values, which uses the docker authentication mechanism or docker-credential-pass with pass as password store.
11
11
12
-
Enable the `REGISTRY_AUTH` option:
12
+
#### Docker
13
+
14
+
Enable the `REGISTRY_AUTH` option:
13
15
14
16
```
15
17
cmake -DREGISTRY=<url> -DREGISTRY_AUTH=docker ..
16
18
```
17
19
18
-
With the above command, the validation scripts will upload the docker authentication information specified in `.docker/config.json` as a Kubernetes `imagePullSecret` to the validation cluster, On-Premises or in Cloud.
20
+
With the above command, the validation scripts will upload the docker authentication information specified in `.docker/config.json` as a Kubernetes `imagePullSecret` to the validation cluster, On-Premises or in Cloud.
21
+
22
+
> `CredHelpers` or `CredStore` in `.docker/config.json` is not supported.
23
+
24
+
#### Pass
25
+
26
+
Enable the `REGISTRY_AUTH` option:
19
27
20
-
> `CredHelpers` or `CredStore` in `.docker/config.json` is not supported.
28
+
```
29
+
cmake -DREGISTRY=<url> -DREGISTRY_AUTH=pass ..
30
+
```
31
+
32
+
Version for both pass and docker-credential-pass binaries is read automatically. With the above command, the validation scripts will make the `pass` and `gpg` session available on execution machine.
Copy file name to clipboardExpand all lines: doc/setup-docker.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
2
-
The `docker` engine is a prerequisite to build the workload images. It is also one of the validation backends that can be used to run single-container workloads on your local machine.
2
+
The `docker` engine is a prerequisite to build the docker images.
0 commit comments