File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ # How to Run the Origin Tests Against a Cluster
2
+
3
+ ## Create a Cluster
4
+
5
+ The origin tests will run against any OpenShift cluster, you just need to set the
6
+ ` KUBECONFIG ` variable for the ` oc ` (or ` kubectl ` ) command.
7
+
8
+ As of this writing, the tests only work with a ` techpreview ` deployment. The tests will
9
+ be skipped if ` techpreview ` is not specified.
10
+
11
+ ### Example Clusterbot Command
12
+ ```
13
+ launch 4.18 aws,techpreview
14
+ ```
15
+
16
+ ## Get the openshift/origin Repo
17
+
18
+ ```
19
+ git clone https://github.com/openshift/origin.git
20
+ ```
21
+
22
+ ## Build the Tests
23
+
24
+ From the root of the repository:
25
+ ```
26
+ make WHAT=cmd/openshift-tests
27
+ ```
28
+
29
+ ## List the OLMv1 Tests
30
+
31
+ All the OLMv1 tests use a ` sig-olmv1 ` prefix, and this can be used to minimize the set of tests. From within the root of the ` openshift/origin ` repo:
32
+
33
+ ```
34
+ ./openshift-tests run all --dry-run | grep sig-olmv1
35
+ ```
36
+
37
+ ## Run ALL the Tests
38
+
39
+ To run all the tests, use the ` run all ` options. This requires the ` KUBECONFIG ` variable to reference the OpenShift cluster.
40
+
41
+ ```
42
+ ./openshift-tests run all
43
+ ```
44
+
45
+ ## Run a Subset (e.g. OLMv1) of the Tests
46
+
47
+ To run a subset of the tests, use the ` -f ` option with the desrired tests. Passing ` - ` to the ` -f ` argument will let you specify the tests via stdin.
48
+
49
+ ```
50
+ ./openshift-tests run all --dry-run | grep sig-olmv1 | ./openshift-tests run -f -
51
+ ```
You can’t perform that action at this time.
0 commit comments