forked from krzysztof-turowski/distributed-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (33 loc) · 1.28 KB
/
Makefile
File metadata and controls
48 lines (33 loc) · 1.28 KB
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
38
39
40
41
42
43
44
45
46
47
48
all: test benchmark check
example: sync_directed_hypercube_leader_example sync_directed_ring_leader_example sync_undirected_graph_leader_example sync_undirected_mesh_leader_example sync_mst_example sync_mis_example sync_ben_or_example
runners:
go run example/synchronized.go 5
sync_directed_hypercube_leader_example:
go run example/sync_directed_hypercube_leader.go 6
sync_directed_ring_leader_example:
go run example/sync_directed_ring_leader.go 10
go run example/sync_directed_ring_chang_roberts.go 10
go run example/sync_directed_ring_dolev_klawe_rodeh.go a 10
go run example/sync_directed_ring_dolev_klawe_rodeh.go b 10
sync_undirected_graph_leader_example:
go run example/sync_undirected_graph_yoyo.go 20 0.25
sync_undirected_mesh_leader_example:
go run example/sync_undirected_mesh_peterson_leader.go 6 9
sync_mst_example:
go run example/sync_mst_ghs.go 10 30 100
sync_mis_example:
go run example/sync_mis_luby.go 20 0.25
sync_ben_or_example:
go run example/sync_consensus_ben_or.go 6 1
unit_test:
go test ./leader/undirected_graph -v
go test ./graphs/mst -v
test:
go test ./test -run . -v
benchmark:
go test ./test -bench . -benchtime 10x -run Benchmark -v
check:
@go vet `go list ./... | grep -v example`
format:
gofmt -l -s -w .
.PHONY: all unit_test test benchmark