[PATCH 7/9] rteval: Rename unittest target to unit-tests for consistency

John Kacur <[email protected]> Tue, 5 May 2026 13:43:51 -0400
Newsgroups org.kernel.vger.linux-rt-users
Message-ID <[email protected]>
Rename the Makefile target from 'unittest' to 'unit-tests' to match
the naming convention of other test targets (e2e-tests, regression-tests).

Changes:
- Rename unittest: to unit-tests:
- Update test: alias to tests: for consistency (all targets use plural)
- Update help text to clarify tests is an alias for unit-tests
- Update .PHONY declaration

This provides consistent naming across all test targets:
- make tests            (alias for unit-tests)
- make unit-tests       (unit tests)
- make e2e-tests        (end-to-end tests)
- make regression-tests (regression tests)

Assisted-by: Claude Sonnet 4.5 <[email protected]>
Signed-off-by: John Kacur <[email protected]>
---
 Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 5e429b41e1b4..eab950775d8d 100644
--- a/Makefile
+++ b/Makefile
@@ -45,11 +45,11 @@ sysreport:
 	[ -d $(HERE)/run ] || mkdir run
 	$(PYTHON) rteval-cmd -D -v --workdir=$(HERE)/run --loaddir=$(HERE)/loadsource --duration=$(D) -i $(HERE)/rteval --sysreport
 
-unittest:
+unit-tests:
 	@echo "Running unit tests..."
 	./run_tests.sh
 
-test: unittest
+tests: unit-tests
 
 clean:
 	rm -f *~ rteval/*~ rteval/*.py[co] *.tar.bz2 *.tar.gz doc/*~
@@ -88,8 +88,8 @@ help:
 	@echo "rteval Makefile targets:"
 	@echo ""
 	@echo "        runit:            do a short testrun locally [default]"
-	@echo "        test:             run unit tests"
-	@echo "        unittest:         run unit tests (same as test)"
+	@echo "        tests:            run unit tests (alias for unit-tests)"
+	@echo "        unit-tests:       run unit tests"
 	@echo "        e2e-tests:        run end-to-end tests"
 	@echo "        regression-tests: run regression tests for measurement modules (requires root)"
 	@echo "        tarfile:          create the source tarball"
@@ -109,4 +109,4 @@ tags:
 cleantags:
 	rm -f tags
 
-.PHONY: test unittest e2e-tests regression-tests
+.PHONY: tests unit-tests e2e-tests regression-tests
-- 
2.54.0