From: bugzilla-daemon@freedesktop.org Subject: [Bug 111630] Generate a list of tags for the machine that runs the testsuite Date: Tue, 10 Sep 2019 10:52:02 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0201935989==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 74D536E8BA for ; Tue, 10 Sep 2019 10:52:02 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0201935989== Content-Type: multipart/alternative; boundary="15681127220.379Ea5.21964" Content-Transfer-Encoding: 7bit --15681127220.379Ea5.21964 Date: Tue, 10 Sep 2019 10:52:02 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D111630 Arek Hiler changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |petri.latvala@intel.com --- Comment #1 from Arek Hiler --- Martin first suggested to have something like igt_require_feature(TWO_DISPLAYS), with a set of different defines/function pointers, or whatever - so we have a single way of checking for a number of connected displays and it's simple to tie it with a cibuglog tag. I find that hard both hard to use (using names instead of numbers, changing almost all of test to use this new framework) and implement (centralizing a= lot of knowledge, how to do the display checks without passing igt_display, fd, etc). But it would be easy to assure consistency in the skip messages. What I would to propose instead is a special igt test that would do the discovery: /* has to be before KMS/DISPALY checks to enable all outputs */ igt_subtest("CHAMELIUM") { chamelium =3D chamelium_init(fd); igt_require(chamelium); /* deinit && plug all */ } igt_subtest_group { volatile igt_display display; igt_fixture { igt_require_display(&display, fd); } igt_subtest("DISPLAY") { /* intentionaly left blank */ } igt_subtest("TWO_OUTPUTS") { igt_require_n_outputs(&display, 2); } igt_feature("THREE_OUTPUTS") { igt_require_n_outputs(&display, 3); } } Then you can run it like that: `igt_runner -m -t feature_detection ...` whi= ch would get you a nice parsable, piglit-style json as well as sample skip messages. It will still need a lot of test changes to assure consistency, but arguably fewer than the igt_require_feature(XYZ). Since it's also a piglit-format js= on we can ingest it easily and check for flip-floppers on those tags :-) --=20 You are receiving this mail because: You are the assignee for the bug.= --15681127220.379Ea5.21964 Date: Tue, 10 Sep 2019 10:52:02 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated Arek Hiler changed bug 11163= 0
What Removed Added
CC   petri.latvala@intel.com

Commen= t # 1 on bug 11163= 0 from Arek Hiler
Martin first suggested to have something like
igt_require_feature(TWO_DISPLAYS), with a set of different defines/function
pointers, or whatever - so we have a single way of checking for a number of
connected displays and it's simple to tie it with a cibuglog tag.

I find that hard both hard to use (using names instead of numbers, changing
almost all of test to use this new framework) and implement (centralizing a=
 lot
of knowledge, how to do the display checks without passing igt_display, fd,
etc). But it would be easy to assure consistency in the skip messages.

What I would to propose instead is a special igt test that would do the
discovery:

/* has to be before KMS/DISPALY checks to enable all outputs */
igt_subtest("CHAMELIUM") {
        chamelium =3D chamelium_init(fd);
        igt_require(chamelium);
        /* deinit && plug all */
}

igt_subtest_group {
        volatile igt_display display;

        igt_fixture {
                igt_require_display(&display, fd);
        }

        igt_subtest("DISPLAY")
        { /* intentionaly left blank */ }

        igt_subtest("TWO_OUTPUTS") {
                igt_require_n_outputs(&display, 2);
        }

        igt_feature("THREE_OUTPUTS") {
                igt_require_n_outputs(&display, 3);
        }
}


Then you can run it like that: `igt_runner -m -t feature_detection ...` whi=
ch
would get you a nice parsable, piglit-style json as well as sample skip
messages.

It will still need a lot of test changes to assure consistency, but arguably
fewer than the igt_require_feature(XYZ). Since it's also a piglit-format js=
on
we can ingest it easily and check for flip-floppers on those tags :-)


You are receiving this mail because:
  • You are the assignee for the bug.
= --15681127220.379Ea5.21964-- --===============0201935989== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0201935989==--