-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 730 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (29 loc) · 730 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
32
33
34
35
36
37
.PHONY: build test vet fmt-check demo demo-simulate benchmark
BINARY := bin/topoqueue
build:
@mkdir -p $(dir $(BINARY))
go build -o $(BINARY) ./cmd/topoqueue
test:
go test -race ./...
vet:
go vet ./...
fmt-check:
@set -e; \
unformatted="$$(gofmt -l .)"; \
if [ -n "$$unformatted" ]; then \
printf 'The following files require gofmt:\n%s\n' "$$unformatted"; \
exit 1; \
fi
demo:
go run ./cmd/topoqueue compare \
--cluster examples/cluster.yaml \
--jobs examples/jobs.yaml \
--output text
demo-simulate:
go run ./cmd/topoqueue simulate \
--cluster examples/cluster.yaml \
--jobs examples/timed-jobs.yaml \
--policy all \
--output text
benchmark:
go test -run '^$$' -bench . ./internal/scheduler