Home | History | Annotate | Download | only in scripts

Lines Matching refs:config

25 class Config:
37 def initBuildDir (config):
38 if os.path.exists(config.buildPath):
39 shutil.rmtree(config.buildPath)
41 os.makedirs(config.buildPath)
42 execute(["cmake", os.path.realpath(config.srcPath)] + config.genParams, workDir = config.buildPath)
44 def prepareBuildDir (config):
46 if os.path.exists(config.buildPath):
48 execute(["cmake", "."], workDir = config.buildPath)
51 initBuildDir(config)
53 initBuildDir(config)
55 def build (config):
56 prepareBuildDir(config)
57 execute(["cmake", "--build", "."] + config.buildParams, workDir = config.buildPath)
59 def runInternalTests (config):
60 batchResultFile = config.name + ".qpa"
61 infoLogFile = config.name + ".txt"
62 junitFile = config.name + ".xml"
64 testWorkDir = os.path.join(config.buildPath, "modules", "internal")
65 junitToolPath = os.path.join(config.buildPath, 'executor', config.junitTool)
72 build(config)
75 execute([config.testBinaryName, "--deqp-runmode=xml-caselist"], workDir = testWorkDir)
79 os.path.join(config.buildPath, 'executor', config.executor),
81 '--start-server=%s' % os.path.join(config.buildPath, 'execserver', config.execserver),
82 '--binaryname=%s' % config.testBinaryName,
99 Config(
104 ['--config', 'Debug', '--', '/m'],
110 Config(
115 ['--config', 'Release', '--', '/m'],
121 Config(
126 ['--config', 'Debug', '--', '/m'],
132 Config(
137 ['--config', 'Release', '--', '/m'],
145 Config(
153 Config(
161 Config(
169 Config(
179 Config(
187 Config(
195 Config(
203 Config(
214 for config in CONFIGS:
215 if config.name == name:
216 return config
221 die("%s: [config]" % sys.argv[0])
223 config = findConfig(sys.argv[1])
224 if config == None:
225 die("Config '%s' not found" % sys.argv[1])
228 runInternalTests(config)