From a5b711c5f221704209706b79fbf310a18e079391 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 21 Feb 2026 19:28:23 +0200 Subject: more on integration tests --- integrationtests/open_test.go | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 integrationtests/open_test.go (limited to 'integrationtests/open_test.go') 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, + }, + }) +} -- cgit v1.2.3