This repository has been archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
149 lines (112 loc) · 3.12 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
all: build
.PHONY: deps
deps:
@GO111MODULE=on go mod vendor
.PHONY: build
build:
@go build
.PHONY: build/docker
build/docker:
@docker build -t opennetsys/golkadot:latest .
.PHONY: start
start:
@go run cmd/node/node.go
.PHONY: start/docker
start/docker:
@docker run opennetsys/golkadot:latest ./golkadot --help
.PHONY: test
test:
@go test -v `go list ./... | grep -v wasm` && echo "ALL PASS" || echo "FAILURE"
.PHONY: test/wasm
test/wasm:
@go test -v wasm/*.go
.PHONY: test/rpc
test/rpc:
@go test -v rpc/*.go
.PHONY: test/p2p
test/p2p:
@go test -v p2p/*.go
.PHONY: test/types
test/types:
@go test -v types/*.go
.PHONY: test/runtime
test/runtime:
@go test -v runtime/*.go $(ARGS)
.PHONY: test/client
test/client:
@go test -v client/*.go
.PHONY: test/telemetry
test/telemetry:
@go test -v client/telemetry/*.go
.PHONY: test/clientdb
test/clientdb:
@go test -v client/db/*.go
.PHONY: test/clientchain
test/clientchain:
@go test -v client/chain/*.go
.PHONY: test/client/chainloader
test/client/chainloader:
@go test -v client/chains/loader/*.go
.PHONY: test/common/all
test/common/all:
@go test -v $$(go list ./... | grep common/)
.PHONY: test/common
test/common:
@go test -v common/common*.go
.PHONY: test/common/hexutil
test/common/hexutil:
@go test -v common/hexutil/*.go
.PHONY: test/common/stringutil
test/common/stringutil:
@go test -v common/stringutil/*.go
.PHONY: test/common/assert
test/common/assert:
@go test -v common/assert/*.go
.PHONY: test/common/ext
test/common/ext:
@go test -v common/ext/*.go
.PHONY: test/common/bnutil
test/common/bnutil:
@go test -v common/bnutil/*.go
.PHONY: test/common/chainspec
test/common/chainspec:
@go test -v common/chainspec/*.go
.PHONY: test/common/u8compact
test/common/u8compact:
@go test -v common/u8compact/*.go
.PHONY: test/common/u8util
test/common/u8util:
@go test -v common/u8util/*.go
.PHONY: test/common/triecodec
test/common/triecodec:
@go test -v common/triecodec/*.go $(ARGS)
.PHONY: test/common/triehash
test/common/triehash:
@go test -v common/triehash/*.go $(ARGS)
.PHONY: test/common/triedb
test/common/triedb:
@go test -v common/triedb/*.go $(ARGS)
.PHONY: test/common/crypto
test/common/crypto:
@go test -v common/crypto/*.go
.PHONY: test/common/mathutil
test/common/mathutil:
@go test -v common/mathutil/*.go
.PHONY: test/common/db
test/common/db:
@go test -v common/db/*.go
.PHONY: test/common/fileflatdb
test/common/fileflatdb:
@go test -v common/fileflatdb/*.go
.PHONY: test/common/diskdb
test/common/diskdb:
@go test -v common/diskdb/*.go
.PHONY: move/repo
move/repo:
@find . -type f -name '*.go' -not \( -path './.git/*' -o -path './vendor/*' \) -exec sed -i 's|github.com/c3systems/go-substrate/|github.com/opennetsys/go-substrate/|g' {} \;
.PHONY: move/name
move/name:
@find . -type f -name '*.go' -not \( -path './.git/*' -o -path './vendor/*' \) -exec sed -i 's|github.com/opennetsys/go-substrate/|github.com/opennetsys/godot/|g' {} \;
.PHONY: move/name/golkadot
move/name/golkadot:
@find . -type f -name '*.go' -not \( -path './.git/*' -o -path './vendor/*' \) -exec sed -i 's|github.com/opennetsys/godot/|github.com/opennetsys/golkadot/|g' {} \;