triangle-rasterization: Fix typo in test argument.

Trivial: test expects `-use_fbo` option for testing FBO rasterization,
and not `-fbo`.
framework: Treat wglinfo, glxinfo and lspci output as text, not binary data.

On Python 3.x this has the side-effect of returning a str instead of a bytes.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
piglit-merge-results.py: Drop dead code

An instance of core.Environment was being created, but never used.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
piglit-merge-results.py: Convert from getopt to argparse

Creates a smaller, simpler file that should be easier to maintain going
forward.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
piglit-summary-html.py: replace getopt with argparse

Less code, easier to read and more standard, and free help messages.

V2: Changed args.overwrite to 'store_true' per Ken Graunke

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
piglit-summary-junit.py: Convert optparse to argparse

Optparse has been deprecated in favor of argparse upstream (PEP 389
http://www.python.org/dev/peps/pep-0389/), and since we are using
argparse already in the other modules, it makes sense to replace
optparse and use only one parsing method in all piglit.

V2: Dropped some unrelated code per Ken Graunke

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
cl: Add test for SHA-256 Ch function

Reviewed-By: Aaron Watry <awatry@gmail.com>
cl: Add test for get_group_id()

Reviewed-By: Aaron Watry <awatry@gmail.com>
cl: Add test for get_local_size()

Reviewed-By: Aaron Watry <awatry@gmail.com>
Add test for concurrent shader compiler use.

Add a test that creates two contexts and concurrently
compiles shader programs to test race conditions of
the shader compiler.

v3: (Tom Stellard)
  - Report pass at the end of the tests
  - Add as a concurrent test

v4: (Mathias Froehlich)
  - Fix comment style

Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Test interaction of dead code elimination with "break" statements.

Test written by Vadim Girlin <vadimgirlin@gmail.com>.  I added
explanatory comments.

Reviewed-by: Matt Turner <mattst88@gmail.com>