[PATCH v2 i-g-t 2/2] tests/sriov_basic: Extract enable-vfs-bind-unbind-each-numvfs-all subtest
Marcin Bernatowicz
marcin.bernatowicz at linux.intel.com
Thu Jul 11 13:58:58 UTC 2024
Extract the 'enable-vfs-bind-unbind-each-numvfs-all' subtest to
simplify blocklist management. Currently, there is no straightforward
method to block dynamic subsubtests, and running all of them becomes
too time-consuming.
Cc: Adam Miszczak <adam.miszczak at linux.intel.com>
Cc: Lukasz Laguna <lukasz.laguna at intel.com>
Cc: Jakub Kolakowski <jakub1.kolakowski at intel.com>
Cc: Michal Wajdeczko <Michal.Wajdeczko at intel.com>
Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz at linux.intel.com>
---
tests/sriov_basic.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/tests/sriov_basic.c b/tests/sriov_basic.c
index 95a462709..eff93ef7a 100644
--- a/tests/sriov_basic.c
+++ b/tests/sriov_basic.c
@@ -62,7 +62,13 @@ static void enable_vfs_autoprobe_on(int pf_fd, unsigned int num_vfs)
/**
* SUBTEST: enable-vfs-bind-unbind-each
* Description:
- * Verify VFs enabling with binding and unbinding the driver one be one to each of them
+ * Verify VFs enabling with binding and unbinding the driver one by one to each of them.
+ * Version includes dynamic subtests that allow specifying the number of enabled VFs as numvfs-N.
+ *
+ * SUBTEST: enable-vfs-bind-unbind-each-numvfs-all
+ * Description:
+ * Verify the enabling of all VFs and the sequential binding and unbinding of the driver
+ * to each one.
*/
static void enable_vfs_bind_unbind_each(int pf_fd, unsigned int num_vfs)
{
@@ -176,10 +182,12 @@ igt_main
enable_vfs_bind_unbind_each(pf_fd, num_vfs);
}
}
+ }
+
+ igt_describe("Verify the enabling of all VFs and the sequential binding and unbinding of the driver to each one");
+ igt_subtest("enable-vfs-bind-unbind-each-numvfs-all") {
for_max_sriov_num_vfs(pf_fd, num_vfs) {
- igt_dynamic_f("numvfs-all") {
- enable_vfs_bind_unbind_each(pf_fd, num_vfs);
- }
+ enable_vfs_bind_unbind_each(pf_fd, num_vfs);
}
}
--
2.31.1
More information about the igt-dev
mailing list