Flutter Engine
The Flutter Engine
Variables
import_conformance_tests Namespace Reference

Variables

 wordWithUnderscores = pp.Word(pp.alphanums + '_')
 
 pipeList = pp.delimited_list(pp.SkipTo(pp.Literal("|") | pp.Literal("]")), delim="|")
 
 bracketedPipeList
 
 unbracketedValue = pp.Group(pp.SkipTo(";"))
 
tuple valueList
 
 value
 
tuple values
 
tuple expectation
 
tuple code
 
 reqGlsl100 = pp.Keyword("require").suppress() + pp.Keyword("full_glsl_es_100_support")
 
 desc = pp.Keyword("desc") + pp.QuotedString('"')
 
 version100es = pp.Keyword("version") + pp.Keyword("100") + pp.Keyword("es")
 
tuple ignoredCaseItem = (desc | version100es).suppress()
 
tuple caseItem = pp.Group(values | expectation | code | reqGlsl100) | ignoredCaseItem
 
 caseBody = pp.ZeroOrMore(caseItem)
 
 blockEnd = pp.Keyword("end").suppress();
 
 caseHeader = pp.Keyword("case") + wordWithUnderscores
 
 case = pp.Group(caseHeader + caseBody + blockEnd)
 
tuple groupHeader = (pp.Keyword("group") + wordWithUnderscores + pp.QuotedString('"')).suppress()
 
 group = pp.Forward()
 
 grammar = group
 
 testCases = grammar.parse_string(sys.stdin.read(), parse_all=True)
 
 testDirectory = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
 
string passDirectory = testDirectory + "/pass"
 
string failDirectory = testDirectory + "/fail"
 
 exist_ok
 
dictionary written = {}
 
 testName = c[0]
 
string skipTest = ''
 
bool expectPass = True
 
bool allowMismatch = False
 
string testCode = ''
 
list inputs = []
 
list outputs = []
 
 valueType = v[0]
 
string compare = lambda type, a, b : '((' + a + ') == (' + b + '))'
 
int numVariables = 0
 
string testSpecialization = testCode
 
string declarations = ""
 
string outputChecks = "return true"
 
string path = "%s/%s_%d.rts" % (testDirectory, testName, varIndex)
 
 f = open(path, "w")
 

Variable Documentation

◆ allowMismatch

bool import_conformance_tests.allowMismatch = False

Definition at line 109 of file import_conformance_tests.py.

◆ blockEnd

import_conformance_tests.blockEnd = pp.Keyword("end").suppress();

Definition at line 71 of file import_conformance_tests.py.

◆ bracketedPipeList

import_conformance_tests.bracketedPipeList
Initial value:
1= pp.Group(pp.Literal("[").suppress() +
2 pipeList +
3 pp.Literal("]").suppress())

Definition at line 37 of file import_conformance_tests.py.

◆ case

import_conformance_tests.case = pp.Group(caseHeader + caseBody + blockEnd)

Definition at line 74 of file import_conformance_tests.py.

◆ caseBody

import_conformance_tests.caseBody = pp.ZeroOrMore(caseItem)

Definition at line 69 of file import_conformance_tests.py.

◆ caseHeader

import_conformance_tests.caseHeader = pp.Keyword("case") + wordWithUnderscores

Definition at line 73 of file import_conformance_tests.py.

◆ caseItem

import_conformance_tests.caseItem = pp.Group(values | expectation | code | reqGlsl100) | ignoredCaseItem

Definition at line 67 of file import_conformance_tests.py.

◆ code

tuple import_conformance_tests.code
Initial value:
1= ((pp.Keyword("both") + pp.QuotedString('""', multiline=True)) |
2 (pp.Keyword("vertex") + pp.QuotedString('""', multiline=True) +
3 pp.Keyword("fragment") + pp.QuotedString('""', multiline=True)))

Definition at line 57 of file import_conformance_tests.py.

◆ compare

import_conformance_tests.compare = lambda type, a, b : '((' + a + ') == (' + b + '))'

Definition at line 167 of file import_conformance_tests.py.

◆ declarations

string import_conformance_tests.declarations = ""

Definition at line 236 of file import_conformance_tests.py.

◆ desc

import_conformance_tests.desc = pp.Keyword("desc") + pp.QuotedString('"')

Definition at line 63 of file import_conformance_tests.py.

◆ exist_ok

import_conformance_tests.exist_ok

Definition at line 93 of file import_conformance_tests.py.

◆ expectation

tuple import_conformance_tests.expectation
Initial value:
1= (pp.Keyword("expect").suppress() + (pp.Keyword("compile_fail") |
2 pp.Keyword("pass")))

Definition at line 54 of file import_conformance_tests.py.

