mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 18:41:23 +00:00
7c079e909b
Move bash helpers for outputting in KTAP format to the common selftests folder. This allows kselftests other than the dt one to source the file and make use of the helper functions. Define pass, fail and skip codes in the same file too. Signed-off-by: Laura Nao <laura.nao@collabora.com> Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Tested-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
22 lines
392 B
Makefile
22 lines
392 B
Makefile
PY3 = $(shell which python3 2>/dev/null)
|
|
|
|
ifneq ($(PY3),)
|
|
|
|
TEST_PROGS := test_unprobed_devices.sh
|
|
TEST_GEN_FILES := compatible_list
|
|
TEST_FILES := compatible_ignore_list
|
|
|
|
include ../lib.mk
|
|
|
|
$(OUTPUT)/compatible_list:
|
|
$(top_srcdir)/scripts/dtc/dt-extract-compatibles -d $(top_srcdir) > $@
|
|
|
|
else
|
|
|
|
all: no_py3_warning
|
|
|
|
no_py3_warning:
|
|
@echo "Missing python3. This test will be skipped."
|
|
|
|
endif
|