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/link_test.go | |
| parent | 2c2cbe07f5e10fdb996e2a039cde84be44866f18 (diff) | |
more on integration tests
Diffstat (limited to 'integrationtests/link_test.go')
| -rw-r--r-- | integrationtests/link_test.go | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/integrationtests/link_test.go b/integrationtests/link_test.go new file mode 100644 index 0000000..fcebffb --- /dev/null +++ b/integrationtests/link_test.go @@ -0,0 +1,59 @@ +package integrationtests + +import "testing" + +func TestLinkBasic(t *testing.T) { + runScenario(t, "link-basic", []ExpectedEvent{ + { + PathContains: "hardlink.txt", + Tracepoint: "enter_link", + Comm: "ioworkload", + MinCount: 1, + }, + { + PathContains: "symlink.txt", + Tracepoint: "enter_symlink", + Comm: "ioworkload", + MinCount: 1, + }, + { + PathContains: "symlink.txt", + Tracepoint: "enter_readlink", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestLinkLinkat(t *testing.T) { + runScenario(t, "link-linkat", []ExpectedEvent{ + { + PathContains: "linkat-hard.txt", + Tracepoint: "enter_linkat", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestLinkSymlinkat(t *testing.T) { + runScenario(t, "link-symlinkat", []ExpectedEvent{ + { + PathContains: "symlinkat-link.txt", + Tracepoint: "enter_symlinkat", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestLinkReadlinkat(t *testing.T) { + runScenario(t, "link-readlinkat", []ExpectedEvent{ + { + PathContains: "readlinkat-link.txt", + Tracepoint: "enter_readlinkat", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} |
