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

Petri Latvala petri.latvala at intel.com
Wed Jan 22 11:11:53 UTC 2020


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:

Acked-by: Petri Latvala <petri.latvala at intel.com>



More information about the igt-dev mailing list