tests: implement get_test_name()
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 27 Jan 2017 16:30:26 +0000 (17:30 +0100)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 7 Feb 2017 12:25:12 +0000 (14:25 +0200)
commitb581783b793862f6d5c13eebc416385718b8440d
tree928dfb95a357726ef7d89a13d27414b7c45f55a9
parenta21b5ebf85f385dadc817c908f808fedaa4334d5
tests: implement get_test_name()

Screenshot tests often want to use the test name for writing out images.
This is a helper to get the test name without writing it multiple times
in the source.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Reviewed-by: Micah Fedke <micah.fedke@collabora.co.uk>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
tests/weston-test-runner.c
tests/weston-test-runner.h