[PATCH i-g-t 0/3] Add support for hook script
Gustavo Sousa
gustavo.sousa at intel.com
Thu May 9 15:24:28 UTC 2024
For development purposes, sometimes it is useful to have a way of
running custom scripts at certain points of test executions. A
real-world example I bumped into recently is to collect information from
sysfs before and after running each entry of a testlist.
While it is possible for the user to handcraft a script that calls each
test with the correct actions before and after execution, we can provide
a better experience by adding built-in support for running hooks during
test execution.
This series adds support for running a hook script during test
execution. The feature is exposed to users via option --hook, which made
available for regular test binaries as well as for igt_runner.
Gustavo Sousa (3):
igt_hook: Add feature
runner: Make it easier to extend argv
runner: Add option --hook
.../igt-gpu-tools/igt-gpu-tools-docs.xml | 1 +
lib/igt_core.c | 116 +++-
lib/igt_hook.c | 499 ++++++++++++++++++
lib/igt_hook.h | 86 +++
lib/meson.build | 1 +
lib/tests/igt_hook.c | 187 +++++++
lib/tests/igt_hook_integration.c | 297 +++++++++++
lib/tests/meson.build | 2 +
runner/executor.c | 52 +-
runner/runner_tests.c | 5 +
runner/settings.c | 25 +-
runner/settings.h | 1 +
12 files changed, 1248 insertions(+), 24 deletions(-)
create mode 100644 lib/igt_hook.c
create mode 100644 lib/igt_hook.h
create mode 100644 lib/tests/igt_hook.c
create mode 100644 lib/tests/igt_hook_integration.c
--
2.45.0
More information about the igt-dev
mailing list