1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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,
},
})
}
|