tests/etnaviv_2d_test: check whether the rendering is correct
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 1 Dec 2020 20:38:29 +0000 (21:38 +0100)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 9 Dec 2020 15:00:51 +0000 (16:00 +0100)
commit9a7afcf1982628ba85e0e0d8f96b43a56e20fef3
tree151c1cf86482d17a8ed3b1441b85377d5ff457fb
parent96382070054cf5ba00d8038a3d7dbdb7bb498d30
tests/etnaviv_2d_test: check whether the rendering is correct

Instead of always dumping the rendered picture, check whether it matches
the expectations. This makes more sense for automated testing.

Retain the ability to dump the picture instead of checking it when a
file name is given as an argument. This also removes use of a hardcoded
file name in a world writable directory, which is an unsafe thing to
do anyway.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
tests/etnaviv/etnaviv_2d_test.c