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/rename_test.go | |
| parent | 2c2cbe07f5e10fdb996e2a039cde84be44866f18 (diff) | |
more on integration tests
Diffstat (limited to 'integrationtests/rename_test.go')
| -rw-r--r-- | integrationtests/rename_test.go | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/integrationtests/rename_test.go b/integrationtests/rename_test.go new file mode 100644 index 0000000..8e3238d --- /dev/null +++ b/integrationtests/rename_test.go @@ -0,0 +1,36 @@ +package integrationtests + +import "testing" + +func TestRenameBasic(t *testing.T) { + runScenario(t, "rename-basic", []ExpectedEvent{ + { + PathContains: "oldname.txt", + Tracepoint: "enter_rename", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestRenameRenameat(t *testing.T) { + runScenario(t, "rename-renameat", []ExpectedEvent{ + { + PathContains: "renameat-old.txt", + Tracepoint: "enter_renameat", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestRenameRenameat2(t *testing.T) { + runScenario(t, "rename-renameat2", []ExpectedEvent{ + { + PathContains: "renameat2-old.txt", + Tracepoint: "enter_renameat2", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} |
