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/dir_test.go | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 integrationtests/dir_test.go (limited to 'integrationtests/dir_test.go') diff --git a/integrationtests/dir_test.go b/integrationtests/dir_test.go new file mode 100644 index 0000000..67bbe93 --- /dev/null +++ b/integrationtests/dir_test.go @@ -0,0 +1,47 @@ +package integrationtests + +import "testing" + +func TestDirBasic(t *testing.T) { + runScenario(t, "dir-basic", []ExpectedEvent{ + { + PathContains: "subdir", + Tracepoint: "enter_mkdir", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestDirMkdirat(t *testing.T) { + runScenario(t, "dir-mkdirat", []ExpectedEvent{ + { + PathContains: "mkdirat-subdir", + Tracepoint: "enter_mkdirat", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestDirChdir(t *testing.T) { + runScenario(t, "dir-chdir", []ExpectedEvent{ + { + PathContains: "dir-chdir", + Tracepoint: "enter_chdir", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestDirGetdents(t *testing.T) { + runScenario(t, "dir-getdents", []ExpectedEvent{ + { + PathContains: "dir-getdents", + Tracepoint: "enter_getdents64", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} -- cgit v1.2.3