-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (46 loc) · 1.37 KB
/
Makefile
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
49
50
51
52
53
54
CURDIR :=$(shell pwd)
GOPATH :=$(CURDIR)
PATH :=$(CURDIR)/bin:$(PATH)
ifeq (false,${DEBUG})
export GOTRACEBACK=none
endif
simulator:
go install ./src/simulation/exception/
go install ./src/simulation/consensus/
go install ./src/simulation/stubborn/
go install ./src/simulation/simulator/
go install ./src/simulation/mutation/
go install ./src/simulation/failuredetection/
install:
go get "github.com/orcaman/concurrent-map"
go get "github.com/joa/failuredetector"
go get "github.com/yangwenmai/ratelimit/leakybucket"
go get "github.com/yangwenmai/ratelimit/simpleratelimit"
go get "github.com/kr/pretty"
go get "github.com/tensorflow/tensorflow/tensorflow/go"
go get "github.com/galeone/tfgo"
go get "github.com/go-delve/delve/cmd/dlv"
go get "go.uber.org/ratelimit"
go get gonum.org/v1/plot/...
run_mutation:
./bin/simulator ${MUTATION} ${NODES} ${DEFAULT_DELTA} ${MAX_TRIES} \
${PERCENTAGE_MISS} ${LATENCY} ${BANDWIDTH} ${PERCENTAGE_FAULTS} \
${PROBABILITY_TO_FAIL} ${WITH_ALL_METRICS}
format:
go fmt ./src/simulation/exception/
go fmt ./src/simulation/consensus/
go fmt ./src/simulation/stubborn/
go fmt ./src/simulation/simulator/
go fmt ./src/simulation/mutation/
go fmt ./src/simulation/failuredetection/
debug:
dlv debug ./src/simulation/simulator/
clean_results:
rm *.csv
rm *.png
rm -rf ./results
clean:
rm -rf ./bin
rm -rf ./pkg
rm *.csv
rm *.png