From a4819b3c31b86950de3ccbe848ec50d6f4d3bdb8 Mon Sep 17 00:00:00 2001 From: Jakub Czapiga Date: Tue, 13 Apr 2021 16:07:05 +0200 Subject: Makefile: Add unit-tests help and targets list Add unit-tests targets to help output. Add list-unit-tests target that lists all available unit-tests. Signed-off-by: Jakub Czapiga Change-Id: I464a76cbea1f4afbc3fc772960787952e61b95b9 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52293 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Julius Werner --- tests/Makefile.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests') diff --git a/tests/Makefile.inc b/tests/Makefile.inc index 027091c5e6..48bd18b2ba 100644 --- a/tests/Makefile.inc +++ b/tests/Makefile.inc @@ -179,3 +179,18 @@ $(addprefix clean-,$(alltests)): clean-%: clean-unit-tests: rm -rf $(testobj) + +list-unit-tests: + @echo "unit-tests:" + for t in $(sort $(alltests)); do \ + echo " $$t"; \ + done + +help-unit-tests help:: + @echo '*** coreboot unit-tests targets ***' + @echo ' unit-tests - Run all unit-tests from tests/' + @echo ' clean-unit-tests - Remove unit-tests build artifacts' + @echo ' list-unit-tests - List all unit-tests' + @echo ' - Build and run single unit-test' + @echo ' clean- - Remove single unit-test build artifacts' + @echo -- cgit v1.2.3