framework: Dump the result of 'uname -a' in the report

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
tests/igt.py: add support for reading the test list from the file system

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
cl: Add cl-api-enqueue-copy-buffer-rect test
gtest: Use correct fuction signature for interpret_result

This was changed in fb6c545d880791f8e3057bbd86dd5cdf1bf3a3d3
and gtest.py was not updated.
util: Move MSVC's inline macro to piglit-util.h

So that it is more widely defined.

This should fix MSVC build.

Trivial change, which does not affect non-Windows builds in any way.
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
    - populate profile after check for xtest symlink
v3: - rebase against master

TODO: there are rebase errors from previous patches fixed in this one

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