Skip to content

Commit 05edb98

Browse files
committed
Merge tag 'linux_kselftest-next-6.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest updates from Shuah Khan: - Fixes: - false failure of subsystem event test - glob filter test to use mutex_unlock() instead of mutex_trylock() - several spelling errors in tests - test_kexec_jump build errors - pidfd test duplicate-symbol warnings for SCHED_ CPP symbols - Add a reliable check for suspend to breakpoints suspend test - Improvements to ipc test * tag 'linux_kselftest-next-6.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests/pidfd: Fix duplicate-symbol warnings for SCHED_ CPP symbols selftests/tracing: Fix false failure of subsystem event test selftests/kexec: fix test_kexec_jump build selftests: breakpoints: use suspend_stats to reliably check suspend success selftests: tracing: Use mutex_unlock for testing glob filter selftests: print installation complete message selftests/ptrace: Fix spelling mistake "multible" -> "multiple" selftests: ipc: Replace fail print statements with ksft_test_result_fail selftests: Add version file to kselftest installation dir selftests/cpu-hotplug: fix typo in hotplaggable_offline_cpus function name
2 parents 2a03b51 + d5c4e65 commit 05edb98

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tools/testing/selftests/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,14 @@ ifdef INSTALL_PATH
293293
$(MAKE) -s --no-print-directory OUTPUT=$$BUILD_TARGET COLLECTION=$$TARGET \
294294
-C $$TARGET emit_tests >> $(TEST_LIST); \
295295
done;
296+
@VERSION=$$(git describe HEAD 2>/dev/null); \
297+
if [ -n "$$VERSION" ]; then \
298+
echo "$$VERSION" > $(INSTALL_PATH)/VERSION; \
299+
printf "Version saved to $(INSTALL_PATH)/VERSION\n"; \
300+
else \
301+
printf "Unable to get version from git describe\n"; \
302+
fi
303+
@echo "**Kselftest Installation is complete: $(INSTALL_PATH)**"
296304
else
297305
$(error Error: set INSTALL_PATH to use install)
298306
endif

0 commit comments

Comments
 (0)