cl: Add asinh tests

Also re-organize math imports slightly

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
cl: Add atanh tests

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
cl: Add cbrt tests

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
cl: Add cosh tests

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
cl: Add sinh tests

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
cl: Add tanh tests

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
cl: Add cospi tests

v2: Remove stray ', pi' in Arg0 list

CC: Bruno Jiménez <brunojimen@gmail.com>
Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
cl: Add sinpi tests

v2: Remove stray ', pi' in Arg0 list

CC: Bruno Jiménez <brunojimen@gmail.com>
Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
utils: cleanup winsys on test exit

Tested-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
util/wfl: unbind the current context before destroying its window

Otherwise we end up leaking the drawable. Spotted by Valgrind

Tested-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
cl: Add log1p tests

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
gles2: add test to render a point without vertex attributes

v2: instead of c, make it a shader_runner_gles2 test

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
gles2: add linker test for varying that is not written but read

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
gles2: add linker test for shader not writing to gl_Position

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by:  Anuj Phogat <anuj.phogat@gmail.com>
framework tests: Stop leaving temporary files

There is an odd interaction between context manager and
nose.tools.raises and nose.tools.assert_raises, if the context manager
is initializes inside of the assert_raises the temporary files a folders
will not be cleaned up.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
exectest_test.py: Add a unit test for the expanding running bug

There is a bug right now that is present in the quite (and by
inheritance verbose) logger, which causes a test that uses the default
status to assert and the thread closes. When this happens the logger
doesn't finish, and the running line isn't removed.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
results.py: Do add load class method to TestResult

This creates an alternate constructor for loading an existing test
result, designed for use with loading an existing TestrunResult. This
fixes the bug in demonstrated by the test in the last patch by not
converting the result key into a status object in all conditions.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
results.py: Remove TestrunResult() repair file

This patch removes the TestrunResult private methods for repairing a
json file, and adds an alternate constructor that reads the results.json
file and assumes that the json file is valid (it should be after all),
and converts the test results to TestResult instances.

This patch should have been part of the atomic-rewrite series that
landed recently, but was lost in a rebase error.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
egl-create-pbuffer-surface: Add test for egl pbuffer surface

Test to create egl pbuffer surface, clear it with glClear, draw
it to window and read written color back.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Don't run GLX_OML_sync_control tests concurrently.

This fixes the swapbuffersmsc-return (with default swap_interval) test,
by not passing it arguments that it doesn't understand.

These tests all require a GLXWindow, so they can't be used in -fbo mode
(and they didn't understand that option anyway).

And though they need the behavior of -auto, none of them parse that
option. These tests have to deal with it in other ways, as illustrated
by commit 1d618f2abbc9f9665505b7082690eebc3bc01a72.

Finally, I think it's a bad idea to run these tests concurrently with
anything else, as interference from other clients could change the
result of attempting to sync to vertical retrace, which is a
screen-global resource.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Theo Hill <Theo0x48@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>