-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 1.17 KB
/
Makefile
File metadata and controls
36 lines (28 loc) · 1.17 KB
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
include $(CURDIR)/../make/env.mk
ROX_PROJECT=tests
TESTFLAGS=-race -p 1 -timeout 30m
TOPLEVEL=$(CURDIR)/..
.PHONY: all
all: test
@echo "+ $@"
@$(MAKE) report JUNIT_OUT=all-tests-results
.PHONY: compatibility-tests
compatibility-tests:
@echo "+ $@"
@GOTAGS=$(GOTAGS),test,test_compatibility $(TOPLEVEL)/scripts/go-test.sh -cover $(TESTFLAGS) -v $(shell go list -e ./... | grep -v generated | grep -v vendor) 2>&1 | tee test.log
@$(MAKE) report JUNIT_OUT=compatibility-tests-results
.PHONY: destructive-tests
destructive-tests:
@echo "+ $@"
@GOTAGS=$(GOTAGS),test,destructive ../scripts/go-test.sh -cover -v -run TestClusterDeletion 2>&1 | tee test.log
@$(MAKE) report JUNIT_OUT=destructive-tests-results
.PHONY: external-backup-tests
external-backup-tests:
@echo "+ $@"
@GOTAGS=$(GOTAGS),test,externalbackups ../scripts/go-test.sh -cover -v -run TestGCSExternalBackup 2>&1 | tee test.log
@$(MAKE) report JUNIT_OUT=external-backup-tests-results
.PHONY: compliance-v2-tests
compliance-v2-tests:
@GOTAGS=$(GOTAGS),test,compliance ../scripts/go-test.sh -cover -v -run TestComplianceV2 2>&1 | tee test.log
@$(MAKE) report JUNIT_OUT=compliance-v2-tests-results
include ../make/stackrox.mk