MCPcopy Create free account
hub / github.com/boostorg/build / _getJamVersionInfo

Function _getJamVersionInfo

v2/test/collect_debug_info.py:238–266  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

236
237
238def _getJamVersionInfo(t):
239 result = []
240
241 # JAM version variables.
242 t.run_build_system(["---version"])
243 for m in re.finditer(r"^\*\*\*VAR\*\*\* ([^:]*): (.*)\*\*\*$", t.stdout(),
244 re.MULTILINE):
245 name = m.group(1)
246 value = m.group(2)
247 if not value:
248 value = []
249 elif value[-1] == ' ':
250 value = value[:-1].split(varSeparator)
251 else:
252 value = "!!!INVALID!!! - '%s'" % value
253 result.append("%s = %s" % (name, value))
254 result.append("")
255
256 # bjam -v output.
257 t.run_build_system(["-v"])
258 result.append("--- output for 'bjam -v' ---")
259 result.append(t.stdout())
260
261 # bjam --version output.
262 t.run_build_system(["--version"], status=1)
263 result.append("--- output for 'bjam --version' ---")
264 result.append(t.stdout())
265
266 return result
267
268
269def _init():

Callers 1

collectDebugInfoFunction · 0.85

Calls 3

run_build_systemMethod · 0.80
stdoutMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected