From: Jakub Kicinski Date: Tue, 3 Mar 2026 16:35:01 +0000 (-0800) Subject: tools: ynl: rename TESTS variable to TEST_PROGS X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d86670b837fbe1994e8b1ce9d1f56f1272038ad1;p=thirdparty%2Fkernel%2Flinux.git tools: ynl: rename TESTS variable to TEST_PROGS Use the standard kselftest variable naming for tests in the Makefile. NIPA depends on being able to selectively target tests by setting those variables on the CLI. Acked-by: Matthieu Baerts (NGI0) Reviewed-by: Hangbin Liu Reviewed-by: Donald Hunter Link: https://patch.msgid.link/20260303163504.2084981-2-kuba@kernel.org Signed-off-by: Jakub Kicinski --- diff --git a/tools/net/ynl/tests/Makefile b/tools/net/ynl/tests/Makefile index c1df2e001255b..ee4362ca286df 100644 --- a/tools/net/ynl/tests/Makefile +++ b/tools/net/ynl/tests/Makefile @@ -1,23 +1,23 @@ # SPDX-License-Identifier: GPL-2.0 # Makefile for YNL tests -TESTS := \ +TEST_PROGS := \ test_ynl_cli.sh \ test_ynl_ethtool.sh \ -# end of TESTS +# end of TEST_PROGS -all: $(TESTS) +all: $(TEST_PROGS) run_tests: - @for test in $(TESTS); do \ + @for test in $(TEST_PROGS); do \ ./$$test; \ done -install: $(TESTS) +install: $(TEST_PROGS) @mkdir -p $(DESTDIR)/usr/bin @mkdir -p $(DESTDIR)/usr/share/kselftest @cp ../../../testing/selftests/kselftest/ktap_helpers.sh $(DESTDIR)/usr/share/kselftest/ - @for test in $(TESTS); do \ + @for test in $(TEST_PROGS); do \ name=$$(basename $$test .sh); \ sed -e 's|^ynl=.*|ynl="ynl"|' \ -e 's|^ynl_ethtool=.*|ynl_ethtool="ynl-ethtool"|' \