Add test for batteries module, update deps

This commit is contained in:
eleksir
2024-09-23 00:20:06 +03:00
parent 4bff21f4c7
commit 7ce2d9d9ec
98 changed files with 3114 additions and 99 deletions

View File

@@ -3,6 +3,7 @@
BUILDOPTS=-ldflags="-s -w" -a -gcflags=all=-l -trimpath
BINARY=i3status-go
TEST1=battery-test
## Use calssic targets where first one is deafult target
all: clean build
@@ -11,10 +12,12 @@ all: clean build
build:
go build ${BUILDOPTS} -o ${BINARY} ./cmd/${BINARY}
battery-test:
go build ${BUILDOPTS} -o ${TEST1} ./cmd/${TEST1}
## Remove binary with golang compiler' means
clean:
rm -rf ${BINARY}
rm -rf ${BINARY} ${TEST1}
## Misc target, for development purposes. Updates vendored libs, brutal way.