Skip to contentSkip to conversation

add test case splice04 and splice05

PATCH Superseded [email protected] 1 participant 3 messages May 2, 2017

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index a7e6563..a1bd857 100644
@@ -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
index 5909456..d6c9ab4 100644
@@ -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
#2 lore raw

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
index a1bd857..b9614f7 100644
@@ -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
index d6c9ab4..0fae11a 100644
@@ -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