From 3df67e9adb60fe3ceb2aad0d754f071dfce9a215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Fri, 20 Oct 2023 10:54:20 +0200 Subject: [PATCH] Makefile: add `unit-tests` target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add Makefile target to run all unit tests. Signed-off-by: Tomáš Hozza --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 8fada5a72..13460168d 100644 --- a/Makefile +++ b/Makefile @@ -74,6 +74,7 @@ help: @echo @echo " help: Print this usage information." @echo " man: Generate all man-pages" + @echo " unit-tests: Run unit tests" $(BUILDDIR)/: mkdir -p "$@" @@ -195,6 +196,10 @@ worker-key-pair: ca # delete the request rm /etc/osbuild-composer/worker-csr.pem +.PHONY: unit-tests +unit-tests: + go test -race ./... + go test -race ./internal/dnfjson/... -force-dnf # # Building packages