summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2021-04-13 16:07:05 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-04-15 07:38:48 +0000
commita4819b3c31b86950de3ccbe848ec50d6f4d3bdb8 (patch)
tree04f4a59b96518040a2b04b496bd603739f3e0655 /tests
parentdadcae63c6c407ab8e14a3e1b10119da63d2228c (diff)
downloadcoreboot-a4819b3c31b86950de3ccbe848ec50d6f4d3bdb8.tar.xz
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 <jacz@semihalf.com> Change-Id: I464a76cbea1f4afbc3fc772960787952e61b95b9 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52293 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.inc15
1 files changed, 15 insertions, 0 deletions
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 ' <unit-test> - Build and run single unit-test'
+ @echo ' clean-<unit-test> - Remove single unit-test build artifacts'
+ @echo