Skip to contentSkip to conversation

Kselftest fixes update for Linux 6.6-rc2

GIT PULL Merged Shuah Khan 2 participants 2 messages Sep 11, 2023 – Sep 12, 2023

Subsystems (2)
lore
Share & tools
lore

Shuah Khan

author maintainer
#0 lore raw

Hi Linus,

Please pull the following Kselftest fixes update for Linux 6.6-rc2.

This kselftest fixes update for Linux 6.6-rc2 consists of fixes

-- kselftest runner script to propagate SIGTERM to runner child
to avoid kselftest hang.
-- to install symlinks required for test execution to avoid test
failures.
-- kselftest dependency checker script argument parsing.

diff is attached.

thanks,
-- Shuah

----------------------------------------------------------------
The following changes since commit 9b1db732866bee060b9bca9493e5ebf5e8874c48:

selftests: cachestat: use proper syscall number macro (2023-08-16 11:12:44 -0600)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-next-6.6-rc2

for you to fetch changes up to 3f3f384139ed147c71e1d770accf610133d5309b:

selftests: Keep symlinks, when possible (2023-09-08 10:06:56 -0600)

----------------------------------------------------------------
linux-kselftest-next-6.6-rc2

This kselftest fixes update for Linux 6.6-rc2 consists of fixes

-- kselftest runner script to propagate SIGTERM to runner child
to avoid kselftest hang.
-- to install symlinks required for test execution to avoid test
failures.
-- kselftest dependency checker script argument parsing.

----------------------------------------------------------------
Björn Töpel (2):
kselftest/runner.sh: Propagate SIGTERM to runner child
selftests: Keep symlinks, when possible

Ricardo B. Marliere (1):
selftests: fix dependency checker script

Zheng Yejian (1):
selftests/ftrace: Correctly enable event in instance-event.tc

 .../ftrace/test.d/instances/instance-event.tc      |  2 +-
 tools/testing/selftests/kselftest/runner.sh        |  3 +-
 tools/testing/selftests/kselftest_deps.sh          | 77 ++++++++++++++++++----
 tools/testing/selftests/lib.mk                     |  4 +-
 4 files changed, 70 insertions(+), 16 deletions(-)

----------------------------------------------------------------

tools/testing/selftests/ftrace/test.d/instances/instance-event.tc +1 -1
index 0eb47fbb3f44..42422e425107 100644
@@ -39,7 +39,7 @@ instance_read() {
 
 instance_set() {
         while :; do
-                echo 1 > foo/events/sched/sched_switch
+                echo 1 > foo/events/sched/sched_switch/enable
         done 2> /dev/null
 }
 
tools/testing/selftests/kselftest/runner.sh +2 -1
index 1c952d1401d4..70e0a465e30d 100644
@@ -36,7 +36,8 @@ tap_timeout()
 {
 	# Make sure tests will time out if utility is available.
 	if [ -x /usr/bin/timeout ] ; then
-		/usr/bin/timeout --foreground "$kselftest_timeout" $1
+		/usr/bin/timeout --foreground "$kselftest_timeout" \
+			/usr/bin/timeout "$kselftest_timeout" $1
 	else
 		$1
 	fi
tools/testing/selftests/kselftest_deps.sh +65 -12

143 lines not on this page · raw message

tools/testing/selftests/lib.mk +2 -2
index d17854285f2b..118e0964bda9 100644
@@ -106,7 +106,7 @@ endef
 run_tests: all
 ifdef building_out_of_srctree
 	@if [ "X$(TEST_PROGS)$(TEST_PROGS_EXTENDED)$(TEST_FILES)" != "X" ]; then \
-		rsync -aLq $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) $(OUTPUT); \
+		rsync -aq --copy-unsafe-links $(TEST_PROGS) $(TEST_PROGS_EXTENDED) $(TEST_FILES) $(OUTPUT); \
 	fi
 	@if [ "X$(TEST_PROGS)" != "X" ]; then \
 		$(call RUN_TESTS, $(TEST_GEN_PROGS) $(TEST_CUSTOM_PROGS) \
@@ -120,7 +120,7 @@ endif
 
 define INSTALL_SINGLE_RULE
 	$(if $(INSTALL_LIST),@mkdir -p $(INSTALL_PATH))
-	$(if $(INSTALL_LIST),rsync -aL $(INSTALL_LIST) $(INSTALL_PATH)/)
+	$(if $(INSTALL_LIST),rsync -a --copy-unsafe-links $(INSTALL_LIST) $(INSTALL_PATH)/)
 endef
 
 define INSTALL_RULE
merge bot Merged
#1 lore raw
The pull request you sent on Mon, 11 Sep 2023 11:24:02 -0600:

The pull request you sent on Mon, 11 Sep 2023 11:24:02 -0600:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-next-6.6-rc2

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/a747acc0b752f6c3911be539a2d3ca42b4424844

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html