linux/tools/testing/selftests/dt/Makefile
Laura Nao 7c079e909b selftests: Move KTAP bash helpers to selftests common folder
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>
2024-02-20 15:52:55 -07:00

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