Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
70 lines (52 loc) · 1.6 KB
/
Copy pathMakefile
File metadata and controls
70 lines (52 loc) · 1.6 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.DEFAULT_GOAL := all
# End-to-end profile run by `make e2e` (l1 | l2 | l3). Requires a linux/amd64
# bin/k8e and a running docker daemon.
E2E_PROFILE ?= l1
# Extra args for `make test-rqlite-m0`, e.g. RQLITE_M0_TEST_ARGS='-run TestTxn'.
RQLITE_M0_TEST_ARGS ?=
# Extra args for `make test-rqlite-m1`, e.g. RQLITE_M1_TEST_ARGS='-run TestM1ThreeNode'.
RQLITE_M1_TEST_ARGS ?=
.PHONY: all k8e tandem clean deps format generate package package-cli package-airgap test test-rqlite-m0 test-rqlite-m1 e2e
all:
zig build all
tandem:
cd tandem && zig build
@mkdir -p bin
@arch=$$(uname -m); \
case "$$arch" in \
x86_64) tarch="x86_64-linux-musl" ;; \
arm64|aarch64) tarch="aarch64-linux-musl" ;; \
*) tarch="$$arch-linux-musl" ;; \
esac; \
if [ -f "tandem/bin/tandem-$$tarch" ]; then \
cp -f "tandem/bin/tandem-$$tarch" bin/tandem; \
fi
k8e: tandem
zig build k8e
clean:
zig build clean
deps:
zig build deps
format:
zig build fmt
generate:
zig build generate
package:
zig build package
package-cli:
zig build package-cli
package-airgap:
zig build package-airgap
test:
zig build test
# M0 evidence for KIP-29: downloads and sha256-verifies the pinned rqlited,
# then runs tests/rqlitecompat against it. Skips nothing: RQLITE_BIN is set.
test-rqlite-m0:
hack/rqlite-m0/run.sh $(RQLITE_M0_TEST_ARGS)
# M1 evidence for KIP-29: the compatibility layer's differential suite against
# the embedded etcd (plus three-node, restart, TLS and wire-limit checks), on
# the same pinned and sha256-verified rqlited as M0.
test-rqlite-m1:
hack/rqlite-m1/run.sh $(RQLITE_M1_TEST_ARGS)
e2e:
hack/e2e/run.sh $(E2E_PROFILE)