all.tests: move all tests from the fbo group into spec

Reviewed-by: Eric Anholt <eric@anholt.net>
all.tests: move all tests from the vpfpgeneric group into spec

Reviewed-by: Eric Anholt <eric@anholt.net>
all.tests: move more VP and FP tests into spec

Reviewed-by: Eric Anholt <eric@anholt.net>
piglit-run.py: add -p|--platform switch to select the piglit platform

This can be useful with gbm when running piglit-run.py under sudo.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
exectest.py: move test launch code out to get_command_result routine

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
exectest.py: add path to mark a test as always skipped

check_for_skip_scenario allows a test to be marked as 'always skip'

Currently it doesn't mark any test for skipping.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
exectest.py: set python PIGLIT_PLATFORM from environment variable

If the PIGLIT_PLATFORM environment variable is set, then read its value
into the python PIGLIT_PLATFORM global variable. If it is not set, then
PIGLIT_PLATFORM is set to an empty string.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
gbm: when using gbm, skip running glean tests

glean can be modified to use waffle, and thus support gbm.
But in order to retain the multiple visuals testing for X,
the waffle API will need to be updated. Therefore, for now
we'll just skip glean with gbm.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
gbm: when using gbm, skip running glx tests

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
waffle: require waffle >= 1.1

This is to ensure gbm support is preset in waffle

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
piglit framework: add gbm support

Use gbm for testing if the PIGLIT_PLATFORM environment variable
is set to gbm.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
cmake: Add a PIGLIT_BUILD_GL_TESTS option

The GL tests were compiled unconditionally.
This breaks on systems that dont't have a GL library.

Signed-off-by: Adrian Marius Negreanu <adrian.m.negreanu@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
fbo-depthstencil: don't check for FBO extensions if they're not needed
framebuffer-srgb: check for FBO extensions
quad-invariance: optimize pixel probing
cmake: Remove the REQUIRED flag for PNG

I haven't found any references to png, except the README file,
so I guess it's ok to remove the REQUIRED flag.

Signed-off-by: Adrian Marius Negreanu <adrian.m.negreanu@intel.com>
cmake: Use find_package to find Waffle

* replace pkg_check_modules with find_package
* add FindWaffle.cmake
cmake: Add a PIGLIT_HAS_ANDROID option

Assume Android when CFLAGS contains -mandroid or -D__ANDROID__

Signed-off-by: Adrian Marius Negreanu <adrian.m.negreanu@intel.com>
cmake,util: Add Android Waffle support

Signed-off-by: Adrian Marius Negreanu <adrian.m.negreanu@intel.com>
doc: Add build instructions for Android

Signed-off-by: Negreanu Marius Groleo <groleo@gmail.com>