forked from hpe-storage/truenas-csp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (34 loc) · 1.4 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
E2E=./e2e.test
TEST_PREFIX=External.Storage.\[Driver:.csi.hpe.com\].*
FOCUS=
ifndef KUBECONFIG
$(error KUBECONFIG is not set)
endif
KUBEVER:=$(shell kubectl --kubeconfig ${KUBECONFIG} version -o json | \
jq .serverVersion.gitVersion)
ifeq ("$(wildcard $(E2E))","")
$(shell curl --location https://dl.k8s.io/$(KUBEVER)/kubernetes-test-linux-amd64.tar.gz | \
tar --strip-components=3 -zxf - kubernetes/test/bin/e2e.test kubernetes/test/bin/ginkgo)
endif
all: rwo rwx
rwo:
mkdir -p reports-rw0
$(E2E) --ginkgo.v \
--ginkgo.focus='$(TEST_PREFIX)$(FOCUS)' \
--ginkgo.skip='\[Feature:|\[Disruptive\]|\[Serial\]' \
--non-blocking-taints=node-role.kubernetes.io/control-plane,node-role.kubernetes.io/etcd,node-role.kubernetes.io/master \
--ginkgo.timeout=8h \
-storage.testdriver=test-driver-rwo.yaml \
-report-dir=reports-rwo
rwx:
mkdir -p reports-rwx
$(E2E) --ginkgo.v \
--ginkgo.focus='$(TEST_PREFIX)$(FOCUS)' \
--ginkgo.skip='\[Feature:|\[Disruptive\]|\[Serial\]' \
--ginkgo.skip='.phemeral' \
--non-blocking-taints=node-role.kubernetes.io/control-plane,node-role.kubernetes.io/etcd,node-role.kubernetes.io/master \
--ginkgo.timeout=8h \
-storage.testdriver=test-driver-rwx.yaml \
-report-dir=reports-rwx
clean:
rm -rf e2e.test ginkgo reports-rwo reports-rwx