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:
parent
0a72145b13
commit
fa7f26a229
1 changed files with 8 additions and 0 deletions
8
Makefile
8
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue