testsuite: Make memorytexture tests random
authorBenjamin Otte <otte@redhat.com>
Thu, 8 Jun 2023 23:04:27 +0000 (01:04 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 8 Jun 2023 23:12:32 +0000 (01:12 +0200)
commit45656ba4263dfca9df240c7621091136c40fc96b
tree1ff32a1eec242c88f319366184e30576e6b76403
parent28fb91e85e8bab554cc03f419c55af0ae737e81c
testsuite: Make memorytexture tests random

Instead of picking a few numbers in advance and running them through the
test gauntlet every time, pick the random numbers at runtime.

This both increases the test coverage in that it ultimately tests more
combinations across many runs and it reduces the runtime of individual
runs because every tun only runs the download tests twice (with 1px and
the random size) instead of 5 times.

And that speedup benefits the CI, where the asan runs would cause this
test to timeout sometimes.
testsuite/gdk/memorytexture.c