(self, arguments=None, executable="bjam",
match=TestCmd.match_exact, boost_build_path=None,
translate_suffixes=True, pass_toolset=True, use_test_config=True,
ignore_toolset_requirements=True, workdir="", pass_d0=True,
**keywords)
| 207 | line option does. |
| 208 | """ |
| 209 | def __init__(self, arguments=None, executable="bjam", |
| 210 | match=TestCmd.match_exact, boost_build_path=None, |
| 211 | translate_suffixes=True, pass_toolset=True, use_test_config=True, |
| 212 | ignore_toolset_requirements=True, workdir="", pass_d0=True, |
| 213 | **keywords): |
| 214 | |
| 215 | assert arguments.__class__ is not str |
| 216 | self.original_workdir = os.getcwd() |
| 217 | if workdir and not os.path.isabs(workdir): |
| 218 | raise ("Parameter workdir <%s> must point to an absolute " |
| 219 | "directory: " % workdir) |
| 220 | |
| 221 | self.last_build_timestamp = 0 |
| 222 | self.translate_suffixes = translate_suffixes |
| 223 | self.use_test_config = use_test_config |
| 224 | |
| 225 | self.toolset = get_toolset() |
| 226 | self.pass_toolset = pass_toolset |
| 227 | self.ignore_toolset_requirements = ignore_toolset_requirements |
| 228 | |
| 229 | prepare_prefixes_and_suffixes(pass_toolset and self.toolset or "gcc") |
| 230 | |
| 231 | use_default_bjam = "--default-bjam" in sys.argv |
| 232 | |
| 233 | if not use_default_bjam: |
| 234 | jam_build_dir = "" |
| 235 | if os.name == "nt": |
| 236 | jam_build_dir = "bin.ntx86" |
| 237 | elif (os.name == "posix") and os.__dict__.has_key("uname"): |
| 238 | if os.uname()[0].lower().startswith("cygwin"): |
| 239 | jam_build_dir = "bin.cygwinx86" |
| 240 | if ("TMP" in os.environ and |
| 241 | os.environ["TMP"].find("~") != -1): |
| 242 | print("Setting $TMP to /tmp to get around problem " |
| 243 | "with short path names") |
| 244 | os.environ["TMP"] = "/tmp" |
| 245 | elif os.uname()[0] == "Linux": |
| 246 | cpu = os.uname()[4] |
| 247 | if re.match("i.86", cpu): |
| 248 | jam_build_dir = "bin.linuxx86" |
| 249 | else: |
| 250 | jam_build_dir = "bin.linux" + os.uname()[4] |
| 251 | elif os.uname()[0] == "SunOS": |
| 252 | jam_build_dir = "bin.solaris" |
| 253 | elif os.uname()[0] == "Darwin": |
| 254 | if os.uname()[4] == "i386": |
| 255 | jam_build_dir = "bin.macosxx86" |
| 256 | elif os.uname()[4] == "x86_64": |
| 257 | jam_build_dir = "bin.macosxx86_64" |
| 258 | else: |
| 259 | jam_build_dir = "bin.macosxppc" |
| 260 | elif os.uname()[0] == "AIX": |
| 261 | jam_build_dir = "bin.aix" |
| 262 | elif os.uname()[0] == "IRIX64": |
| 263 | jam_build_dir = "bin.irix" |
| 264 | elif os.uname()[0] == "FreeBSD": |
| 265 | jam_build_dir = "bin.freebsd" |
| 266 | elif os.uname()[0] == "OSF1": |
nothing calls this directly
no test coverage detected