◆ expectPass

bool import_conformance_tests.expectPass = True

Definition at line 108 of file import_conformance_tests.py.

◆ f

import_conformance_tests.f = open(path, "w")

Definition at line 263 of file import_conformance_tests.py.

◆ failDirectory

import_conformance_tests.failDirectory = testDirectory + "/fail"

Definition at line 92 of file import_conformance_tests.py.

◆ grammar

import_conformance_tests.grammar = group

Definition at line 84 of file import_conformance_tests.py.

◆ group

import_conformance_tests.group = pp.Forward()

Definition at line 80 of file import_conformance_tests.py.

◆ groupHeader

tuple import_conformance_tests.groupHeader = (pp.Keyword("group") + wordWithUnderscores + pp.QuotedString('"')).suppress()

Definition at line 78 of file import_conformance_tests.py.

◆ ignoredCaseItem

tuple import_conformance_tests.ignoredCaseItem = (desc | version100es).suppress()

Definition at line 65 of file import_conformance_tests.py.

◆ inputs

list import_conformance_tests.inputs = []

Definition at line 111 of file import_conformance_tests.py.

◆ numVariables

import_conformance_tests.numVariables = 0

Definition at line 225 of file import_conformance_tests.py.

◆ outputChecks

string import_conformance_tests.outputChecks = "return true"

Definition at line 246 of file import_conformance_tests.py.

◆ outputs

list import_conformance_tests.outputs = []

Definition at line 112 of file import_conformance_tests.py.

◆ passDirectory

import_conformance_tests.passDirectory = testDirectory + "/pass"

Definition at line 91 of file import_conformance_tests.py.

◆ path

string import_conformance_tests.path = "%s/%s_%d.rts" % (testDirectory, testName, varIndex)

Definition at line 260 of file import_conformance_tests.py.

◆ pipeList

import_conformance_tests.pipeList = pp.delimited_list(pp.SkipTo(pp.Literal("|") | pp.Literal("]")), delim="|")

Definition at line 36 of file import_conformance_tests.py.

◆ reqGlsl100

import_conformance_tests.reqGlsl100 = pp.Keyword("require").suppress() + pp.Keyword("full_glsl_es_100_support")

Definition at line 61 of file import_conformance_tests.py.

◆ skipTest

string import_conformance_tests.skipTest = ''

Definition at line 107 of file import_conformance_tests.py.

◆ testCases

import_conformance_tests.testCases = grammar.parse_string(sys.stdin.read(), parse_all=True)

Definition at line 87 of file import_conformance_tests.py.

◆ testCode

string import_conformance_tests.testCode = ''

Definition at line 110 of file import_conformance_tests.py.

◆ testDirectory

string import_conformance_tests.testDirectory = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))

Definition at line 90 of file import_conformance_tests.py.

◆ testName

import_conformance_tests.testName = c[0]

Definition at line 102 of file import_conformance_tests.py.

◆ testSpecialization

string import_conformance_tests.testSpecialization = testCode

Definition at line 233 of file import_conformance_tests.py.

◆ unbracketedValue

import_conformance_tests.unbracketedValue = pp.Group(pp.SkipTo(";"))

Definition at line 40 of file import_conformance_tests.py.

◆ value

import_conformance_tests.value
Initial value:
1= pp.Group((pp.Keyword("input") | pp.Keyword("output") | pp.Keyword("uniform")) +
2 valueList)

Definition at line 47 of file import_conformance_tests.py.

◆ valueList

tuple import_conformance_tests.valueList
Initial value:
1= (pp.Word(pp.alphanums) + # type
2 pp.Word(pp.alphanums) + # varname
3 pp.Literal("=").suppress() +
4 (bracketedPipeList | unbracketedValue) +
5 pp.Literal(";").suppress())

Definition at line 42 of file import_conformance_tests.py.

◆ values

tuple import_conformance_tests.values
Initial value:
1= (pp.Keyword("values") +
2 pp.Literal("{").suppress() +
3 pp.ZeroOrMore(value) +
4 pp.Literal("}").suppress())

Definition at line 49 of file import_conformance_tests.py.

◆ valueType

import_conformance_tests.valueType = v[0]

Definition at line 133 of file import_conformance_tests.py.

◆ version100es

import_conformance_tests.version100es = pp.Keyword("version") + pp.Keyword("100") + pp.Keyword("es")

Definition at line 64 of file import_conformance_tests.py.

◆ wordWithUnderscores

import_conformance_tests.wordWithUnderscores = pp.Word(pp.alphanums + '_')

Definition at line 34 of file import_conformance_tests.py.

◆ written

dictionary import_conformance_tests.written = {}

Definition at line 95 of file import_conformance_tests.py.