summaryrefslogtreecommitdiff
path: root/integrationtests/open_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/open_test.go
parent2c2cbe07f5e10fdb996e2a039cde84be44866f18 (diff)
more on integration tests
Diffstat (limited to 'integrationtests/open_test.go')
-rw-r--r--integrationtests/open_test.go36
1 files changed, 36 insertions, 0 deletions
diff --git a/integrationtests/open_test.go b/integrationtests/open_test.go
new file mode 100644
index 0000000..3f07ae3
--- /dev/null
+++ b/integrationtests/open_test.go
@@ -0,0 +1,36 @@
+package integrationtests
+
+import "testing"
+
+func TestOpenBasic(t *testing.T) {
+ runScenario(t, "open-basic", []ExpectedEvent{
+ {
+ PathContains: "testfile.txt",
+ Tracepoint: "enter_openat",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}
+
+func TestOpenCreat(t *testing.T) {
+ runScenario(t, "open-creat", []ExpectedEvent{
+ {
+ PathContains: "creatfile.txt",
+ Tracepoint: "enter_openat",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}
+
+func TestOpenByHandleAt(t *testing.T) {
+ runScenario(t, "open-by-handle-at", []ExpectedEvent{
+ {
+ PathContains: "handlefile.txt",
+ Tracepoint: "enter_open_by_handle_at",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}