Skip to content

Commit f282520

Browse files
author
Muhammad Fadli Gunardi
committed
chore: support apple silicon chip
1 parent f442d05 commit f282520

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
ALL_PACKAGES=$(shell go list ./... | grep -v "vendor")
44
APP_EXECUTABLE="raccoon"
55
COVER_FILE="/tmp/coverage.out"
6+
GOTEST_TAGS ?= dynamic
67

78
all: setup compile
89

@@ -46,12 +47,16 @@ lint:
4647
# Tests
4748

4849
test: lint
49-
ENVIRONMENT=test go test $(shell go list ./... | grep -v "vendor" | grep -v "integration") -v
50-
@go list ./... | grep -v "vendor" | grep -v "integration" | xargs go test -count 1 -cover -short -race -timeout 1m -coverprofile ${COVER_FILE}
50+
ENVIRONMENT=test go test -tags $(GOTEST_TAGS) $(shell go list ./... | grep -v "vendor" | grep -v "integration") -v
51+
@go list ./... | grep -v "vendor" | grep -v "integration" | xargs go test -tags $(GOTEST_TAGS) -count 1 -cover -short -race -timeout 1m -coverprofile ${COVER_FILE}
5152
@go tool cover -func ${COVER_FILE} | tail -1 | xargs echo test coverage:
5253

54+
coverage:
55+
ENVIRONMENT=test go test -tags $(GOTEST_TAGS) -coverprofile=${COVER_FILE} $(shell go list ./... | grep -v "vendor" | grep -v "integration") -v
56+
go tool cover -html=${COVER_FILE}
57+
5358
test-bench: # run benchmark tests
54-
@go test $(shell go list ./... | grep -v "vendor") -v -bench ./... -run=^Benchmark
59+
@go test -tags $(GOTEST_TAGS) $(shell go list ./... | grep -v "vendor") -v -bench ./... -run=^Benchmark
5560

5661
test_ci: setup test
5762

0 commit comments

Comments
 (0)