From fa7f26a2292f4347761cd62fa0f4f4837768d28a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Po=C5=82awski?= Date: Wed, 13 Mar 2024 12:48:30 +0100 Subject: [PATCH] test: Add stage test trigger to makefile Stage tests are located in the other place than module or run tests. For consistency separated target in makefile is added. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 1537a2d8..5a51888b 100644 --- a/Makefile +++ b/Makefile @@ -95,6 +95,7 @@ help: @echo " test-all: Run all tests" @echo " test-data: Generate test data" @echo " test-module: Run all module unit-tests" + @echo " test-stage: Run all stage unit-tests" @echo " test-run: Run all osbuild pipeline tests" $(BUILDDIR)/: @@ -225,6 +226,13 @@ test-module: --rootdir=$(SRCDIR) \ -v +.PHONY: test-stage +test-stage: + @$(PYTHON3) -m pytest \ + $(SRCDIR)/stages/test \ + --rootdir=$(SRCDIR) \ + -v + .PHONY: test-run test-run: @[[ $${EUID} -eq 0 ]] || (echo "Error: Root privileges required!"; exit 1)