summaryrefslogtreecommitdiff
path: root/integrationtests/dir_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-21 19:28:23 +0200
committerPaul Buetow <paul@buetow.org>2026-02-21 19:28:23 +0200
commita5b711c5f221704209706b79fbf310a18e079391 (patch)
tree84615902f79a901aa9d98e3423c4756477b7cf4b /integrationtests/dir_test.go
parent2c2cbe07f5e10fdb996e2a039cde84be44866f18 (diff)
more on integration tests
Diffstat (limited to 'integrationtests/dir_test.go')
-rw-r--r--integrationtests/dir_test.go47
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,
+ },
+ })
+}