-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 1.38 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
.PHONY: build
OS=linux
ARCH=amd64
TEST_BINARY=livecheck_${OS}_${ARCH}
build:
mkdir -p output && GOOS=${OS} GOARCH=${ARCH} go build -o output/livecheck_${OS}_${ARCH} ./cmd/livecheck
test:
@go test ./internal/validator ./internal/runner
clean:
@rm -rf vendor && rm -rf output
integration-test: build
./livechecks/metrics.json.sh | ./output/${TEST_BINARY} -s -c ./livechecks/livecheck_all.yaml
! ./livechecks/metrics.json.sh | ./output/${TEST_BINARY} -s -c ./livechecks/livecheck_lua.yaml
! ./livechecks/metrics.json.sh | ./output/${TEST_BINARY} -s -c ./livechecks/livecheck_cel.yaml
./livechecks/metrics.json.sh | ./output/${TEST_BINARY} -s -c ./livechecks/livecheck_script.yaml
./livechecks/metrics.pid.json.sh && ./output/${TEST_BINARY} -c ./livechecks/livecheck_workers_cel.yaml
./livechecks/metrics.pid.problem.json.sh && ! ./output/${TEST_BINARY} -c ./livechecks/livecheck_workers_cel.yaml
./livechecks/metrics.json.sh | ./output/${TEST_BINARY} -s -c ./livechecks/livecheck_workers_cel.yaml
./livechecks/metrics.json.sh | ./output/${TEST_BINARY} -s -c ./livechecks/livecheck_l4_tcp.yaml
export CLIENT_CONNECTED=1 && ./output/${TEST_BINARY} -c ./livechecks/livecheck_cel_env.yaml -e
./output/${TEST_BINARY} -c ./livechecks/livecheck_cel_v4_file.yaml
all:
make OS=linux ARCH=arm64
make OS=linux ARCH=amd64
make OS=darwin ARCH=arm64
make OS=darwin ARCH=amd64
make OS=windows ARCH=amd64