[Mesa-dev] [PATCH 20/20] tests/glx: Add unit tests for GLX_ARB_create_context GLX protocol

Chad Versace chad.versace at linux.intel.com
Thu Dec 29 16:00:31 PST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/20/2011 12:31 PM, Ian Romanick wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
> 
> This adds a new tests directory at the top-level and some extra build
> infrastructure.  The tests use the Google C++ Testing Framework, and
> they will only be built if configure can detect its availability.  The
> tests are automatically wired-in to run with 'make check'.
> 
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
>  Makefile                              |    2 +-
>  configure.ac                          |   20 +-
>  src/glx/Makefile                      |    5 +-
>  tests/Makefile.am                     |    1 +
>  tests/glx/Makefile.am                 |   16 +
>  tests/glx/clientinfo_unittest.cpp     |  723 +++++++++++++++++++++++++++++++++
>  tests/glx/create_context_unittest.cpp |  513 +++++++++++++++++++++++
>  tests/glx/fake_glx_screen.cpp         |   57 +++
>  tests/glx/fake_glx_screen.h           |  149 +++++++
>  tests/glx/mock_xdisplay.h             |   32 ++
>  10 files changed, 1514 insertions(+), 4 deletions(-)
>  create mode 100644 tests/Makefile.am
>  create mode 100644 tests/glx/Makefile.am
>  create mode 100644 tests/glx/clientinfo_unittest.cpp
>  create mode 100644 tests/glx/create_context_unittest.cpp
>  create mode 100644 tests/glx/fake_glx_screen.cpp
>  create mode 100644 tests/glx/fake_glx_screen.h
>  create mode 100644 tests/glx/mock_xdisplay.h

I'm not qualified to review these tests, but I do like the idea of
adding unit tests to Mesa with gtest.

Acked-by: Chad Versace <chad.versace at linux.intel.com>

- ----
Chad Versace
chad.versace at linux.intel.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJO/P8eAAoJEAIvNt057x8ik4MQALVQjB8+bCNniN1+vh1gqL+p
DMaC9GwCsILuUFf9Z5kVs7U2PLEFFMGJ0xP3vSivA63yZNN9pFkhrRTmdrney5ND
Ubc/uNlW6X01AQp/aWZ8tt/mLylaZh9TrC+2mvuizd9Bnw4MSRipsGNjp8qwq2Kz
mzaNpadfMeKXszn4PQFOTOQ+kKdNxuLDns6aD0aHM2v1KAZNeF/yw7dpiyBX4qq4
GR6nLjSoxSJ9FOR8q+5DjY7vwbYezSH/V2WcRAwnq7lEgjDJAGOwkC86sTi/bGJ1
pE178/6akQF2/kt6zE9Co06GHLSfVQ1jyHRYZe+8eC8xohrqCLwN0CVSg8eAQ8Dz
EW2aFnLaFrWhJ+vpHxTLt8SMiZoIalG+x2ZKFbCjw7dsCCInZjEPuuO47LeB/apy
iTNhF2nTXsF7CrUsawAol54df8Eka8DY560lGUWW4Fchk/5Ym8zIUdbkeJTbbOCT
NEOKagORTqs2BNhnAjnjpRWpoIK0+bRintRgcC09YSFFnp+/RbAB0CWh32Q0FMqr
e4YPk7Ukg/fphVx8ncAlXkKX/GuVwMiyq1wyH7yfpt3/r42jwJ3qVgmG9xmMbSPH
P/X/vMusxWchn2jZQ4l1Ui2SrG1gFK8BKB04USVM+kflayrZttnnBjLPU487zWPz
kxANracRn4G/tuvgqxWj
=5OXj
-----END PGP SIGNATURE-----


More information about the mesa-dev mailing list