-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 649 Bytes
/
Makefile
File metadata and controls
31 lines (21 loc) · 649 Bytes
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
.PHONY: proto build test test-unit test-grpc test-integration test-all clean run
BINARY := openshell-driver-openshift
SOCKET := /var/run/openshell-driver.sock
proto:
buf generate
mkdir -p gen/computev1
mv gen/compute_driver*.go gen/computev1/ 2>/dev/null || true
build:
go build -o $(BINARY) ./cmd/driver/
test-unit:
go test ./internal/driver/ -timeout 30s -v
test-grpc:
go test ./internal/grpctest/ -timeout 30s -v
test-integration:
go test ./test/integration/ -tags integration -timeout 120s -v
test: test-unit test-grpc
test-all: test test-integration
clean:
rm -f $(BINARY) $(SOCKET)
run: build
./$(BINARY) --socket $(SOCKET)