checkpointing, heavy dev
This commit is contained in:
25
Makefile
25
Makefile
@@ -13,7 +13,7 @@ fmt:
|
||||
|
||||
fmt-check:
|
||||
@echo "Checking formatting..."
|
||||
@test -z "$$(gofmt -l .)" || (echo "Files need formatting. Run 'make fmt'" && gofmt -l . && exit 1)
|
||||
@test -z "$$(gofmt -l . | grep -v '^vendor/')" || (echo "Files need formatting. Run 'make fmt'" && gofmt -l . | grep -v '^vendor/' && exit 1)
|
||||
|
||||
lint:
|
||||
golangci-lint run
|
||||
@@ -39,4 +39,25 @@ run-daemon: build
|
||||
|
||||
deps:
|
||||
go mod download
|
||||
go mod tidy
|
||||
go mod tidy
|
||||
|
||||
# VM Testing
|
||||
.PHONY: vmtest
|
||||
|
||||
vmtest:
|
||||
cd test/qemu-ubuntu-test && ./run-qemu.sh
|
||||
|
||||
# Debug build
|
||||
.PHONY: debug
|
||||
|
||||
debug:
|
||||
go build -gcflags="all=-N -l" -o hdmistat-debug ./cmd/hdmistat
|
||||
@echo "Debug build complete: hdmistat-debug"
|
||||
@echo ""
|
||||
@echo "Debug features:"
|
||||
@echo " - SIGUSR1 dumps all goroutine stack traces"
|
||||
@echo " - Built with debug symbols (-N -l)"
|
||||
@echo ""
|
||||
@echo "To debug a hang:"
|
||||
@echo " kill -USR1 <pid> # Dump goroutines"
|
||||
@echo " kill -QUIT <pid> # Also dumps goroutines (Go default)"
|
||||
Reference in New Issue
Block a user