mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 21:32:56 +00:00
lib: Add argc/argv to igt_simple_init
There's a pile of ideas around to add generally useful options like --debug to all igt tests. Or unify the runtime behaviour between simple and subtest tests a bit more. The first step to get there is to add argc/argv to igt_simple_init so that we can get at the argument list. Cc: Tim Gore <tim.gore@intel.com> Cc: Thomas Wood <thomas.wood@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
+3
-1
@@ -451,6 +451,8 @@ void igt_subtest_init(int argc, char **argv)
|
||||
|
||||
/**
|
||||
* igt_simple_init:
|
||||
* @argc: argc from the test's main()
|
||||
* @argv: argv from the test's main()
|
||||
*
|
||||
* This initializes a simple test without any support for subtests.
|
||||
*
|
||||
@@ -458,7 +460,7 @@ void igt_subtest_init(int argc, char **argv)
|
||||
* #igt_simple_main block instead of stitching the tests's main() function together
|
||||
* manually.
|
||||
*/
|
||||
void igt_simple_init(void)
|
||||
void igt_simple_init(int argc, char **argv)
|
||||
{
|
||||
print_version();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user