summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-03-28 15:18:30 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-05-01 14:27:54 -0700
commitba9aea35b1f8c9d65260e98fe4a62e02644a21c7 (patch)
treea600c66a079b72fc1a0f5b5511c64c02ea7564a0 /framework
parent9461d92301e72807eba4776a16a05207e3a16477 (diff)
framework: Use custom class for ASM parser tests
This is going to make serialization easier, since asmparser tests take a file argument, which must be relative at build time, but absolute at run time. Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/test/piglit_test.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/framework/test/piglit_test.py b/framework/test/piglit_test.py
index ef3bfdc5d..c53c3e55e 100644
--- a/framework/test/piglit_test.py
+++ b/framework/test/piglit_test.py
@@ -189,3 +189,17 @@ class PiglitCLTest(PiglitBaseTest): # pylint: disable=too-few-public-methods
"""
def __init__(self, command, run_concurrent=CL_CONCURRENT, **kwargs):
super(PiglitCLTest, self).__init__(command, run_concurrent, **kwargs)
+
+
+class ASMParserTest(PiglitBaseTest):
+
+ """Test class for ASM parser tests."""
+
+ def __init__(self, type_, filename):
+ super(ASMParserTest, self).__init__(['asmparsertest', type_])
+ self.filename = filename
+
+ @PiglitBaseTest.command.getter
+ def command(self):
+ command = super(ASMParserTest, self).command
+ return command + [os.path.join(ROOT_DIR, self.filename)]