()
| 267 | |
| 268 | |
| 269 | def _init(): |
| 270 | toolsetName = "__myDummyToolset__" |
| 271 | |
| 272 | t = BoostBuild.Tester(["toolset=%s" % toolsetName], pass_toolset=False, |
| 273 | use_test_config=False) |
| 274 | |
| 275 | # Prepare a dummy toolset so we do not get errors in case the default one |
| 276 | # is not found. |
| 277 | t.write(toolsetName + ".jam", """\ |
| 278 | import feature ; |
| 279 | feature.extend toolset : %s ; |
| 280 | rule init ( ) { } |
| 281 | """ % toolsetName ) |
| 282 | |
| 283 | # Python version of the same dummy toolset. |
| 284 | t.write(toolsetName + ".py", """\ |
| 285 | from b2.build import feature |
| 286 | feature.extend('toolset', ['%s']) |
| 287 | def init(): pass |
| 288 | """ % toolsetName ) |
| 289 | |
| 290 | t.write("jamroot.jam", """\ |
| 291 | import os ; |
| 292 | .argv = [ modules.peek : ARGV ] ; |
| 293 | local names = [ MATCH ^---var-name=(.*) : $(.argv) ] ; |
| 294 | for x in $(names) |
| 295 | { |
| 296 | value = [ os.environ $(x) ] ; |
| 297 | ECHO ***ENV*** $(x): '$(value)' *** ; |
| 298 | } |
| 299 | if ---version in $(.argv) |
| 300 | { |
| 301 | for x in JAMVERSION JAM_VERSION JAMUNAME JAM_TIMESTAMP_RESOLUTION OS |
| 302 | { |
| 303 | v = [ modules.peek : $(x) ] ; |
| 304 | ECHO ***VAR*** $(x): "$(v:J=%s)" *** ; |
| 305 | } |
| 306 | } |
| 307 | """ % varSeparator) |
| 308 | |
| 309 | return t |
| 310 | |
| 311 | |
| 312 | def _info(*values): |
no test coverage detected