diff options
Diffstat (limited to 'integrationtests/process_test.go')
| -rw-r--r-- | integrationtests/process_test.go | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/integrationtests/process_test.go b/integrationtests/process_test.go new file mode 100644 index 0000000..e9cd739 --- /dev/null +++ b/integrationtests/process_test.go @@ -0,0 +1,31 @@ +package integrationtests + +import "testing" + +func TestProcessExecLifecycle(t *testing.T) { + result, _ := runScenarioResult(t, "process-exec-lifecycle", []ExpectedEvent{ + { + Tracepoint: "enter_execve", + PathContains: "ior-missing-execve-only", + Comm: "ioworkload", + MinCount: 1, + }, + { + Tracepoint: "enter_execveat", + PathContains: "ior-missing-execveat-only", + Comm: "ioworkload", + MinCount: 1, + }, + }) + + assertEventDurationPositive(t, result, ExpectedEvent{ + Tracepoint: "enter_execve", + PathContains: "ior-missing-execve-only", + Comm: "ioworkload", + }) + assertEventDurationPositive(t, result, ExpectedEvent{ + Tracepoint: "enter_execveat", + PathContains: "ior-missing-execveat-only", + Comm: "ioworkload", + }) +} |
