-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (44 loc) · 1.68 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
# folder name of the package of interest
PKGNAME = remote
.PHONY: build final checkpoint all final-race checkpoint-race all-race clean docs
.SILENT: build final checkpoint all final-race checkpoint-race all-race clean docs
# compile the remote library.
build:
cd src/$(PKGNAME); go build $(PKGNAME).go
# run conformance tests.
final: build
cd src/$(PKGNAME); go test -v -run Final
checkpoint: build
cd src/$(PKGNAME); go test -v -run Checkpoint
all: build
cd src/$(PKGNAME); go test -v
final-race: build
cd src/$(PKGNAME); go test --timeout 60s -v -race -run Final
checkpoint-race: build
cd src/$(PKGNAME); go test --timeout 60s -v -race -run Checkpoint
all-race: build
cd src/$(PKGNAME); go test --timeout 60s -v -race
ServiceInterface: build
cd src/$(PKGNAME); go test -v -run TestCheckpoint_ServiceInterface
ServiceRuns: build
cd src/$(PKGNAME); go test -v -run TestCheckpoint_ServiceRuns
StubInterface: build
cd src/$(PKGNAME); go test -v -run TestFinal_StubInterface
StubConnects: build
cd src/$(PKGNAME); go test -v -run TestFinal_StubConnects
Connection: build
cd src/$(PKGNAME); go test -v -run TestFinal_Connection
LossyConnection: build
cd src/$(PKGNAME); go test -v -run TestFinal_LossyConnection
Reconnection: build
cd src/$(PKGNAME); go test -v -run TestFinal_LossyConnection
Multithread: build
cd src/$(PKGNAME); go test -v -run TestFinal_Multithread
Mismatch: build
cd src/$(PKGNAME); go test -v -run TestFinal_Mismatch
# delete executable and docs, leaving only source
clean:
rm -rf src/$(PKGNAME)/$(PKGNAME) src/$(PKGNAME)/$(PKGNAME)-doc.txt
# generate documentation for the package of interest
docs:
cd src/$(PKGNAME); go doc -u -all > $(PKGNAME)-doc.txt