summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-11-01Use new header file (rebase on caca)primgenBen Widawsky1-1/+1
2014-11-01HACKSBen Widawsky2-14/+94
2014-11-01Add an even simpler version of primgen:Kenneth Graunke2-0/+91
No clears (since those require the pixel pipeline to work) No ortho No colors No drawing Rasterizer Discard
2014-10-31gbm: use libcaca to display results in non-auto modecacaJordan Justen3-0/+97
If GBM is enabled, attempt to locate libcaca too. If the test was not run with -auto, then use libcaca to draw a text version of the test's results to the console. v2 (Ben): Rebase Per Ken's comment the libcaca API may change at v1.0, but it's still not there are 8 months. I propose we push this, and worry about libcaca breakage later. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> (v1) Acked-by: Kenneth Graunke <kenneth@whitecape.org> Cc: Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2014-10-31json_.py: Bump results version to 2Dylan Baker3-1/+191
This corrects in a permanent and automatic way the changes in the results that were fixed in the previous patch. v2: - add this patch v3: - Only add each element if it exists - Put the tests in their own module v4: - actually check that test module into git... Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Tested-by: Emil Velikov <emil.l.velikov@gmail.com>
2014-10-31results_v0_tests.py: Use TestrunResult.load instead of load_resultsDylan Baker1-4/+6
framework.results.load_results calls update_results() internally. This means that as soon as a second method is added that updates results to version 2 then the tests will start failing. v2: - add this patch Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Tested-by: Emil Velikov <emil.l.velikov@gmail.com>
2014-10-31run.py: store log_level (verbosity) for resumeDylan Baker1-0/+1
This allows resume to use the same level of verbosity as the initial run. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Tested-by: Emil Velikov <emil.l.velikov@gmail.com>
2014-10-31framework: fix glxinfo, uname, and lspci in json outputDylan Baker3-43/+13
Move the environment information back into the root of the json output dictionary. Also modifies two tests. One is removed because it is basically a duplicate of the tests added in the last patch, the other is simplified to be more robust. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Tested-by: Emil Velikov <emil.l.velikov@gmail.com>
2014-10-31json_tests.py: Add unit tests for json backendDylan Baker3-11/+172
Refactor run.py a little to allow testing the Backend.initialize() call. This adds tests for the output of the json piglit format. This currently has 4 failing tests exposing two separate bugs: 1) the logger verbosity level is not stored and thus cannot be used by resume 2) lspci, uname, and glxinfo are not written into the root of the json output. This also adds a unit test utility function for skipping unit tests when the OS is not the required OS. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Tested-by: Emil Velikov <emil.l.velikov@gmail.com>
2014-10-30summary.py: Make mako temporary directory user uniqueDylan Baker1-2/+4
Currently when a user runs piglit mako temp files are put in the OS appropriate location. On Linux, this is /tmp/piglit. The problem is that these files are owned by that user and unusable by a second user. This works out fine for most use cases, but not for the case of a shared piglit slave with multiple users. This patch fixes the issue by creating a piglit-$(username) folder to put the mako files in. For most users this will be transparent and have no effect on them. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Acked-by: Jason Ekstrand <jason.ekstrand@gmail.com>
2014-10-30log.py: Fix overwriting of final summaryDylan Baker1-0/+1
Currently when piglit finishes running it prints a final summary. It does not however, print a newline afterwards. This means that the summary is partially overwritten by the 'thanks for running piglit' message. This patch corrects that problem, making the final output look much nicer. Tested-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2014-10-29gl-1.0-readpixsanity: Remove malloc casts.José Fonseca1-3/+3
As ordered by Matt Turner.
2014-10-29arb_framebuffer_srgb-clear: check an AMD sRGB clearing bugShibdas Bandyopadhyay3-0/+168
Reviewed-by: Brian Paul <brianp@vmware.com>
2014-10-29gl-3.2-pointsprite-origin: test a MacOS sprite origin bugShibdas Bandyopadhyay3-0/+183
Reviewed-by: Brian Paul <brianp@vmware.com>
2014-10-29gl-3.2-pointsprite-coord: test a MacOS OpenGL sprite coord bugShibdas Bandyopadhyay3-0/+216
Reviewed-by: Brian Paul <brianp@vmware.com>
2014-10-29arb_copy_image/srgb-copy: test an NVIDIA GL_ARB_copy_image / sRGB bugShibdas Bandyopadhyay3-1/+129
Reviewed-by: Brian Paul <brianp@vmware.com>
2014-10-29arb_texture_view-cubemap-view: new test to check an NVIDIA cubemap bugShibdas Bandyopadhyay3-0/+173
Reviewed-by: Brian Paul <brianp@vmware.com>
2014-10-29arb_texture_view-max-level: new test for an NVIDIA texelFetch() bugShibdas Bandyopadhyay3-0/+254
Reviewed-by: Brian Paul <brianp@vmware.com>
2014-10-29Restore junit_suffix functionalityMark Janes1-2/+2
b8d8cfadcc83fd09c1367821337d473d80bb6607 inadvertenty disabled the --junit_suffix functionality, which is needed to differentiate results from multiple test runs. Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
2014-10-29texture-packed-formats: Move the probes to a separate loop.Eric Anholt1-5/+13
This avoids having to flush rendering after every texture operation. Combined with a vc4 driver fix, reduces runtime of the test on simulation from 160s to 44s. It's still provoking a lot of flushes, because each slice of the 3d texture uploads is being DISCARD_RANGE-mapped individually. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-10-29texture-packed-formats: Move some GL state transitions outside of the loop.Eric Anholt1-10/+10
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-10-29texture-packed-formats: Draw each rect as a 4x4 quad.Eric Anholt1-28/+11
There are only 4x4 texels, so let's just draw each one, and actually sample them all. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-10-29texture-packed-formats: Reformat to piglit whitespace style.Eric Anholt1-257/+261
Editing was irritating because indentation was wrong. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-10-29texture-packed-formats: Drop unused blend code.Eric Anholt1-8/+0
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-10-29polygon-offset: Fix GLU include on MacOSX.José Fonseca1-1/+6
Trivial.
2014-10-29gl-1.0-readpixsanity: Eliminate use of variable length arrays.José Fonseca1-27/+37
Non-standard GCC extension. Reviewed-by: Brian Paul <brianp@vmware.com>
2014-10-29gl-1.0-readpixsanity: Remove log2 re-definition.José Fonseca1-7/+0
It's already defined in tests/util/piglit-util.h if necessary, furthermore it's a macro on MSVC, so redefining it causes errors. Reviewed-by: Brian Paul <brianp@vmware.com>
2014-10-29cl: Add erfc testsAaron Watry1-0/+10
Tested on Apple CL (10.9, CPU and GF9400m) to 1ULP. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add some erf builtin testsAaron Watry1-0/+10
Tested on Apple CL (CPU and GF9400m) down to 1 ULP precision, but the spec says 16ULP. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomix_xor global testsAaron Watry2-0/+125
Tests both usage and non-usage of return value. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomic_or global testsAaron Watry2-0/+125
Tests both usage of and no usage of return value. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomic_min global testsAaron Watry2-0/+121
Tests for both usage-of and non-usage-of the return value Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomic_max global testsAaron Watry2-0/+121
Tests both usage of return and no usage of return. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomic_and global testsAaron Watry2-0/+125
Tests both usage of return and no usage of return variants. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomic_dec global testsAaron Watry2-0/+120
Tests both usage and non-usage of return value. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomic_inc global testsAaron Watry2-0/+120
Tests both usage of return values and no usage in separate files. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomic_sub global testsAaron Watry2-0/+121
Tests both usage of return value and no-return-usage variants. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-28varying-packing-simple: Add NORETURN attribute to print_usage_and_exit.Vinson Lee1-1/+1
Silence clang sometimes-uninitialized warnings. simple.c:368:6: warning: variable 'test_type' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if (all_types[i]) ^~~~~~~~~~~~ simple.c:380:30: note: uninitialized use occurs here piglit_require_GLSL_version(test_type->glsl_version_required); ^~~~~~~~~ simple.c:368:2: note: remove the 'if' if its condition is always true if (all_types[i]) ^~~~~~~~~~~~~~~~~ simple.c:355:35: note: initialize the variable 'test_type' to silence this warning const struct type_desc *test_type; ^ = NULL simple.c:374:11: warning: variable 'test_array' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] else if (strcmp(argv[2], "separate") == 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ simple.c:385:12: note: uninitialized use occurs here test_array, max_varying_floats); ^~~~~~~~~~ simple.c:374:7: note: remove the 'if' if its condition is always true else if (strcmp(argv[2], "separate") == 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ simple.c:356:22: note: initialize the variable 'test_array' to silence this warning GLboolean test_array; ^ = '\0' Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-10-28README: Remove Todo sectionDylan Baker1-16/+0
This section has either been long since completed or is outside the scope of the piglit project. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-10-28README: update test classes informationDylan Baker1-15/+42
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-10-28README: Update the list of test profilesDylan Baker1-4/+30
Separate out the OpenCL and OpenGL profiles into different sections, and add a section for integration tests. This doesn't include es3conform and oglconform since I don't think that either of them actually work at this point. v2: - fix some nits from ken Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-10-28README: Update result statusesDylan Baker1-11/+12
Adds the crash, timeout and the dmesg-* statuses. v2: - fix some nits from Ken Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-10-28README: use the piglit command not piglit-* commandsDylan Baker1-10/+9
These are old and maintained as compatibility options, modern development should be happening in the unified piglit command anyway. v2: - fix some nits from Ken Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-10-28README: Add simplejson and lxml as optional dependenciesDylan Baker1-2/+8
These are accelerated libraries that the python framework can optionally use to run faster. v2: - fix some nits from Ken Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-10-28run.py: Split windows exception handling into helperDylan Baker1-11/+15
This allows the function to be shared by run and resume. It was not present in resume before, thus windows exceptions would still raise an exception and open a popup window. v2: - rename function per Ken Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-10-28piglit-print-commands.py: Fix bug with test packageDylan Baker1-2/+1
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85079 Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2014-10-28Removed polygonOffset test from Glean.Laura Ekstrand4-799/+0
2014-10-28Ported polygon offset test from Glean to Piglit.Laura Ekstrand3-0/+672
2014-10-28Removed Glean read pixels sanity test.Laura Ekstrand4-999/+0
2014-10-28Ported the read pixels sanity test from Glean to Piglit.Laura Ekstrand4-3/+387