arb_clear_texture: add a trivial test

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_gpu_shader5: add some compiler/linker tests for sample qualifier

V2: Various small tweaks suggested by Anuj

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
arb_shader_atomic_counters: Bind a VAO in the points case.

With Ken's Mesa change, we were no longer getting any rendering.  The
other two drawing paths similarly set up a VAO.

Reviewed-by: Matt Turner <mattst88@gmail.com>
arb_shader_atomic_counters: Add a test for unused atomic op results.

It would be easy to accidentally dead code eliminate the atomic ops.

v2: Fix spelling of tessellation.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
framework: fix comparing NOTRUN/SKIP to other statuses

The current logic causes transitions involving notrun/skip to not show
up in problems. It also encodes display decisions in lt/gt/etc
operators. This change adjusts the status class to be logically simpler
by removing the special handling of lt/gt/etc so that max(status) can
work, and reorders the logic that figures out which category to select.

Tests are updated to encode the new order -- notrun/skip are now
comparable to (and less than) the other statuses, but are unordered
between one another.

Cc: Chris Forbes <chrisf@ijw.co.nz>
Cc: Dylan Baker <baker.dylan.c@gmail.com>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Allow setting a cwd to execute tests from.

Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
framework/core.py: Add pre_run and post_run hooks to TestProfile

These hooks no-op in the default TestProfile class, however they are
intended to give versatility and power to external test suites, which
may have specific environment requirements, setup requirements, or
teardown requirements, by allowing them to subclass TestProfile and set
these methods.
python: Add results_dir to TestProfile

This is needed specifically by XTS, but it might be useful for other
external suites that want to move files out of their runtime directories
into the saved directory. Specifically if those files are linked into
the summary.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
tests/xts.py: Add a tests file for the X Test suite.

This adds support for running XTS from piglit.

This patch was original written by Eric Anholt, but I've cleaned it up
and reworked parts of it for upstreaming, and as a result I've attached
my name as the author so ``git bisect'' and ``git blame'' will send
angry mail my way instead of Eric's.

v2: - Don't break dmesg reporting
    - Use str.format consistently

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>