summaryrefslogtreecommitdiff
path: root/unittests/framework/test
AgeCommit message (Collapse)AuthorFilesLines
2017-05-25test_gleantest: make sure --quick is returned when set in GLOBAL_PARAMSTimothy Arceri1-0/+1
2017-05-18framework: Add command.setter method to TestDylan Baker3-12/+46
This allows the command to be overwritten or modified after instantiation, which is useful for adding additional arguments in a profile. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-11-10framework/profile: replace Testprofile.{dmesg,monitoring} with dictDylan Baker2-8/+8
This allows a significant amount of cleanup to happen. It allows removing attributes from the global OPTIONS, removing tests that no longer apply, and because of the split run method it allows more values to simply be passed. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-10-07framework: Add class for running multiple shader_tests in a single processDylan Baker1-1/+62
This adds a class based on the ReducedProcessMixin that allows the python layer to understand the output of shader_runner when it runs more than one test per process. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-10-07framework: Add a Mixin class for running multiple tests in a single processDylan Baker1-2/+136
This Mixin makes writing classes for handling tests that run multiple tests in a single process simpler. It does this through the use of the subtest feature. It makes it possible to implement two new methods, and an aware interpret_result method and have support for this feature, including a cherry-like resume feature that starts again after a test crashes, without rerunning the crashed test. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-10-07framework: Split FastSkipMixin.Dylan Baker1-84/+108
This splits the FastSkipMixin into two classes. One that actually does the fast skipping, and one that provides a mixin for Test. This split will allow the class to be used in the traditional way, but also in shader_test.MultiShaderTest. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-08-23framework: fix PIGLIT_NO_FAST_SKIP.Dylan Baker1-0/+41
The signature of the stub version was not updated when the real version was, which means setting the environment variable will raise an exception. Also adds some tests for this problem. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Tested-by: Marek Olšák <marek.olsak@amd.com>
2016-08-16framework/test/deqp: generalize mustpass list handlingDylan Baker1-0/+33
This patch generalizes the mustpass list functionality in deqp_gles3.py. While the idea is the same, this implementation is considerably different than the version in deqp_gles3, since it bypasses calling the binary to generate a test list altogether, and simply replaces the iter_deqp_test_cases function by providing output that the make_profile function can consume. The end result is that this is simpler (though more LOC are added since this actually has tests), and can be applied to gles2 and gles31. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-08-10framework: fix binary assignment for shader_runnerDylan Baker1-16/+28
Currently the python layer tries to dispatch shader_tests to the right binary (gles2, gles3 or gl). But the implementation is pretty dumb. It basically assumes either >= or == are the only operators used, and makes wrong assignments for < or <=, which are allowed. Is also only understands 2.0 and 3.0 as GLES versions, which is problematic. This version uses the closes equivalent of a match statement that python has, to try to pick the right GLES version, otherwise it uses the GL version. It also shares this picking mechanism with the Fast Skip mechanism, so they always have the same result. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> cc: mark.a.janes@intel.com cc: currojerez@riseup.net Tested-by: Michel Dänzer <michel.daenzer@amd.com>
2016-08-05framework/test/glsl_parser_test: Add ARB_ESx to command line when neededDylan Baker1-4/+4
When using the GL binary to run GLES tests the appropriate ES compatibility extension is added to the fast skipping requirements, but not to the command line options. It needs to be added to the command line options too, so that it will be skipped properly when not using the fast-skipping layer. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-08-05framework/test/glsl_parser_test: Don't error on blank C commentsDylan Baker1-1/+0
Currently if a C style comment has a blank line in it: /* * my comment * * more */ The parser will choke and die. That's not good, so fix it. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-08-05framework: Fix valgrind mixin.Dylan Baker1-3/+0
This Mixin is currently broken because it doesn't handle warn statuses, but it really needs to handle them because the underlying Test class is going to turn a number of statuses it expects to be 'pass' into 'warn' Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-08-05unittests: port opengl_tests to pytestDylan Baker1-0/+556
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-08-05unittests: port base_tests to pytestDylan Baker1-0/+412
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-08-05unittests: port piglit_test to pytestDylan Baker1-0/+164
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-08-05unittests: port deqp tests to pytestDylan Baker1-0/+296
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-08-05unittests: port shader_test tests to py.testDylan Baker1-0/+194
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-08-05unittests: port tests for glsl_parser_test to py.testDylan Baker1-0/+484
This patch adds a couple of new tests that were not being generated for some reason, and fixes a test that wasn't testing what it was supposed to. These tests fail of course, so they've been marked as expected fail and will be fixed later. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-08-05unittests: port gleantest_tests to py.testDylan Baker1-0/+109
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-08-05unittests: port opencv_tests to pytestDylan Baker1-0/+32
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-08-05unittests: port gtest_test to pytestDylan Baker2-0/+38
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>