From de38252c4bc6bd0ac000260a1abf4d5de0fb98bc Mon Sep 17 00:00:00 2001 From: Vynull App Date: Mon, 27 Jul 2026 21:44:49 +0000 Subject: [PATCH] make: test and check targets test runs the unit suite; check is the full pre-release gate - build, vet, a failing gofmt guard, unit tests, then the e2e suite - so the release checklist automated section is one command instead of five. --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b88105b..c862601 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,21 @@ # SPDX-License-Identifier: GPL-3.0-or-later -.PHONY: build run run-cdj generate e2e clean +.PHONY: build test check run run-cdj generate e2e clean build: go build -o vynull . +test: + go test ./... + +# The full pre-release gate: build, vet, formatting, unit tests, then the +# e2e suite (see the e2e target's requirements below). +check: + go build ./... + go vet ./... + @fmt=$$(gofmt -l .); if [ -n "$$fmt" ]; then echo "gofmt needed:"; echo "$$fmt"; exit 1; fi + go test ./... + $(MAKE) e2e + # rekordbox mode (the default) — no privileged ports needed run: build ./vynull --music-dir $(MUSIC)