aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/radixtree.py
diff options
context:
space:
mode:
authorMichal Wajdeczko <[email protected]>2024-07-20 16:25:23 +0200
committerMichal Wajdeczko <[email protected]>2024-07-22 12:20:08 +0200
commit8bfab7cd8335b10bad92e44f58c5a038762bcbc3 (patch)
treeda3c62a3f4a171f0c4abbbe925ecc0b68f24fb38 /scripts/gdb/linux/radixtree.py
parentbd40536ae33911bc74df5ba3b29b573dcb72f904 (diff)
drm/xe/tests: Add helpers for use in live tests
Instead of iterating over available Xe devices within a testcase, without being able to distinguish potential failures from different devices on system with many Xe devices, introduce helpers that will allow to treat each Xe device as a parameter for the testcase like: static void bar(struct kunit *test) { struct xe_device *xe = test->priv; ... } struct kunit_case foo_live_tests[] = { KUNIT_CASE_PARAM(bar, xe_pci_live_device_gen_param), {} }; struct kunit_suite foo_suite = { .name = "foo_live", .test_cases = foo_live_tests, .init = xe_kunit_helper_xe_device_live_test_init, }; Signed-off-by: Michal Wajdeczko <[email protected]> Reviewed-by: Jonathan Cavitt <[email protected]> Reviewed-by: Lucas De Marchi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gdb/linux/radixtree.py')
0 files changed, 0 insertions, 0 deletions