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.
This commit is contained in:
Paweł Poławski 2024-03-13 12:48:30 +01:00 committed by Simon de Vlieger
parent 0a72145b13
commit fa7f26a229

View file

@ -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)