[PATCH] selftests: add 'show_targets' make target

From: tbird20d
Date: Fri Mar 13 2020 - 18:24:20 EST


From: Tim Bird <tim.bird@xxxxxxxx>

It is useful for CI systems to be able to query the list
of targets provided by kselftest by default, so that they
can construct their own loop over the targets if desired.

Signed-off-by: Tim Bird <tim.bird@xxxxxxxx>
---
tools/testing/selftests/Makefile | 3 +++
1 file changed, 3 insertions(+)

diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile
index 63430e2..9955e71 100644
--- a/tools/testing/selftests/Makefile
+++ b/tools/testing/selftests/Makefile
@@ -246,4 +246,7 @@ clean:
$(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET clean;\
done;

+show_targets:
+ @echo $(TARGETS)
+
.PHONY: khdr all run_tests hotplug run_hotplug clean_hotplug run_pstore_crash install clean
--
2.1.4