linux-next/tools/testing/selftests/kselftest
Willem de Bruijn dbd61921a6 selftests: support interpreted scripts with ksft_runner.sh
Support testcases that are themselves not executable, but need an
interpreter to run them.

If a test file is not executable, but an executable file
ksft_runner.sh exists in the TARGET dir, kselftest will run

    ./ksft_runner.sh ./$BASENAME_TEST

Packetdrill may add hundreds of packetdrill scripts for testing. These
scripts must be passed to the packetdrill process.

Have kselftest run each test directly, as it already solves common
runner requirements like parallel execution and isolation (netns).
A previous RFC added a wrapper in between, which would have to
reimplement such functionality.

Link: https://lore.kernel.org/netdev/66d4d97a4cac_3df182941a@willemb.c.googlers.com.notmuch/T/
Signed-off-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20240905231653.2427327-2-willemdebruijn.kernel@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-09-09 17:38:02 -07:00
..
ksft.py selftests: ksft: Fix finished() helper exit code on skipped tests 2024-07-31 11:38:56 -06:00
ktap_helpers.sh selftests: ktap_helpers: Make it POSIX-compliant 2024-05-06 13:57:20 -06:00
module.sh selftests: Fix dangling documentation references to kselftest_module.sh 2019-12-11 10:27:01 -07:00
prefix.pl tweewide: Fix most Shebang lines 2020-12-08 23:30:04 +09:00
runner.sh selftests: support interpreted scripts with ksft_runner.sh 2024-09-09 17:38:02 -07:00