CL: Fix illegal character in scalar-arithmatic-short test name

'%' is not allowed.  Use 'mod' instead.

Signed-off-by: Aaron Watry <awatry@gmail.com>
CL: Fix other-data-types image tests

These were throwing errors (windows, catalyst, clc 1.2) because image
data types are not allowed to be declared within a kernel, only as
kernel parameters.

Re-structure the test so that we always test event_t, and progressively
check the additional types that are supported based on the declared CLC
version and image support declaration.

Signed-off-by: Aaron Watry <awatry@gmail.com>
CL: Fix scalar-data-types double test

We were declaring variable 'd' twice on subsequent lines.

Noticed and tested on windows catalyst (pitcairn) w/ CL 1.2.

Signed-off-by: Aaron Watry <awatry@gmail.com>
cl: Add build test for -D GENTYPE=int
cl/api/build-program: Add a test with an empty program
cl-program-tester: Initialize piglit_result to PIGLIT_SKIP

We were initializing it PIGLIT_PASS which meant that 'skipped' tests were
being reported as 'pass'.

Reviewed-by: Aaron Watry <awatry@gmail.com>
cl-program-tester: Skip tests if devices don't support the local work size

Reviewed-by: Aaron Watry <awatry@gmail.com>
cl: Add local memory test

Reviewed-by: Aaron Watry <awatry@gmail.com>
Expect ARB_texture_cube_map_array/compiler/tex_bias-01.vert to fail.

Bias makes no sense in a vertex shader, as there's no implicitly
computed LOD to add a bias to.  According to the GLSL 4.30 spec, "In all
functions below, the bias parameter is optional for fragment shaders.
The bias parameter is not accepted in any other shader."  1.30 has
similar text disallowing bias in vertex shaders.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
Unittests: Add unittests for HTML output

Provides a set of static files to perform basic unittesting against.
unittest: Do not use same location for all tests

Previous behavior had each suite replacing the previous suite's files,
which may be efficient for space, but for both debugging reasons and
robustness reasons doesn't make a lot of sense. This patch corrects that
behavior by using /tmp/ut as a root folder, and each suite adds a new
folder under that.
unittests: Adds test for junit xml that validates using xmllint

This test currently only runs on linux (since it relies on linux
binaries xmllint and which). It grabs the latest copy of junit-4.xsd for
the jenkins upstream, and uses xmllint and that file to verify the xml
that piglit-summary-junit.py creates.
unittests: Adds testsuite for HTML output with broken json file

This exercises the path that takes the summary though the rebuilding of
the json file.
piglit-unit-test.py: Adds some commments
unittest: Marks junit xmllint test as expected failure

The current implementation of junit output is not compliant, since I'm
waiting to merge new junit generation code I have not interest in fixing
this, so it's easier to just mark it as broken.
unittests.py: Stops xmllint from spamming stdout:x
html: Adds xmllint test for html
unittests: de-duplicate HTML test code

this patch makes a single base class for all HTML classes to descend
from, and vastly simplifies the HTML test classes, they are now just 4
variable definitions
unittest: Adds a base class for testing text summary
junit_xsd: Use Popen instead of os.system

This allows us to capture the output of stderr and stdout, and to print
stderr when there is an error.