Main tester class for Boost Build. Optional arguments: `arguments` - Arguments passed to the run executable. `executable` - Name of the executable to invoke. `match` - Function to use for compating actual and
| 192 | |
| 193 | |
| 194 | class Tester(TestCmd.TestCmd): |
| 195 | """Main tester class for Boost Build. |
| 196 | |
| 197 | Optional arguments: |
| 198 | |
| 199 | `arguments` - Arguments passed to the run executable. |
| 200 | `executable` - Name of the executable to invoke. |
| 201 | `match` - Function to use for compating actual and |
| 202 | expected file contents. |
| 203 | `boost_build_path` - Boost build path to be passed to the run |
| 204 | executable. |
| 205 | `translate_suffixes` - Whether to update suffixes on the the file |
| 206 | names passed from the test script so they |
| 207 | match those actually created by the current |
| 208 | toolset. For example, static library files |
| 209 | are specified by using the .lib suffix but |
| 210 | when the "gcc" toolset is used it actually |
| 211 | creates them using the .a suffix. |
| 212 | `pass_toolset` - Whether the test system should pass the |
| 213 | specified toolset to the run executable. |
| 214 | `use_test_config` - Whether the test system should tell the run |
| 215 | executable to read in the test_config.jam |
| 216 | configuration file. |
| 217 | `ignore_toolset_requirements` - Whether the test system should tell the run |
| 218 | executable to ignore toolset requirements. |
| 219 | `workdir` - Absolute directory where the test will be |
| 220 | run from. |
| 221 | `pass_d0` - If set, when tests are not explicitly run |
| 222 | in verbose mode, they are run as silent |
| 223 | (-d0 & --quiet Boost Jam options). |
| 224 | |
| 225 | Optional arguments inherited from the base class: |
| 226 | |
| 227 | `description` - Test description string displayed in case |
| 228 | of a failed test. |
| 229 | `subdir` - List of subdirectories to automatically |
| 230 | create under the working directory. Each |
| 231 | subdirectory needs to be specified |
| 232 | separately, parent coming before its child. |
| 233 | `verbose` - Flag that may be used to enable more |
| 234 | verbose test system output. Note that it |
| 235 | does not also enable more verbose build |
| 236 | system output like the --verbose command |
| 237 | line option does. |
| 238 | """ |
| 239 | def __init__(self, arguments=None, executable=None, |
| 240 | match=TestCmd.match_exact, boost_build_path=None, |
| 241 | translate_suffixes=True, pass_toolset=True, use_test_config=True, |
| 242 | ignore_toolset_requirements=False, workdir="", pass_d0=False, |
| 243 | **keywords): |
| 244 | |
| 245 | if not executable: |
| 246 | executable = os.getenv('B2') |
| 247 | if not executable: |
| 248 | executable = 'b2' |
| 249 | |
| 250 | assert arguments.__class__ is not str |
| 251 | self.original_workdir = os.path.dirname(__file__) |
nothing calls this directly
no outgoing calls
no test coverage detected