summaryrefslogtreecommitdiff
path: root/integrationtests/readwrite_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-21 19:28:23 +0200
committerPaul Buetow <paul@buetow.org>2026-02-21 19:28:23 +0200
commita5b711c5f221704209706b79fbf310a18e079391 (patch)
tree84615902f79a901aa9d98e3423c4756477b7cf4b /integrationtests/readwrite_test.go
parent2c2cbe07f5e10fdb996e2a039cde84be44866f18 (diff)
more on integration tests
Diffstat (limited to 'integrationtests/readwrite_test.go')
-rw-r--r--integrationtests/readwrite_test.go64
1 files changed, 64 insertions, 0 deletions
diff --git a/integrationtests/readwrite_test.go b/integrationtests/readwrite_test.go
new file mode 100644
index 0000000..3770ae1
--- /dev/null
+++ b/integrationtests/readwrite_test.go
@@ -0,0 +1,64 @@
+package integrationtests
+
+import "testing"
+
+func TestReadwriteBasic(t *testing.T) {
+ runScenario(t, "readwrite-basic", []ExpectedEvent{
+ {
+ PathContains: "rwfile.txt",
+ Tracepoint: "enter_write",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ {
+ PathContains: "rwfile.txt",
+ Tracepoint: "enter_read",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}
+
+func TestReadwritePread(t *testing.T) {
+ runScenario(t, "readwrite-pread", []ExpectedEvent{
+ {
+ PathContains: "preadfile.txt",
+ Tracepoint: "enter_pread64",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}
+
+func TestReadwritePwrite(t *testing.T) {
+ runScenario(t, "readwrite-pwrite", []ExpectedEvent{
+ {
+ PathContains: "pwritefile.txt",
+ Tracepoint: "enter_pwrite64",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}
+
+func TestReadwriteReadv(t *testing.T) {
+ runScenario(t, "readwrite-readv", []ExpectedEvent{
+ {
+ PathContains: "readvfile.txt",
+ Tracepoint: "enter_readv",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}
+
+func TestReadwriteWritev(t *testing.T) {
+ runScenario(t, "readwrite-writev", []ExpectedEvent{
+ {
+ PathContains: "writevfile.txt",
+ Tracepoint: "enter_writev",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}