Fix invalid gs qualifier "layout(triangles) out" in a few tests.

"triangles" is not a valid geometry shader output primitive type.
"triangle_strip" must be used instead.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Escape HTML output when generating test result pages.

If a test generates output containing '<', '>', or '&', we need to
HTML escape it so that the web browser doesn't interpret it as
containing HTML tags.

While we're at it, go ahead and HTML escape the traceback and dmesg
outputs too.

Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
Check that transform feedback size/type comes from gs, not vs.

When the current program has both a geometry shader and a vertex
shader, transform feedback needs to link with the geometry shader.
This test verifies that the type and size of the varyings captured by
transform feedback match their declarations in the geometry shader,
even if there are vertex shader outputs with the same names and
different types.

The test exercises one built-in shader output (gl_ClipDistance) and
one user-defined shader output.
Test that the fs gl_PrimitiveID input works even when there's no gs.

For i965/gen7 hardware, the driver has to go to extra work to make
gl_PrimitiveID work in the case where there is no geometry shader.  So
we need a separate test to make sure that works properly.
Test interpolation qualifiers inside of interface blocks.

Validated using the NVIDIA proprietary driver for Linux (version
313.18).
Test the "centroid" qualifier inside of interface blocks.

Validated using the NVIDIA proprietary driver for Linux (version
313.18).
gs: Test that gl_MaxGeometryInputComponents can actually be achieved.
gs: Fix geometry layout case insensitivity tests.

These tests use check_link: true, which means that they each need to
specify a complete set of geometry shader layout qualifiers in order
to pass.
gs: Test redeclaring either gl_PerVertex in or out, and using both.
Test a corner case involving arrays, structs, and interface blocks.

This patch exercises the same corner case as
https://bugs.freedesktop.org/show_bug.cgi?id=70368.
!UPSTREAM: Interface Blocks: Test how interface block members are accessed from API

v2: Add checks to also test invalid names

v3 (Paul Berry <stereotype441@gmail.com>): use piglit_link_check_status_quiet()

TODO:
- Let Nick push this.