forked from PingCAP-QE/clustered-index-rand-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (25 loc) · 818 Bytes
/
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
count ?= 20
all: build
build: fmt
@echo "Building binary..."
@go build -o bin/clustered-index-rand-test
fmt:
@echo "go fmt..."
@go fmt ./...
abtest: bins build
@./tests/run-test.sh
bins:
@which bin/tidb-master || (echo "bin/tidb-master not found" && exit 1)
@which bin/tidb-4.0 || (echo "bin/tidb-4.0 not found" && exit 1)
test-syntax: bins build
@python3 tests/run-syntax-check.py $(count)
gen: build
@bin/clustered-index-rand-test print --count $(count) | xargs -I _ echo "_;"
#clean:
# @rm bin/tidb-master 2> /dev/null || echo "bin/tidb-master not found"
# @rm bin/tidb-4.0 2> /dev/null || echo "bin/tidb-4.0 not found"
# @rm bin/clustered-index-rand-test 2> /dev/null || echo "bin/tidb-4.0 not found"
start-services:
@./tests/_utils/start_services
stop-services:
@./tests/_utils/stop_services