-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (20 loc) · 1 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
# Small arg for overview testing
# 150 calls to logger (3 go routines * 10 iterations * (4 invisible + 1 visible)) so with 3*40 of them not logged unless -loglevel debug is passed:
ARGS:=-n 10 -e 4 -r 3
manual-check: manual-check-fortio manual-check-zap manual-check-slog
manual-check-fortio:
$(MAKE) manual-check-param PARAM=fortio
manual-check-zap:
$(MAKE) manual-check-param PARAM=zap
manual-check-slog:
$(MAKE) manual-check-param PARAM=slog
manual-check-param:
@echo "--- Manual eyeball test for $(PARAM), should have 10 log entries (out of 50 made) ---"
go run . $(PARAM) $(ARGS) 2>&1
@echo "--- Manual eyeball test, should have all 50 entries - in color and with goroutine just for fun ---"
GOMAXPROCS=8 go run -race . $(PARAM) $(ARGS) -loglevel debug -logger-force-color=true -logger-goroutine=true
@echo "--- end of $(PARAM) manual check ---"
.golangci.yml: Makefile
curl -fsS -o .golangci.yml https://raw.githubusercontent.com/fortio/workflows/main/golangci.yml
lint: .golangci.yml
golangci-lint run