mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Add a selftest for the kselftest harness itself so any changes can be validated. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com> Acked-by: Shuah Khan <skhan@linuxfoundation.org> Link: https://lore.kernel.org/r/20250505-nolibc-kselftest-harness-v4-1-ee4dd5257135@linutronix.de Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
13 lines
251 B
Bash
Executable file
13 lines
251 B
Bash
Executable file
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Selftest for kselftest_harness.h
|
|
#
|
|
|
|
set -e
|
|
|
|
DIR="$(dirname $(readlink -f "$0"))"
|
|
|
|
"$DIR"/harness-selftest > harness-selftest.seen || true
|
|
|
|
diff -u "$DIR"/harness-selftest.expected harness-selftest.seen
|