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:
parent
d584a1e225
commit
55da864e0a
3 changed files with 14 additions and 14 deletions
11
.github/workflows/runtime-tests.yml
vendored
11
.github/workflows/runtime-tests.yml
vendored
|
|
@ -11,17 +11,6 @@ env:
|
||||||
PYTHONUNBUFFERED: 1
|
PYTHONUNBUFFERED: 1
|
||||||
|
|
||||||
jobs:
|
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:
|
assembler_tests:
|
||||||
name: "Assembler Tests"
|
name: "Assembler Tests"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
13
.github/workflows/tests.yml
vendored
13
.github/workflows/tests.yml
vendored
|
|
@ -23,7 +23,18 @@ jobs:
|
||||||
- name: "Run Module Unittests"
|
- name: "Run Module Unittests"
|
||||||
uses: osbuild/containers/ghci/actions/ghci-osbuild@ghci/v1
|
uses: osbuild/containers/ghci/actions/ghci-osbuild@ghci/v1
|
||||||
with:
|
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:
|
documentation:
|
||||||
name: "📚 Documentation"
|
name: "📚 Documentation"
|
||||||
|
|
|
||||||
4
Makefile
4
Makefile
|
|
@ -132,7 +132,7 @@ $(SRCDIR)/test/data/manifests/fedora-boot.json: $(SRCDIR)/test/data/manifests/f3
|
||||||
test-data: $(TEST_MANIFESTS_GEN)
|
test-data: $(TEST_MANIFESTS_GEN)
|
||||||
|
|
||||||
.PHONY: test-units
|
.PHONY: test-units
|
||||||
test-module:
|
test-mod:
|
||||||
@$(PYTHON3) -m unittest \
|
@$(PYTHON3) -m unittest \
|
||||||
discover \
|
discover \
|
||||||
--start=$(SRCDIR)/test/mod \
|
--start=$(SRCDIR)/test/mod \
|
||||||
|
|
@ -140,7 +140,7 @@ test-module:
|
||||||
-v
|
-v
|
||||||
|
|
||||||
.PHONY: test-runtime
|
.PHONY: test-runtime
|
||||||
test-runtime:
|
test-run:
|
||||||
@[[ $${EUID} -eq 0 ]] || (echo "Error: Root privileges required!"; exit 1)
|
@[[ $${EUID} -eq 0 ]] || (echo "Error: Root privileges required!"; exit 1)
|
||||||
@$(PYTHON3) -m unittest \
|
@$(PYTHON3) -m unittest \
|
||||||
discover \
|
discover \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue