selftests: splice: Check behavior of full and short splices
authorKees Cook <keescook@chromium.org>
Fri, 7 Aug 2020 06:01:09 +0000 (23:01 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 7 Aug 2020 17:50:11 +0000 (10:50 -0700)
commit9af47666cb0f331bfcd76799ee368cdfcb00882c
tree9134feaef0f6076f5f1ebe484fb3791d60d1ff7b
parent11990a5bd7e558e9203c1070fc52fb6f0488e75b
selftests: splice: Check behavior of full and short splices

In order to help catch regressions in splice vs read behavior in certain
special files, test a few with various different kinds of internal
kernel helpers.

Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
tools/testing/selftests/splice/.gitignore
tools/testing/selftests/splice/Makefile
tools/testing/selftests/splice/config [new file with mode: 0644]
tools/testing/selftests/splice/settings [new file with mode: 0644]
tools/testing/selftests/splice/short_splice_read.sh [new file with mode: 0755]
tools/testing/selftests/splice/splice_read.c [new file with mode: 0644]