summaryrefslogtreecommitdiff
path: root/integrationtests
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-20 23:42:12 +0300
committerPaul Buetow <paul@buetow.org>2026-05-20 23:42:12 +0300
commitbe6d4e8ffc722bf0d36c5b01ff46f817539a1525 (patch)
tree7bb0aeb51e29cfbc6735af15bb812b888f4b3574 /integrationtests
parent2156d6e51b18e29fe8dfe8e1a519e1a84e0a1fe6 (diff)
task-47: add KindExec for execve paths
Diffstat (limited to 'integrationtests')
-rw-r--r--integrationtests/process_test.go31
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",
+ })
+}