Exemplo n.º 1
0
#
# Minimal tests to check whether the installation is working
#

from framework.core import TestProfile
from framework.gleantest import GleanTest

__all__ = ["profile"]

profile = TestProfile()
profile.tests["glean/basic"] = GleanTest("basic")
profile.tests["glean/readPixSanity"] = GleanTest("readPixSanity")
Exemplo n.º 2
0
import re
import sys
import subprocess

from framework.core import TestProfile, testBinDir
from framework.exectest import ExecTest
from os import path

__all__ = ['profile']

bin_oglconform = path.join(testBinDir, 'oglconform')

if not os.path.exists(bin_oglconform):
    sys.exit(0)

profile = TestProfile()


#############################################################################
##### OGLCTest: Execute a sub-test of the Intel oglconform test suite.
#####
##### To use this, create an 'oglconform' symlink in piglit/bin.  Piglit
##### will obtain a list of tests from oglconform and add them all.
#############################################################################
class OGLCTest(ExecTest):
    skip_re = re.compile(
        r'Total Not run: 1|no test in schedule is compat|GLSL [13].[345]0 is not supported|wont be scheduled due to lack of compatible fbconfig'
    )

    def __init__(self, category, subtest):
        ExecTest.__init__(
Exemplo n.º 3
0
            return False

    print "Test Environment check: Succeeded."
    return True


if not os.path.exists(os.path.join(testBinDir, 'igt')):
    print "igt symlink not found!"
    sys.exit(0)

# Chase the piglit/bin/igt symlink to find where the tests really live.
igtTestRoot = path.join(path.realpath(path.join(testBinDir, 'igt')), 'tests')

igtEnvironmentOk = checkEnvironment()

profile = TestProfile()


class IGTTest(ExecTest):
    def __init__(self, binary, arguments=[]):
        ExecTest.__init__(self, [path.join(igtTestRoot, binary)] + arguments)

    def interpretResult(self, out, returncode, results):
        if not igtEnvironmentOk:
            return out

        if returncode == 0:
            results['result'] = 'pass'
        elif returncode == 77:
            results['result'] = 'skip'
        else:
Exemplo n.º 4
0
#
# Minimal tests to check whether the installation is working
#

from framework.core import TestProfile
from framework.gleantest import GleanTest

__all__ = ['profile']

profile = TestProfile()
profile.tests['glean/basic'] = GleanTest('basic')
profile.tests['glean/readPixSanity'] = GleanTest('readPixSanity')
Exemplo n.º 5
0
# Helper functions

def add_plain_test(group, name, args):
	group[name] = PlainExecTest(args)

def add_concurrent_test(group, name, args):
	test = PlainExecTest(args)
	test.runConcurrent = true;
	group[name] = PlainExecTest(args)

def add_plain_program_tester_test(group, name, path):
	add_plain_test(group, name, ['cl-program-tester', path])

######
# Collecting all tests
profile = TestProfile()

custom = Group()
api = Group()
program = Group()
profile.tests['Custom'] = custom
profile.tests['API'] = api
profile.tests['Program'] = program

######
# Tests

# Custom
add_plain_test(custom, 'Run simple kernel', ['cl-custom-run-simple-kernel'])
add_plain_test(custom, 'Flush after enqueue kernel', ['cl-custom-flush-after-enqueue-kernel'])
add_plain_test(custom, 'r600 create release buffer bug', ['cl-custom-r600-create-release-buffer-bug'])
Exemplo n.º 6
0
            print "Test Environment check: other drm clients running!"
            return False

    print "Test Environment check: Succeeded."
    return True

if not os.path.exists(os.path.join(testBinDir, 'igt')):
    print "igt symlink not found!"
    sys.exit(0)

# Chase the piglit/bin/igt symlink to find where the tests really live.
igtTestRoot = path.join(path.realpath(path.join(testBinDir, 'igt')), 'tests')

igtEnvironmentOk = checkEnvironment()

profile = TestProfile()

class IGTTest(ExecTest):
    def __init__(self, binary, arguments=[]):
        ExecTest.__init__(self, [path.join(igtTestRoot, binary)] + arguments)

    def interpretResult(self, out, returncode, results):
        if not igtEnvironmentOk:
            return out

        if returncode == 0:
            results['result'] = 'pass'
        elif returncode == 77:
            results['result'] = 'skip'
        else:
            results['result'] = 'fail'