blob: be38384ff6fe20c959b3e9a63b635de8af1fe62b [file] [log] [blame]
Scott Baker2c1c4822019-10-16 11:02:41 -07001all: vet test testrace
2
Abhay Kumar40252eb2025-10-13 13:25:53 +00003build:
Scott Baker2c1c4822019-10-16 11:02:41 -07004 go build google.golang.org/grpc/...
5
6clean:
7 go clean -i google.golang.org/grpc/...
8
9deps:
Abhay Kumar40252eb2025-10-13 13:25:53 +000010 GO111MODULE=on go get -d -v google.golang.org/grpc/...
Scott Baker2c1c4822019-10-16 11:02:41 -070011
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 Kumar40252eb2025-10-13 13:25:53 +000019test:
Scott Baker2c1c4822019-10-16 11:02:41 -070020 go test -cpu 1,4 -timeout 7m google.golang.org/grpc/...
21
Abhay Kumar40252eb2025-10-13 13:25:53 +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/...
Scott Baker2c1c4822019-10-16 11:02:41 -070025
Abhay Kumar40252eb2025-10-13 13:25:53 +000026testrace:
Scott Baker2c1c4822019-10-16 11:02:41 -070027 go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/...
28
Abhay Kumar40252eb2025-10-13 13:25:53 +000029testdeps:
30 GO111MODULE=on go get -d -v -t google.golang.org/grpc/...
Scott Baker2c1c4822019-10-16 11:02:41 -070031
32vet: vetdeps
Abhay Kumar40252eb2025-10-13 13:25:53 +000033 ./scripts/vet.sh
Scott Baker2c1c4822019-10-16 11:02:41 -070034
35vetdeps:
Abhay Kumar40252eb2025-10-13 13:25:53 +000036 ./scripts/vet.sh -install
Scott Baker2c1c4822019-10-16 11:02:41 -070037
38.PHONY: \
39 all \
40 build \
41 clean \
42 deps \
43 proto \
44 test \
Abhay Kumar40252eb2025-10-13 13:25:53 +000045 testsubmodule \
Scott Baker2c1c4822019-10-16 11:02:41 -070046 testrace \
Abhay Kumar40252eb2025-10-13 13:25:53 +000047 testdeps \
Scott Baker2c1c4822019-10-16 11:02:41 -070048 vet \
49 vetdeps