-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
43 lines (33 loc) · 1 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
39
40
41
42
43
OPENFAAS_URL?=http://127.0.0.1:8080/
GOFLAGS := -mod=vendor
TEST_FUNCTIONS = \
stronghash \
env-test \
env-test-annotations \
env-test-labels \
env-test-verbs \
test-secret-crud \
test-min-scale \
test-scale-from-zero \
test-throughput-scaling \
test-scaling-disabled \
test-scaling-to-zero \
test-logger \
redirector-test \
secret-string \
secret-bytes \
memory-limit
TEST_SECRETS = \
secret-string \
secret-bytes
export TEST_FUNCTIONS TEST_SECRETS
clean-kubernetes:
- ./contrib/clean_kubernetes.sh
clean-faasd:
- ./contrib/clean_faasd.sh
.TEST_FLAGS= # additional test flags, e.g. -run ^Test_ScaleFromZeroDuringIvoke$
.FEATURE_FLAGS= # set config feature flags, e.g. -enableScaling, -secretUpdate
test-kubernetes: clean-kubernetes
CERTIFIER_NAMESPACES=certifier-test time go test -p=1 -count=1 ./tests -v -gateway=${OPENFAAS_URL} ${.FEATURE_FLAGS} ${.TEST_FLAGS}
test-faasd: clean-faasd
time go test -p=1 -count=1 ./tests -v -gateway=${OPENFAAS_URL} -enableAuth ${.FEATURE_FLAGS} ${.TEST_FLAGS}