• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:config

1 # -*- coding: utf-8 -*-
3 #-------------------------------------------------------------------------
5 # --------------------------------------
13 # http://www.apache.org/licenses/LICENSE-2.0
21 #-------------------------------------------------------------------------
31 exit(-1)
45 class Config: class
46 … testBinaryName, executor = 'executor', execserver = 'execserver', junitTool = 'testlog-to-junit'):
57 def initBuildDir (config): argument
58 if os.path.exists(config.buildPath):
59 shutil.rmtree(config.buildPath)
61 os.makedirs(config.buildPath)
62 execute(["cmake", os.path.realpath(config.srcPath)] + config.genParams, workDir = config.buildPath)
64 def prepareBuildDir (config): argument
66 if os.path.exists(config.buildPath):
68 execute(["cmake", "."], workDir = config.buildPath)
71 initBuildDir(config)
73 initBuildDir(config)
75 def build (config): argument
76 prepareBuildDir(config)
77 execute(["cmake", "--build", "."] + config.buildParams, workDir = config.buildPath)
79 def runInternalTests (config): argument
80 batchResultFile = config.name + ".qpa"
81 infoLogFile = config.name + ".txt"
82 junitFile = config.name + ".xml"
84 testWorkDir = os.path.join(config.buildPath, "modules", "internal")
85 junitToolPath = os.path.join(config.buildPath, 'executor', config.junitTool)
92 build(config)
95 execute([config.testBinaryName, "--deqp-runmode=xml-caselist"], workDir = testWorkDir)
99 os.path.join(config.buildPath, 'executor', config.executor),
100 '--port=%d' % random.randint(50000, 60000),
101 '--start-server=%s' % os.path.join(config.buildPath, 'execserver', config.execserver),
102 '--binaryname=%s' % config.testBinaryName,
103 '--cmdline=--deqp-crashhandler=enable --deqp-watchdog=enable',
104 '--workdir=%s' % testWorkDir,
105 '--caselistdir=%s' % os.path.join(testWorkDir),
106 '--testset=dE-IT.*',
107 '--out=%s' % batchResultFile,
108 '--info=%s' % infoLogFile
116 BASE_BUILD_PATH = os.path.normpath(os.path.join(SRC_PATH, "..", "de-internal-tests"))
119 Config(
120 "win32-vs10-debug",
122 os.path.join(BASE_BUILD_PATH, "win32-vs10-debug"),
123 ['-GVisual Studio 10', '-DDEQP_TARGET=no_modules'],
124 ['--config', 'Debug', '--', '/m'],
125 'Debug\\de-internal-tests.exe',
128 'Debug\\testlog-to-junit.exe'
130 Config(
131 "win32-vs10-release",
133 os.path.join(BASE_BUILD_PATH, "win32-vs10-release"),
134 ['-GVisual Studio 10', '-DDEQP_TARGET=no_modules'],
135 ['--config', 'Release', '--', '/m'],
136 'Release\\de-internal-tests.exe',
139 'Release\\testlog-to-junit.exe'
141 Config(
142 "win64-vs10-debug",
144 os.path.join(BASE_BUILD_PATH, "win64-vs10-debug"),
145 ['-GVisual Studio 10 Win64', '-DDEQP_TARGET=no_modules'],
146 ['--config', 'Debug', '--', '/m'],
147 'Debug\\de-internal-tests.exe',
150 'Debug\\testlog-to-junit.exe'
152 Config(
153 "win64-vs10-release",
155 os.path.join(BASE_BUILD_PATH, "win64-vs10-release"),
156 ['-GVisual Studio 10 Win64', '-DDEQP_TARGET=no_modules'],
157 ['--config', 'Release', '--', '/m'],
158 'Release\\de-internal-tests.exe',
161 'Release\\testlog-to-junit.exe'
165 Config(
166 "linux32-gcc-debug",
168 os.path.join(BASE_BUILD_PATH, "linux32-gcc-debug"),
169-DDEQP_TARGET=no_modules', '-DCMAKE_BUILD_TYPE=Debug', '-DCMAKE_C_FLAGS=-m32', '-DCMAKE_CXX_FLAGS=
170 ['--', '-j', '2'],
171 './de-internal-tests'
173 Config(
174 "linux32-gcc-release",
176 os.path.join(BASE_BUILD_PATH, "linux32-gcc-release"),
177-DDEQP_TARGET=no_modules', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_C_FLAGS=-m32', '-DCMAKE_CXX_FLAG…
178 ['--', '-j', '2'],
179 './de-internal-tests'
181 Config(
182 "linux64-gcc-debug",
184 os.path.join(BASE_BUILD_PATH, "linux64-gcc-debug"),
185 …['-DDEQP_TARGET=no_modules', '-DCMAKE_BUILD_TYPE=Debug', '-DCMAKE_C_FLAGS=-m64', '-DCMAKE_CXX_FLAG…
186 ['--', '-j', '2'],
187 './de-internal-tests'
189 Config(
190 "linux64-gcc-release",
192 os.path.join(BASE_BUILD_PATH, "linux64-gcc-release"),
193 …['-DDEQP_TARGET=no_modules', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_C_FLAGS=-m64', '-DCMAKE_CXX_FL…
194 ['--', '-j', '2'],
195 './de-internal-tests'
199 Config(
200 "linux32-clang-debug",
202 os.path.join(BASE_BUILD_PATH, "linux32-clang-debug"),
203-DDEQP_TARGET=no_modules', '-DCMAKE_BUILD_TYPE=Debug', '-DCMAKE_C_FLAGS=-m32', '-DCMAKE_CXX_FLAGS=
204 ['--', '-j', '2'],
205 './de-internal-tests'
207 Config(
208 "linux32-clang-release",
210 os.path.join(BASE_BUILD_PATH, "linux32-clang-release"),
211-DDEQP_TARGET=no_modules', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_C_FLAGS=-m32', '-DCMAKE_CXX_FLAG…
212 ['--', '-j', '2'],
213 './de-internal-tests'
215 Config(
216 "linux64-clang-debug",
218 os.path.join(BASE_BUILD_PATH, "linux64-clang-debug"),
219-DDEQP_TARGET=no_modules', '-DCMAKE_BUILD_TYPE=Debug', '-DCMAKE_C_FLAGS=-m64', '-DCMAKE_CXX_FLAGS=
220 ['--', '-j', '2'],
221 './de-internal-tests'
223 Config(
224 "linux64-clang-release",
226 os.path.join(BASE_BUILD_PATH, "linux64-clang-release"),
227-DDEQP_TARGET=no_modules', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_C_FLAGS=-m64', '-DCMAKE_CXX_FLAG…
228 ['--', '-j', '2'],
229 './de-internal-tests'
234 for config in CONFIGS:
235 if config.name == name:
236 return config
241 die("%s: [config]" % sys.argv[0])
243 config = findConfig(sys.argv[1]) variable
244 if config == None:
245 die("Config '%s' not found" % sys.argv[1])
248 runInternalTests(config)