[igt-dev] [PATCH i-g-t] lib/igt_collection: Adding combinatorics facility

Chris Wilson chris at chris-wilson.co.uk
Tue Jan 28 21:16:55 UTC 2020


Quoting Petri Latvala (2020-01-22 11:11:53)
> On Wed, Jan 22, 2020 at 12:05:48PM +0100, Zbigniew Kempczyński wrote:
> > Dynamic tests gives us new method to create tests depending on the
> > hardware/software capabilities. To check coverage some tests require
> > verification over some set of objects/data. To make life easier
> > with combinatorics this patch introduces igt_collection. Currently it
> > supports iterating over set to get subsets, combinations, variations
> > with and without repetitions.
> > Code has some limitation (set/subset cannot be larger than 16 elements,
> > what is enough for most cases).
> > 
> > Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> > Cc: Petri Latvala <petri.latvala at intel.com>
> > Cc: Chris Wilson <chris at chris-wilson.co.uk>
> 
> Is the plan to merge this patch first and then work on unit tests and
> the code that uses collections?
> 
> For that plan, and this patch:

Either a unit test or user to land the patch :-p
-Chris


More information about the igt-dev mailing list