diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-21 19:28:23 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-21 19:28:23 +0200 |
| commit | a5b711c5f221704209706b79fbf310a18e079391 (patch) | |
| tree | 84615902f79a901aa9d98e3423c4756477b7cf4b /integrationtests/dir_test.go | |
| parent | 2c2cbe07f5e10fdb996e2a039cde84be44866f18 (diff) | |
more on integration tests
Diffstat (limited to 'integrationtests/dir_test.go')
| -rw-r--r-- | integrationtests/dir_test.go | 47 |
1 files changed, 47 insertions, 0 deletions
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, + }, + }) +} |
