add test case splice04 and splice05
v2 cover add test case splice04 and splice05
From: Boyang Xue <[email protected]>
Hi,
Please help me review the following test cases. Thanks.
Change from patchset v1:
1) add built test case binary in .gitignore
2) restrict test data size so as to honor /proc/sys/fs/pipe-max-size
3) do splice() in a loop in case not all data are splice-ed in a single operation
Thanks for review comments from Jan.
-Boyang
Boyang Xue (2):
syscalls/splice04: add test for splice() from pipe to pipe syscalls/splice05: add test for splice() between pipe and socket
.gitignore | 2 + runtest/syscalls | 2 + testcases/kernel/syscalls/splice/splice04.c | 117 ++++++++++++++++++++++++ testcases/kernel/syscalls/splice/splice05.c | 134 ++++++++++++++++++++++++++++ 4 files changed, 255 insertions(+) create mode 100644 testcases/kernel/syscalls/splice/splice04.c create mode 100644 testcases/kernel/syscalls/splice/splice05.c
Signature · 1 line
1.8.3.1
PATCH v2 1/2 syscalls/splice04: add test for splice() from pipe to pipe
From: Boyang Xue <[email protected]>
This test case covers pipe to pipe splice operation, which was introduced in kernel commit 7c77f0b3f920 ("splice: implement pipe to pipe splicing").
--- .gitignore | 1 + runtest/syscalls | 1 + testcases/kernel/syscalls/splice/splice04.c | 117 ++++++++++++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 testcases/kernel/syscalls/splice/splice04.c
.gitignore +1 -0
@@ -76,3 +76,4 @@ logfile.* /lib/tests/tst_dataroot01 /lib/tests/tst_dataroot02 /lib/tests/tst_dataroot03 +/testcases/kernel/syscalls/splice/splice04
runtest/syscalls +1 -0
@@ -1224,6 +1224,7 @@ sockioctl01 sockioctl01 splice01 splice01 splice02 seq 1 20000 | splice02 splice02-temp splice03 splice03 +splice04 splice04 tee01 tee01 tee02 tee02
testcases/kernel/syscalls/splice/splice04.c new file +117 -0
117 lines not on this page · raw message
Signature · 1 line
1.8.3.1
PATCH v2 2/2 syscalls/splice05: add test for splice() between pipe and socket
In reply to [email protected]From: Boyang Xue <[email protected]>
This test case covers splice operation between pipe and socket.
--- .gitignore | 1 + runtest/syscalls | 1 + testcases/kernel/syscalls/splice/splice05.c | 134 ++++++++++++++++++++++++++++ 3 files changed, 136 insertions(+) create mode 100644 testcases/kernel/syscalls/splice/splice05.c
.gitignore +1 -0
@@ -77,3 +77,4 @@ logfile.* /lib/tests/tst_dataroot02 /lib/tests/tst_dataroot03 /testcases/kernel/syscalls/splice/splice04 +/testcases/kernel/syscalls/splice/splice05
runtest/syscalls +1 -0
@@ -1225,6 +1225,7 @@ splice01 splice01 splice02 seq 1 20000 | splice02 splice02-temp splice03 splice03 splice04 splice04 +splice05 splice05 tee01 tee01 tee02 tee02
testcases/kernel/syscalls/splice/splice05.c new file +134 -0
134 lines not on this page · raw message
Signature · 1 line
1.8.3.1