ci: Migrate tracie tests done in shell script to pytest
authorPablo Saavedra <psaavedra@igalia.com>
Mon, 4 May 2020 16:11:08 +0000 (18:11 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 18 May 2020 17:27:42 +0000 (17:27 +0000)
commit550a4f77648f68bc48df34ce9d39dc3df1461f13
tree5bdfc8bbe1742a389c504e5bcf129bf2d863fdb7
parent37621da7b144a6021a8e3962352ad3561e82f560
ci: Migrate tracie tests done in shell script to pytest

v2: Verbatim translation from the original shell script
    Make the corrections visible in explicit commits (Andres)
    Remove redundant code (Alexandros)
    Code style nitpick (Rohan)

Reimplementation of the tracie's self-tests using a pythonic test suit
(pytest).

The new tracie/test.py module is almost a direct translation of the
tests defined in the tracie/test.sh. This new implementation of the
test provides a more common framework where define the tests.
Also allows a better introspection for the tests results and/or
resulting errors.

This patch also adds python3-pytest as dependency for the built images
and adapts the tracie-runner scripts to run the self-test using pytest.

Signed-off-by: Pablo Saavedra <psaavedra@igalia.com>
Reviewed-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> [v1]
Reviewed-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Rohan Garg <rohan.garg@collabora.com> [v1]
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4916>
.gitlab-ci.yml
.gitlab-ci/container/x86_test-gl.sh
.gitlab-ci/container/x86_test-vk.sh
.gitlab-ci/tracie-runner-gl.sh
.gitlab-ci/tracie-runner-vk.sh
.gitlab-ci/tracie/tests/__init__.py [new file with mode: 0644]
.gitlab-ci/tracie/tests/test.py [new file with mode: 0644]
.gitlab-ci/tracie/tests/test.sh [deleted file]