Added dynamic Subtest
PATCH v4 1/1 Added dynamic Subtest
From: Nidhi Gupta <[email protected]>
In kms_atomic_transition subtest will test all the pipes defined in IGT which is 6 weather the output is available or not.Later it has to be analysed and discard it as valid skip.To save this time updated in test to first check the available outputs and then execute the test.
--- tests/kms_atomic_transition.c | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-)
tests/kms_atomic_transition.c +21 -10
@@ -918,7 +918,7 @@ igt_mainigt_display_t display;igt_output_t *output;enum pipe pipe; -int i; +int i, count =0 ; igt_fixture { display.drm_fd =drm_open_driver_master (DRIVER_ANY );
@@ -1024,18 +1024,29 @@ igt_mainfor_each_pipe_with_valid_output (&display, pipe, output)run_transition_test (&display, pipe, output,TRANSITION_MODESET_DISABLE , false, false); -for (i =1 ; i <=IGT_MAX_PIPES ; i++) { - igt_subtest_f("%ix-modeset-transitions", i) -run_modeset_transition (&display, i, false, false); +for_each_pipe_with_single_output (&display, pipe, output) { + count++; + } +for (i =1 ; i <= count; i++) { + igt_subtest_with_dynamic("modeset-transition") { + igt_dynamic_f("%ix-modeset-transitions", i) +run_modeset_transition (&display, i, false, false); + } - igt_subtest_f("%ix-modeset-transitions-nonblocking", i) -run_modeset_transition (&display, i, true, false); + igt_subtest_with_dynamic("modeset-transitions-nonblocking") { + igt_dynamic_f("%ix-modeset-transitions-nonblocking", i) +run_modeset_transition (&display, i, true, false); + } - igt_subtest_f("%ix-modeset-transitions-fencing", i) -run_modeset_transition (&display, i, false, true); + igt_subtest_with_dynamic("modeset-transitions-fencing") { + igt_dynamic_f("%ix-modeset-transitions-fencing", i) +run_modeset_transition (&display, i, false, true); + } - igt_subtest_f("%ix-modeset-transitions-nonblocking-fencing", i) -run_modeset_transition (&display, i, true, true); + igt_subtest_with_dynamic("modeset-transitions-nonblocking-fencing") { + igt_dynamic_f("%ix-modeset-transitions-nonblocking-fencing", i) +run_modeset_transition (&display, i, true, true); + } } igt_fixture {
Signature · 6 lines
2.26.2 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.BUILD: failure for Added dynamic Subtest (rev4)
== Series Details ==
== Series Details ==
Series: Added dynamic Subtest (rev4)
URL : https://patchwork.freedesktop.org/series/83576/
State : failure
== Summary ==
IGT patchset build failed on latest successful build 5236e5d4be3ab5e2fedacc32152120b7fb77bf9f lib/rendercopy_gen9: Ensure to cover all destination area
278/301 testcase check: perf OK 0.07 s 279/301 testcase check: testdisplay OK 0.11 s 280/301 testcase check: kms_color OK 0.10 s 281/301 testcase check: kms_color_chamelium OK 0.11 s 282/301 testcase check: sw_sync OK 0.11 s 283/301 testcase check: amdgpu/amd_abm OK 0.11 s 284/301 testcase check: amdgpu/amd_basic OK 0.14 s 285/301 testcase check: amdgpu/amd_bypass OK 0.10 s 286/301 testcase check: amdgpu/amd_color OK 0.09 s 287/301 testcase check: amdgpu/amd_cs_nop OK 0.07 s 288/301 testcase check: amdgpu/amd_prime OK 0.06 s 289/301 runner OK 5.08 s 290/301 runner_json OK 0.07 s 291/301 assembler: test/mov OK 0.02 s 292/301 assembler: test/frc OK 0.08 s 293/301 assembler: test/regtype OK 0.07 s 294/301 assembler: test/rndd OK 0.04 s 295/301 assembler: test/rndu OK 0.06 s 296/301 assembler: test/rnde OK 0.07 s 297/301 assembler: test/rnde-intsrc OK 0.06 s 298/301 assembler: test/rndz OK 0.06 s 299/301 assembler: test/lzd OK 0.05 s 300/301 assembler: test/not OK 0.06 s 301/301 assembler: test/immediate OK 0.04 s
OK: 300 FAIL: 1 SKIP: 0 TIMEOUT: 0
The output from the failed tests:
46/301 testcase check: kms_atomic_transition FAIL 0.53 s (exit status 1)
--- command --- /home/cidrm/igt-gpu-tools/tests/igt_command_line.sh kms_atomic_transition --- stdout ---
tests/kms_atomic_transition:
Checking invalid option handling...
Checking valid option handling...
Checking subtest enumeration...
test does not exit with 0 or 79 with --list-subtests!
FAIL: tests/kms_atomic_transition
-------
Full log written to /home/cidrm/igt-gpu-tools/build/meson-logs/testlog.txt
FAILED: meson-test/usr/bin/python3 -u /usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev