Skip to content

Commit

Permalink
add benchmark/test tool
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Nov 26, 2024
1 parent bd90eaf commit e916214
Show file tree
Hide file tree
Showing 6 changed files with 407 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/lmd
/lb
lmd.ini
lmd.log
*.swp
Expand Down
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,6 @@ issues:
- gomnd
- lll
- musttag
- path: lb\.go
linters:
- lll
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ golangci: tools
# golangci combines a few static code analyzer
# See https://github.com/golangci/golangci-lint
#
@set -e; for dir in $$(ls -1d pkg/* cmd); do \
@set -e; for dir in $$(ls -1d pkg/* cmd buildtools); do \
echo $$dir; \
echo " - GOOS=linux"; \
( cd $$dir && GOOS=linux golangci-lint run --timeout=5m ./... ); \
Expand Down Expand Up @@ -229,6 +229,10 @@ zip: clean
ls -la lmd-$$FILE.gz; \
echo "lmd-$$FILE.gz created";

lb: vendor buildtools/lb.go
$(GO) build $(BUILD_FLAGS) -o ./lb ./buildtools/lb.go


# just skip unknown make targets
.DEFAULT:
@if [[ "$(MAKECMDGOALS)" =~ ^testf ]]; then \
Expand Down
Loading

0 comments on commit e916214

Please sign in to comment.