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
|
package integrationtests
import "testing"
func TestOpenBasic(t *testing.T) {
runScenario(t, "open-basic", []ExpectedEvent{
{
PathContains: "testfile.txt",
Tracepoint: "enter_openat",
Comm: "ioworkload",
MinCount: 1,
},
})
}
func TestOpenCreat(t *testing.T) {
runScenario(t, "open-creat", []ExpectedEvent{
{
PathContains: "creatfile.txt",
Tracepoint: "enter_creat",
Comm: "ioworkload",
MinCount: 1,
},
})
}
func TestOpenByHandleAt(t *testing.T) {
runScenario(t, "open-by-handle-at", []ExpectedEvent{
{
PathContains: "handlefile.txt",
Tracepoint: "enter_open_by_handle_at",
Comm: "ioworkload",
MinCount: 1,
},
})
}
|