summaryrefslogtreecommitdiff
path: root/integrationtests/copy_file_range_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-22 22:31:35 +0200
committerPaul Buetow <paul@buetow.org>2026-02-22 22:31:35 +0200
commit4cd2c4e818a1438bf63d1ca05a6cf134f39bc06b (patch)
tree40b4ad1ab60a6f50973a66c4e273c91e0d8d265b /integrationtests/copy_file_range_test.go
parent8e52ba5a8661c717f45e00608ad64f0adc6de3e1 (diff)
Add copy_file_range support and tracepoint attach tests
Diffstat (limited to 'integrationtests/copy_file_range_test.go')
-rw-r--r--integrationtests/copy_file_range_test.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/integrationtests/copy_file_range_test.go b/integrationtests/copy_file_range_test.go
new file mode 100644
index 0000000..d87c5af
--- /dev/null
+++ b/integrationtests/copy_file_range_test.go
@@ -0,0 +1,25 @@
+package integrationtests
+
+import "testing"
+
+func TestCopyFileRangeBasic(t *testing.T) {
+ runScenario(t, "copy-file-range-basic", []ExpectedEvent{
+ {
+ PathContains: "copyrangesrc.txt",
+ Tracepoint: "enter_copy_file_range",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}
+
+func TestCopyFileRangeBadDstFd(t *testing.T) {
+ runScenario(t, "copy-file-range-bad-dst-fd", []ExpectedEvent{
+ {
+ PathContains: "copyrangeebadfsrc.txt",
+ Tracepoint: "enter_copy_file_range",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}