build: align makefile targets with test-targets

Align the makefile targets with the test-targets (`module` -> `mod`,
etc.). This way, we have consistent names everywhere.

While at it, move the `make test-run` invocation closer to the others.
This commit is contained in:
David Rheinsberg 2020-05-29 11:22:04 +02:00
parent d584a1e225
commit 55da864e0a
3 changed files with 14 additions and 14 deletions

View file

@ -11,17 +11,6 @@ env:
PYTHONUNBUFFERED: 1
jobs:
runtime_tests:
name: "Runtime Pipeline Execution Tests"
runs-on: ubuntu-latest
steps:
- name: "Clone Repository"
uses: actions/checkout@v2
- name: "Run Pipeline Tests"
uses: osbuild/containers/ghci/actions/ghci-osbuild@ghci/v1
with:
run: make test-runtime
assembler_tests:
name: "Assembler Tests"
runs-on: ubuntu-latest

View file

@ -23,7 +23,18 @@ jobs:
- name: "Run Module Unittests"
uses: osbuild/containers/ghci/actions/ghci-osbuild@ghci/v1
with:
run: make test-module
run: make test-mod
runtime_tests:
name: "Runtime Pipeline Execution Tests"
runs-on: ubuntu-latest
steps:
- name: "Clone Repository"
uses: actions/checkout@v2
- name: "Run Pipeline Tests"
uses: osbuild/containers/ghci/actions/ghci-osbuild@ghci/v1
with:
run: make test-run
documentation:
name: "📚 Documentation"

View file

@ -132,7 +132,7 @@ $(SRCDIR)/test/data/manifests/fedora-boot.json: $(SRCDIR)/test/data/manifests/f3
test-data: $(TEST_MANIFESTS_GEN)
.PHONY: test-units
test-module:
test-mod:
@$(PYTHON3) -m unittest \
discover \
--start=$(SRCDIR)/test/mod \
@ -140,7 +140,7 @@ test-module:
-v
.PHONY: test-runtime
test-runtime:
test-run:
@[[ $${EUID} -eq 0 ]] || (echo "Error: Root privileges required!"; exit 1)
@$(PYTHON3) -m unittest \
discover \