blob: be38384ff6fe20c959b3e9a63b635de8af1fe62b [file] [log] [blame]
Holger Hildebrandtfa074992020-03-27 15:42:06 +00001all: vet test testrace
2
Abhay Kumare65b2792025-11-10 13:39:07 +00003build:
Holger Hildebrandtfa074992020-03-27 15:42:06 +00004 go build google.golang.org/grpc/...
5
6clean:
7 go clean -i google.golang.org/grpc/...
8
9deps:
Abhay Kumare65b2792025-11-10 13:39:07 +000010 GO111MODULE=on go get -d -v google.golang.org/grpc/...
Holger Hildebrandtfa074992020-03-27 15:42:06 +000011
12proto:
13 @ if ! which protoc > /dev/null; then \
14 echo "error: protoc not installed" >&2; \
15 exit 1; \
16 fi
17 go generate google.golang.org/grpc/...
18
Abhay Kumare65b2792025-11-10 13:39:07 +000019test:
Holger Hildebrandtfa074992020-03-27 15:42:06 +000020 go test -cpu 1,4 -timeout 7m google.golang.org/grpc/...
21
Abhay Kumare65b2792025-11-10 13:39:07 +000022testsubmodule:
23 cd security/advancedtls && go test -cpu 1,4 -timeout 7m google.golang.org/grpc/security/advancedtls/...
24 cd security/authorization && go test -cpu 1,4 -timeout 7m google.golang.org/grpc/security/authorization/...
Holger Hildebrandtfa074992020-03-27 15:42:06 +000025
Abhay Kumare65b2792025-11-10 13:39:07 +000026testrace:
Holger Hildebrandtfa074992020-03-27 15:42:06 +000027 go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/...
28
Abhay Kumare65b2792025-11-10 13:39:07 +000029testdeps:
30 GO111MODULE=on go get -d -v -t google.golang.org/grpc/...
Holger Hildebrandtfa074992020-03-27 15:42:06 +000031
32vet: vetdeps
Abhay Kumare65b2792025-11-10 13:39:07 +000033 ./scripts/vet.sh
Holger Hildebrandtfa074992020-03-27 15:42:06 +000034
35vetdeps:
Abhay Kumare65b2792025-11-10 13:39:07 +000036 ./scripts/vet.sh -install
Holger Hildebrandtfa074992020-03-27 15:42:06 +000037
38.PHONY: \
39 all \
40 build \
41 clean \
42 deps \
43 proto \
44 test \
Abhay Kumare65b2792025-11-10 13:39:07 +000045 testsubmodule \
Holger Hildebrandtfa074992020-03-27 15:42:06 +000046 testrace \
Abhay Kumare65b2792025-11-10 13:39:07 +000047 testdeps \
Holger Hildebrandtfa074992020-03-27 15:42:06 +000048 vet \
49 vetdeps