def METHOD_NAME(self, test, litConfig):
    testPath,testName = os.path.split(test.getSourcePath())
    while not os.path.exists(testPath):
        # Handle GTest parametrized and typed tests, whose name includes
        # some '/'s.
        testPath, namePrefix = os.path.split(testPath)
        testName = namePrefix + '/' + testName
    cmd = [testPath, '--benchmark_filter=%s$' % testName ] + self.benchmark_args
    if litConfig.noExecute:
        return lit.Test.PASS, ''
    try:
        out, err, exitCode = lit.util.executeCommand(
            cmd, env=test.config.environment,
            timeout=litConfig.maxIndividualTestTime)
    except lit.util.ExecuteCommandTimeoutException:
        return (lit.Test.TIMEOUT,
                'Reached timeout of {} seconds'.format(
                    litConfig.maxIndividualTestTime)
               )
    if exitCode:
        return lit.Test.FAIL, ('exit code: %d\n' % exitCode) + out + err
    passing_test_line = testName
    if passing_test_line not in out:
        msg = ('Unable to find %r in google benchmark output:\n\n%s%s' %
               (passing_test_line, out, err))
        return lit.Test.UNRESOLVED, msg
    return lit.Test.PASS, err + out