Commit a2f48667 authored by Juan Suárez Romero's avatar Juan Suárez Romero

unittests: mustpass is a text list

Commit 7cf9e743 updated deqp mustpass lists to use text based mustpass.

Hence unit tests should use text based mustpass too.

Fixes: 7cf9e743 ("framework: update deqp mustpass list for text based
mustpass")
Reviewed-by: Andres Gomez's avatarAndres Gomez <agomez@igalia.com>
Reviewed-by: Dylan Baker's avatarDylan Baker <dylan@pnwbakers.com>
parent e60d247e
......@@ -299,28 +299,18 @@ class TestDEQPBaseTest(object):
class TestGenMustpassTests(object):
"""Tests for the gen_mustpass_tests function."""
_xml = textwrap.dedent("""\
<?xml version="1.0" encoding="UTF-8"?>
<TestPackage name="dEQP-piglit-test" appPackageName="com.freedesktop.org.piglit.deqp" testType="deqpTest" xmlns:deqp="http://drawelements.com/deqp" deqp:glesVersion="196608">
<TestSuite name="dEQP.piglit">
<TestCase name="group1">
<Test name="test1" />
<Test name="test2" />
</TestCase>
<TestSuite name="nested">
<TestCase name="group2">
<Test name="test3" />
<Test name="test4" />
</TestCase>
</TestSuite>
</TestSuite>
</TestPackage>
""")
_txt = """\
dEQP.piglit.group1.test1
dEQP.piglit.group1.test2
dEQP.piglit.nested.group2.test3
dEQP.piglit.nested.group2.test4
"""
def test_basic(self, tmpdir):
p = tmpdir.join('foo.xml')
p.write(self._xml)
p = tmpdir.join('foo.txt')
p.write(self._txt)
tests = set(deqp.gen_mustpass_tests(six.text_type(p)))
print(tests)
assert tests == {
'dEQP.piglit.group1.test1',
'dEQP.piglit.group1.test2',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment