1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889
|
[/
/ Copyright (c) 2003 Boost.Test contributors
/
/ Distributed under the Boost Software License, Version 1.0. (See accompanying
/ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
/]
[section:rt_param_reference Runtime parameters reference]
Following sections provide detailed specification for all __UTF__ runtime parameters. Each parameter specification includes:
* The full parameter name.
* Description of parameter semantic and default value.
* Acceptable argument values. The default value for the parameter is bold in the acceptable values list.
* Command line syntax. The format of all command line arguments is: `<prefix><name>[<separator><value>]`.
For example: `--param=<value>`.
`[]` around separator and value indicate that argument value is optional. For example: `-q[ <value>]`.
* Corresponding environment variable name.
[note All command line argument formats support parameter name guessing. What this means is that is if command like
format is like this:
[pre --long_parameter_name=<value>]
you can in fact use any unambiguous prefix of the parameter name to specify the argument. For example:
[pre --long_param=123]
or
[pre --long_p=123.]
If parameter name prefix you chose is ambiguous the framework lets you know which parameters match specified
prefix. For example, try
[pre --log=all]
]
[h4 Parameter value formats]
The __UTF__ runtime parameters take value of the following types: string, boolean, enumeration,
unsigned, long. Formats required for values of these types are following:
[h5 String, unsigned, long][#regular_param_value]
Values of these types are expected in the same format they are represented in C++.
[h5 Boolean][#boolean_param_value]
Values of these types are options with yes/no or true/false meaning. True values are represented
by case insensitive strings: "Y", "YES", "TRUE", "1". False values are represented by case
insensitive strings: "N", "NO", "FALSE", "0".
[h5 Enumeration][#enum_param_value]
Values of an enumeration type are expected as case sensitive strings representing
enumeration value names. Each parameter with an enumeration value lists all valid names in a
parameter`s description.
[/ ###############################################################################################]
[section:auto_dbg `auto_start_dbg`]
Option ['auto_start_dbg] specifies whether Boost.Test should attempt to attach a debugger when a fatal system
error occurs. At the moment this feature is only available on a few selected platforms: Win32 and *nix. There is a
default debugger configured for these platforms. You can manually configure a different debugger.
For more details on how to configure a debugger see the [headerref boost/test/debug.hpp Boost.Test debug API],
specifically the function [funcref boost::debug::set_debugger].
[h4 Acceptable values]
[link boolean_param_value Boolean] with default value [*no].
[h4 Command line syntax]
* `--auto_debug[=<boolean value>]`
* `-d [<boolean value>]`
[h4 Environment variable]
BOOST_TEST_AUTO_START_DBG
[endsect] [/auto_start_dbg]
[/ ###############################################################################################]
[section:build_info `build_info`]
Option ['build_info] instructs the __UTF__ to display the build information before testing begins.
This information includes:
* platform
* compiler
* STL implementation in use
* boost version
[h4 Acceptable values]
[link boolean_param_value Boolean] with default value [*no].
[h4 Command line syntax]
* `--build_info[=<boolean value>]`
* `-i [<boolean value>]`
[h4 Environment variable]
BOOST_TEST_BUILD_INFO
[endsect] [/ build_info]
[/ ###############################################################################################]
[section:catch_system `catch_system_errors`]
If option ['catch_system_errors] has value "no" the __UTF__ does not attempt to catch asynchronous system failures
(signals on *NIX platforms or structured exceptions on Windows). This can be used for test programs executed
within an IDE or to get a coredump for a stack analysis. See
[link ref_usage_recommendations usage recommendations] pages for more details.
[note If the __UTF__ detects that the current process is being run under a debugger, the `catch_system_errors` is
automatically disabled.]
[h4 Acceptable values]
[link boolean_param_value Boolean] with default value [*no].
[note The __UTF__ can be built with flag `BOOST_TEST_DEFAULTS_TO_CORE_DUMP` in which case default changes to [*yes]]
[h4 Command line syntax]
* `--catch_system_errors[=<boolean value>]`
* `-s [<boolean value>]`
[h4 Environment variable]
BOOST_TEST_CATCH_SYSTEM_ERRORS
[endsect] [/catch_system_errors]
[/ ###############################################################################################]
[section:color_output `color_output`]
The __UTF__ is able to produce color output on systems which support it. To disable this behavior, set this option to
`no`. By default the framework produces color output.
[h4 Acceptable values]
[link boolean_param_value Boolean] with default value [*yes].
[h4 Command line syntax]
* `--color_output[=<boolean value>]`
* `-x [<boolean value>]`
[h4 Environment variable]
BOOST_TEST_COLOR_OUTPUT
[endsect] [/color_output]
[/ ###############################################################################################]
[section:detect_fp_exceptions `detect_fp_exceptions`]
Option ['build_info] enables/disables hardware traps for the floating point exceptions (if supported on your platform).
[h4 Acceptable values]
[link boolean_param_value Boolean] with default value [*no].
[h4 Command line syntax]
* `--detect_fp_exceptions[=<boolean value>]`
[h4 Environment variable]
BOOST_TEST_DETECT_FP_EXCEPTIONS
[endsect] [/detect_fp_exceptions]
[/ ###############################################################################################]
[section:detect_memory_leaks `detect_memory_leaks`]
Parameter ['detect_memory_leaks] enables/disables memory leaks detection (if present in your build configuration).
This parameter has an optional long integer value. The default value is 1, which enables memory leak detection.
The value 0 disables memory leak detection. Any value N greater than 1 is treated as leak allocation number and tells the
framework to setup runtime breakpoint at Nth heap allocation. If value is omitted the default value is assumed.
[note The only platform which supports memory leak detection is Microsoft Visual Studio family of compilers in debug builds.]
[h4 Acceptable values]
* 0
* [*1] (default)
* [link regular_param_value long integer value] > 1
[h4 Command line syntax]
* `--detect_memory_leaks[=<alloc order number>]`
[h4 Environment variable]
BOOST_TEST_DETECT_MEMORY_LEAK
[endsect] [/detect_memory_leaks]
[/ ###############################################################################################]
[section:help `help`]
Parameter ['help] displays help on the framework's parameters. The parameter accepts an optional
argument value:
* if present, the argument value is interpreted as a parameter name. Name guessing
works as well (so for example `--help=rand` displays help on the parameter `random`).
* if the parameter name is unknown or ambiguous, an error is reported,
* if the argument value is absent, a summary of all framework's parameter is displayed.
[h4 Acceptable values]
An optional parameter name [link regular_param_value string].
[h4 Command line syntax]
* `--help[=<parameter name>]`
[endsect] [/help]
[/ ###############################################################################################]
[section:list_content `list_content`]
Lists the name of the [link ref_test_unit test units] contained in the [link ref_test_module test module] and exits (no test is run).
This command line parameter accepts an /optional/ string value indicating the format of the output.
The framework supports the following two formats:
# HRF (default), standing for /Human Readable Format/,
# DOT, standing for the [@http://www.graphviz.org/doc/info/lang.html Graphviz graph format]. This format may be automatically parsed or rendered.
[h4 HRF]
For HRF, the [link ref_test_tree test tree] (test suites and test cases) is presented in a tree like form with
each test unit name on a separate line with horizontal indentation in relation to the parent test suite.
In addition, test units which are enabled by default have an asterisk `*` next to the test unit name. For example, the following output:
testsuite1*
testcase1*
testcase2
testsuite2*
testcase3*
represents test module consisting of two test suites: `testsuite1` and `testsuite2`, and three test cases: `testcase1`,
`testcase2`, and `testcase3`. The formatting reflects the test-tree: the first two test cases belong to the first test suite
and last one belongs to the second. Out of three test cases only two are enabled by default:
`testcase1` and `testcase3`. `testcase2` is not enabled by default, but can be enabled by using the parameter __param_run_test__.
[h4 DOT]
DOT output generates a graph representing the module's [link ref_test_tree test tree] in a
[@http://www.graphviz.org/doc/info/lang.html dot format].
This output includes much more information about the test tree including labels, timeouts, expected failures, and dependencies.
The legend is as follow:
* the master test suite is represented as an ellipse
* a test unit (suite, case) is in a rounded rectangle
* test unit declaration location, [link boost_test.tests_organization.tests_grouping labels],
[link boost_test.testing_tools.expected_failures expected failures], [link boost_test.testing_tools.timeout timeouts] are appended,
* a green box indicates that the test unit that is enabled, otherwise its color is yellow,
* a plain black arrow goes from a test unit to each of its children, following the test tree (the arrow pointing to the child),
* a dashed red arrow indicates a runtime dependence on test units, the arrow pointing to the parent in the dependency graph.
[h4 Acceptable values]
[link enum_param_value Enumeration] names:
* [*HRF] (default)
* DOT
[h4 Command line syntax]
* `--list_content[=<format>]`
[h4 Environment variable]
BOOST_TEST_LIST_CONTENT
[h4 Example]
The following /deliberately/ complicated example illustrates the purpose of the `--list_content`
directive. The SVG generated from the produced Graphviz/dot file can be downloaded
[@images/boost_runtime_list_content.svg here].
[bt_example boost_runtime_list_content..`--list_content` illustration..run]
[$images/boost_runtime_list_content.png [width 70%]]
[endsect] [/list_content]
[/ ###############################################################################################]
[section:list_labels `list_labels`]
Lists the labels associated to the [link ref_test_unit test units] in the current
[link ref_test_module test module] and exits (no test is run).
[tip
See [link boost_test.tests_organization.tests_grouping this section] for more details on labels and logical grouping
of test cases.
]
[h4 Acceptable values]
[link boolean_param_value Boolean] with default value [*no].
[h4 Command line syntax]
* `--list_labels[=<boolean value>]`
[h4 Environment variable]
BOOST_TEST_LIST_LABELS
[h4 Example]
The previous example from [link boost_test.utf_reference.rt_param_reference.list_content `--list_content`] gives
```
> ./boost_runtime_list_content --list_labels
Available labels:
label1
label2
```
[endsect] [/list_labels]
[/ ###############################################################################################]
[section:log_format `log_format`]
Parameter ['log_format] allows to set the __UTF__ log format to one of the formats supplied by the framework.
To specify custom log format use the [link ref_log_formatter_api custom log formatting API].
The only acceptable values for this parameter are the names of the output formats supplied by the
framework. By default the framework uses human readable format (HRF) for the testing log. This format
is similar to a compiler error format. Alternatively you can specify XML or JUNIT as a log format which are
easier to process by testing automation tools.
[h4 Acceptable values]
[link enum_param_value Enumeration] names:
* [*HRF] (default)
* XML
* JUNIT
[h4 Command line syntax]
* `--log_format=<format>`
* `-f <format>`
[h4 Environment variable]
BOOST_TEST_LOG_FORMAT
[endsect] [/log_format]
[/ ###############################################################################################]
[section:log_level `log_level`]
Parameter ['log_level] allows to set the __UTF__ [link ref_log_level_explanations log level]. Log level defines
the verbosity of the testing log produced by a testing module. The verbosity ranges from a complete log, when all
assertions (both successful and failing) are reported and all notifications about test units start and finish
are included, to an empty log, when nothing is reported to a testing log stream.
Log level is set to one of the predefined levels which are organized hierarchically, where each level includes
all the messages on that level as well as all the messages from levels below. Levels are identified by string
names, which are listed next.
[h4 Acceptable values]
Following is the list of [link enum_param_value enumeration] log_level names ordered from higher to lower level.
Thus each level includes messages on that level as well as all the messages on levels defined below.
[table
[
[Value]
[Included messages]
]
[
[all (default for JUNIT)]
[All log messages including the passed assertions notification]
]
[
[success]
[The same as all]
]
[
[test_suite]
[Test units start/finish notifications]
]
[
[message]
[User generated messages (using __BOOST_TEST_MESSAGE__ tool)]
]
[
[warning]
[Messages describing failed assertion on `WARN` level (
[link boost_test.utf_reference.testing_tool_ref.assertion_boost_test_universal_macro `BOOST_TEST_WARN`]
/ `BOOST_WARN_...`
tools)]
]
[
[[*error] (default for HRF and XML)]
[Messages describing failed assertion on `CHECK` level (__BOOST_TEST__ / `BOOST_CHECK_...` tools)]
]
[
[cpp_exception]
[Messages reporting uncaught C++ exception]
]
[
[system_error]
[Messages reporting system originated non-fatal errors. For example, timeout or floating point exception.]
]
[
[fatal_error]
[Messages reporting user or system originated fatal errors. For example, memory access violation. Also
all the messages describing failed assertion on `REQUIRE` level (__BOOST_TEST_REQUIRE__ / `BOOST_REQUIRE_...` tools)]
]
[
[nothing]
[No messages are reported.]
]
]
[caution the JUNIT log format does not accept the log level to change: anything specified by `log_level` will be ignored
for the JUNIT format.]
[h4 Command line syntax]
* `--log_level=<level>`
* `-l <level>`
[h4 Environment variable]
BOOST_TEST_LOG_LEVEL
[endsect] [/log_level]
[/ ###############################################################################################]
[section:log_sink `log_sink`]
Parameter ['log_sink] allows to set the log sink - location where framework writes the testing log to,
thus it allows to easily redirect the testing log to file or standard streams. By default testing log
is directed to the standard output stream.
[h4 Acceptable values]
Case sensitive [link regular_param_value string]:
[table
[
[Value]
[Meaning]
]
[
[[*`stdout`] (default for HRF and XML)]
[Testing log is redirected into standard output stream]
]
[
[stderr]
[Testing log is redirected into standard error stream]
]
[
[File name (default for JUNIT)]
[Testing log is redirected into this file]
]
]
[note For JUnit and if not specified, the log file is generated after the name of the
[link boost_test.tests_organization.test_tree.master_test_suite master test suite].]
[h4 Command line syntax]
* `--log_sink=<stream or file name>`
* `-k <stream or file name>`
[h4 Environment variable]
BOOST_TEST_LOG_SINK
[endsect] [/log_sink]
[/ ###############################################################################################]
[section:logger `logger`]
The ['logger] parameter allows to fully specify (log format, level and sink) one or several loggers in one command.
If this parameter is specified, it has precedence over [link boost_test.utf_reference.rt_param_reference.log_format `log_format`],
[link boost_test.utf_reference.rt_param_reference.log_level `log_level`] and [link boost_test.utf_reference.rt_param_reference.log_sink `log_sink`].
The parameter is /repeatable/: it may appear several times on the command line. It is possible to indicate a set of loggers using the separator ':',
which is the only way for repeating a logger description through the environment variable.
The parameter is composed of three fields separated by a coma ',' and indicating respectively the log format, level and sink. The log
format is mandatory. The log level and sink are both optional: if omitted, the default for the specified format will
be used. The log level and sink accept the same value as their respective command line switch (see
[link boost_test.utf_reference.rt_param_reference.log_level `log_level`] and [link boost_test.utf_reference.rt_param_reference.log_sink `log_sink`]
for more information).
[h4 Acceptable values]
Case sensitive [link regular_param_value string]:
```
logger_set ::= (logger ':')* logger
logger ::= logger_format (',' log_level? (',' log_sink? )? )?
logger_format ::= 'HRF' | 'XML' | 'JUNIT'
log_level ::= 'all' | 'success' | 'test_suite' | 'message' | 'warning' | 'error' | 'cpp_exception' | 'system_error' | 'fatal_error' | 'nothing'
log_sink ::= 'stdout' | 'stderr' | filename
```
Examples:
* `--logger=HRF,all` will set the `all` log level for the `HRF` log format, and will use the default sink associated to `HRF` (`stdout`)
* `--logger=JUNIT,,somefile.xml:HRF,warning` will use the default log level associated to the `JUNIT` log format, and will use the file `somefile.xml`
as the log sink. It will also enable the `HRF` format with log level `warning`. The corresponding sink will be set to the `HRF` default (`stdout`).
[h4 Command line syntax]
* `--logger=<logger_set>`
[h4 Environment variable]
BOOST_TEST_LOGGER
[endsect] [/logger]
[/ ###############################################################################################]
[section:output_format `output_format`]
Parameter ['output_format] combines an effect of
[link boost_test.utf_reference.rt_param_reference.report_format `report_format`] and
[link boost_test.utf_reference.rt_param_reference.log_format `log_format`]
parameters. This parameter does not have
a default value. The only acceptable values are string names of output formats (see below).
[note This parameter has precedence over ['report_format] and ['log_format] on the command line. ]
[h4 Acceptable values]
[link enum_param_value Enumeration] name:
* HRF
* XML
['HRF] stands for human readable format, while ['XML] is dedicated to automated output processing
[h4 Command line syntax]
* `--output_format=<format>`
* `-o <format>`
[h4 Environment variable]
BOOST_TEST_OUTPUT_FORMAT
[endsect] [/output_format]
[/ ###############################################################################################]
[section:random `random`]
Parameter ['random] instructs the __UTF__ to execute the test cases in random order. This parameter
accepts an optional `unsigned integer` argument for the seed of the random generator:
* By default (value `0`), the test cases are executed in some specific order
defined by the order of test units in the test files, and the dependencies between test units.
* If the parameter is specified without the argument value, or with value `1`, the testing order is randomized based on current time.
* Alternatively, any positive value greater than `1` will be used as random seed for the run.
[tip in case `--random` is specified, the value of the seed is logged using __BOOST_TEST_MESSAGE__, so that it is possible to replay
exactly the same sequence of unit test in case of failure. For the seed to be visible in the logs,
make sure the proper [link boost_test.utf_reference.rt_param_reference.log_level `--log_level`] is set.
]
[h4 Acceptable values]
* [*0] (default): no randomization
* `1`: random seed based on the current time
* [link regular_param_value integer] `value > 1` : seed for the random number generator
[h4 Command line syntax]
* `--random=<seed>`
[h4 Environment variable]
BOOST_TEST_RANDOM
[endsect] [/random]
[/ ###############################################################################################]
[section:report_format `report_format`]
Parameter ['report_format] allows to set the __UTF__ report format to one of the formats supplied
by the framework. To specify a custom report format use unit_test_report API.
The only acceptable values for this parameter are the names of the output formats. By default the
framework uses human readable format (HRF) for results reporting. Alternatively you can specify
XML as report format. This format is easier to process by testing automation tools.
[h4 Acceptable values]
[link enum_param_value Enumeration] names:
* [*HRF] (default)
* XML
[h4 Command line syntax]
* `--report_format=<format>`
* `-m <format>`
[h4 Environment variable]
BOOST_TEST_REPORT_FORMAT
[endsect] [/report_format]
[/ ###############################################################################################]
[section:report_level `report_level`]
Parameter ['report_level] allows to set the verbosity level of the testing result report generated by
the __UTF__. Use value "no" to eliminate the results report completely. See the
[link ref_report_formats report formats] section for description of report formats on different levels.
[h4 Acceptable values]
[link enum_param_value Enumeration] report_level names:
* [*confirm] (default)
* no
* short
* detailed
[h4 Command line syntax]
* `--report_level=<format>`
* `-r <format>`
[h4 Environment variable]
BOOST_TEST_REPORT_LEVEL
[endsect] [/report_level]
[/ ###############################################################################################]
[section:report_memory_leaks_to `report_memory_leaks_to`]
Parameter ['report_memory_leaks_to] allows to specify a file where to report memory leaks to. The
parameter does not have default value. If it is not specified, memory leaks (if any) are reported
to the standard error stream.
[h4 Acceptable values]
Arbitrary file name [link regular_param_value string].
[h4 Command line syntax]
* `--report_memory_leaks_to=<file name>`
[h4 Environment variable]
BOOST_TEST_REPORT_MEMORY_LEAKS_TO
[endsect] [/report_sink]
[/ ###############################################################################################]
[section:report_sink `report_sink`]
Parameter ['report_sink] allows to set the result report sink - the location where the framework writes
the result report to, thus it allows to easily redirect the result report to a file or a standard stream.
By default the testing result report is directed to the standard error stream.
[h4 Acceptable values]
Case sensitive [link regular_param_value string]:
* [*`stderr`] (default)
* `stdout`
* arbitrary file name
[h4 Command line syntax]
* `--report_sink=<stream or file name>`
* `-e <stream or file name>`
[h4 Environment variable]
BOOST_TEST_REPORT_SINK
[endsect] [/report_sink]
[/ ###############################################################################################]
[section:result_code `result_code`]
The "no" argument value for the option [`result_code] instructs the __UTF__ to always return zero
result code. This could be used for test programs executed within IDE. By default this parameter has
value "yes". See the [link ref_usage_recommendations usage recommendations] section for more details.
[h4 Acceptable values]
[link boolean_param_value Boolean] with default value [*yes].
[h4 Command line syntax]
* `--result_code[=<boolean value>]`
* `-c [<boolean value>]`
[h4 Environment variable]
BOOST_TEST_RESULT_CODE
[endsect] [/result_code]
[/ ###############################################################################################]
[section:run_test `run_test`]
Parameter ['run_test] allows to filter which test units to execute during testing. The __UTF__ supports
both "selection filters", which allow to select which test units to enable from the set of available
test units, and "disabler filters", which allow to disable some test units. The __UTF__ also supports
enabling/disabling test units at compile time. These settings identify the default set of test units
to run. Parameter ['run_test] is used to change this default. This parameter is repeatable, so you can
specify more than one filter if necessary.
It is also possible to use the ':' for separating each filter
which can be used for filtering the tests with the environment variable `BOOST_TEST_RUN_FILTERS` (as it cannot be
repeated like `--run_test`).
More details about practical application of this parameter resides in [link boost_test.runtime_config.test_unit_filtering test unit
filtering] section.
[h4 Acceptable values]
[link regular_param_value String] value representing single filter or a set of filters separated by ':'.
The following grammar productions describe the syntax of filters:
```
filter_set ::= (filter ':')* filter
filter ::= relative_spec? test_set
relative_spec ::= '+' | '!'
test_set ::= label | path
label ::= '@' identifier
path ::= (suite '/')? pattern_list
pattern_list ::= (pattern ',')* pattern
suite ::= (pattern '/')* pattern
pattern ::= '*'? identifier '*'?
```
[caution the `pattern_list` above indicates test unit inside the same test suite given by `suite`. This means that the syntax
"`--run_test=suite1/suite2/A,B,C`" runs the test cases `A`, `B` and `C` that are *inside* `suite1/suite2`. In order to indicate
several test units that are not siblings, either repeat the `--run_test` or use `:` to separate the filters.]
Regarding the meaning of these values [link ref_command_line_control see here].
[h4 Command line syntax]
* `--run_test=<test unit filter spec>`
* `-t <test unit filter spec>`
[h4 Environment variable]
BOOST_TEST_RUN_FILTERS
[endsect] [/run_test]
[/ ###############################################################################################]
[section:save_pattern `save_pattern`]
Option ['save_pattern] facilitates switching mode of operation for testing output streams. See __output_test_stream_tool__
section for details on these tests.
This parameter serves no particular purpose within the framework itself. It can be used by test modules relying
on [classref boost::test_tools::output_test_stream] to implement testing logic. It has two modes of operation:
* save the pattern file (true).
* and match against a previously stored pattern file (false).
Default mode is 'match' (false).
You can use this parameter to switch between these modes, by passing the parameter value to the `output_test_stream` constructor.
The value of the command line parameter is available using call like this:
``
bool is_save_pattern_flag_set = boost::unit_test::runtime_config::save_pattern();
``
[h4 Acceptable values]
[link boolean_param_value Boolean] with default value [*no].
[h4 Command line syntax]
* `--save_pattern[=<boolean value>]`
[h4 Environment variable]
BOOST_TEST_SAVE_PATTERN
[endsect] [/save_pattern]
[/ ###############################################################################################]
[section:show_progress `show_progress`]
Option ['show_progress] instructs the __UTF__ to display test progress information. By default the
parameter test progress is not shown. More details [link boost_test.test_output.test_output_progress here].
[h4 Acceptable values]
[link boolean_param_value Boolean] with default value [*no].
[h4 Command line syntax]
* `--show_progress[=<boolean value>]`
* `-p [<boolean value>]`
[h4 Environment variable]
BOOST_TEST_SHOW_PROGRESS
[endsect]
[/ ###############################################################################################]
[section:use_alt_stack `use_alt_stack`]
Option ['use_alt_stack] instructs the __UTF__ to use alternative stack for signals processing, on
platforms where they are supported. More information about this feature is available
[@http://www.gnu.org/software/libc/manual/html_node/Signal-Stack.html here]. The feature is enabled
by default, but can be disabled using this parameter.
[/ TODO indicate which platforms are supported]
[/ TODO add a link to the execution monitor]
[note If this feature is not supported by your compiler, this command line option will be silently ignored.]
[note it is possible to remove the support of the alternative stack with the macro
[link boost_test.utf_reference.link_references.config_disable_alt_stack `BOOST_TEST_DISABLE_ALT_STACK`]]
[h4 Acceptable values]
[link boolean_param_value Boolean] with default value [*yes].
[h4 Command line syntax]
* `--use_alt_stack[=<boolean value>]`
[h4 Environment variable]
BOOST_TEST_USE_ALT_STACK
[endsect] [/use_alt_stack]
[/ ###############################################################################################]
[section:usage `usage`]
If specified option ['usage] instructs the __UTF__ to displays short usage message about the
framework's parameters.
[h4 Command line syntax]
* `-? [<boolean value>]`
[note The parameter name is not part of command line format, only short '-?'.]
[h4 Acceptable values]
[link boolean_param_value Boolean] with default value [*no].
[endsect] [/usage]
[/ ###############################################################################################]
[section:wait_for_debugger `wait_for_debugger`]
Option ['wait_for_debugger] instructs the __UTF__ to pause before starting test units execution,
so that you can attach a debugger to running test module. By default this parameters turned off.
[h4 Acceptable values]
[link boolean_param_value Boolean] with default value [*no].
[h4 Command line syntax]
* `--wait_for_debugger[=<boolean value>]`
* `-w [<boolean value>]`
[h4 Environment variable]
BOOST_TEST_WAIT_FOR_DEBUGGER
[endsect] [/wait_for_debugger]
[endsect] [/ runtime parameters reference]
|