File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Only these tests work for csi-drivers-flex, E2E and sanity testing
4
+ # will require further work.
5
+ : ${CSI_PROW_TESTS:= " unit serial parallel serial-alpha parallel-alpha" }
6
+
7
+ # Customize deployment and E2E testing.
8
+ : ${CSI_PROW_DEPLOY_SCRIPT:= " deploy.sh" }
9
+ : ${CSI_PROW_DEPLOYMENT:= " kubernetes" }
10
+ : ${CSI_PROW_E2E_TEST_PREFIX:= " CSI Volumes" }
11
+
12
+ . release-tools/prow.sh
13
+
14
+ # Install custom E2E test suite as bin/tests.
15
+ install_e2e () {
16
+ if [ -e " ${CSI_PROW_WORK} /e2e.test" ]; then
17
+ return
18
+ fi
19
+
20
+ make build-tests && cp bin/tests " ${CSI_PROW_WORK} /e2e.test"
21
+ }
22
+
23
+ # Invoke the custom E2E test suite for a certain subset of the tests (serial, parallel, ...)
24
+ run_e2e () (
25
+ name=" $1 "
26
+ shift
27
+
28
+ install_e2e || die " building e2e.test failed"
29
+ install_ginkgo || die " installing ginkgo failed"
30
+
31
+ trap " move_junit '$name '" EXIT
32
+
33
+ cd " ${GOPATH} /src/${CSI_PROW_E2E_IMPORT_PATH} " &&
34
+ run_with_loggers ginkgo -v " $@ " " ${CSI_PROW_WORK} /e2e.test" -- -report-dir " ${ARTIFACTS} "
35
+ )
36
+
37
+ main
You can’t perform that action at this time.
0 commit comments