1lit - LLVM Integrated Tester 2============================ 3 4.. program:: lit 5 6SYNOPSIS 7-------- 8 9:program:`lit` [*options*] [*tests*] 10 11DESCRIPTION 12----------- 13 14:program:`lit` is a portable tool for executing LLVM and Clang style test 15suites, summarizing their results, and providing indication of failures. 16:program:`lit` is designed to be a lightweight testing tool with as simple a 17user interface as possible. 18 19:program:`lit` should be run with one or more *tests* to run specified on the 20command line. Tests can be either individual test files or directories to 21search for tests (see :ref:`test-discovery`). 22 23Each specified test will be executed (potentially concurrently) and once all 24tests have been run :program:`lit` will print summary information on the number 25of tests which passed or failed (see :ref:`test-status-results`). The 26:program:`lit` program will execute with a non-zero exit code if any tests 27fail. 28 29By default :program:`lit` will use a succinct progress display and will only 30print summary information for test failures. See :ref:`output-options` for 31options controlling the :program:`lit` progress display and output. 32 33:program:`lit` also includes a number of options for controlling how tests are 34executed (specific features may depend on the particular test format). See 35:ref:`execution-options` for more information. 36 37Finally, :program:`lit` also supports additional options for only running a 38subset of the options specified on the command line, see 39:ref:`selection-options` for more information. 40 41:program:`lit` parses options from the environment variable ``LIT_OPTS`` after 42parsing options from the command line. ``LIT_OPTS`` is primarily useful for 43supplementing or overriding the command-line options supplied to :program:`lit` 44by ``check`` targets defined by a project's build system. 45 46:program:`lit` can also read options from response files which are specified as 47inputs using the ``@path/to/file.rsp`` syntax. Arguments read from a file must 48be one per line and are treated as if they were in the same place as the 49original file referencing argument on the command line. A response file can 50reference other response files. 51 52Users interested in the :program:`lit` architecture or designing a 53:program:`lit` testing implementation should see :ref:`lit-infrastructure`. 54 55GENERAL OPTIONS 56--------------- 57 58.. option:: -h, --help 59 60 Show the :program:`lit` help message and exit. 61 62.. option:: --version 63 64 Show :program:`lit`'s version number and exit. 65 66.. option:: -j N, --workers=N 67 68 Run ``N`` tests in parallel. By default, this is automatically chosen to 69 match the number of detected available CPUs. 70 71.. option:: --config-prefix=NAME 72 73 Search for :file:`{NAME}.cfg` and :file:`{NAME}.site.cfg` when searching for 74 test suites, instead of :file:`lit.cfg` and :file:`lit.site.cfg`. 75 76.. option:: -D NAME[=VALUE], --param NAME[=VALUE] 77 78 Add a user defined parameter ``NAME`` with the given ``VALUE`` (or the empty 79 string if not given). The meaning and use of these parameters is test suite 80 dependent. 81 82.. _output-options: 83 84OUTPUT OPTIONS 85-------------- 86 87.. option:: -q, --quiet 88 89 Suppress any output except for test failures. 90 91.. option:: -s, --succinct 92 93 Show less output, for example don't show information on tests that pass. 94 Also show a progress bar, unless ``--no-progress-bar`` is specified. 95 96.. option:: -v, --verbose 97 98 Show more information on test failures, for example the entire test output 99 instead of just the test result. 100 101 Each command is printed before it is executed. This can be valuable for 102 debugging test failures, as the last printed command is the one that failed. 103 Moreover, :program:`lit` inserts ``'RUN: at line N'`` before each 104 command pipeline in the output to help you locate the source line of 105 the failed command. 106 107.. option:: -vv, --echo-all-commands 108 109 Deprecated alias for -v. 110 111.. option:: -a, --show-all 112 113 Enable -v, but for all tests not just failed tests. 114 115.. option:: -o PATH, --output PATH 116 117 Write test results to the provided path. 118 119.. option:: --no-progress-bar 120 121 Do not use curses based progress bar. 122 123.. option:: --show-excluded 124 125 Show excluded tests. 126 127.. option:: --show-skipped 128 129 Show skipped tests. 130 131.. option:: --show-unsupported 132 133 Show unsupported tests. 134 135.. option:: --show-pass 136 137 Show passed tests. 138 139.. option:: --show-flakypass 140 141 Show passed with retry tests. 142 143.. option:: --show-xfail 144 145 Show expectedly failed tests. 146 147.. _execution-options: 148 149EXECUTION OPTIONS 150----------------- 151 152.. option:: --gtest-sharding 153 154 Enable sharding for GoogleTest format. 155 156.. option:: --no-gtest-sharding 157 158 Disable sharding for GoogleTest format. 159 160.. option:: --path=PATH 161 162 Specify an additional ``PATH`` to use when searching for executables in tests. 163 164.. option:: --vg 165 166 Run individual tests under valgrind (using the memcheck tool). The 167 ``--error-exitcode`` argument for valgrind is used so that valgrind failures 168 will cause the program to exit with a non-zero status. 169 170 When this option is enabled, :program:`lit` will also automatically provide a 171 "``valgrind``" feature that can be used to conditionally disable (or expect 172 failure in) certain tests. 173 174.. option:: --vg-leak 175 176 When :option:`--vg` is used, enable memory leak checks. When this option is 177 enabled, :program:`lit` will also automatically provide a "``vg_leak``" 178 feature that can be used to conditionally disable (or expect failure in) 179 certain tests. 180 181.. option:: --vg-arg=ARG 182 183 When :option:`--vg` is used, specify an additional argument to pass to 184 :program:`valgrind` itself. 185 186.. option:: --no-execute 187 188 Don't execute any tests (assume that they pass). 189 190.. option:: --xunit-xml-output XUNIT_XML_OUTPUT 191 192 Write XUnit-compatible XML test reports to the specified file. 193 194.. option:: --report-failures-only 195 196 Only include unresolved, timed out, failed and unexpectedly passed tests in the report. 197 198.. option:: --resultdb-output RESULTDB_OUTPUT 199 200 Write LuCI ResultDB compatible JSON to the specified file. 201 202.. option:: --time-trace-output TIME_TRACE_OUTPUT 203 204 Write Chrome tracing compatible JSON to the specified file 205 206.. option:: --timeout MAXINDIVIDUALTESTTIME 207 208 Maximum time to spend running a single test (in seconds). 0 means no time 209 limit. [Default: 0] 210 211.. option:: --timeout=N 212 213 Spend at most ``N`` seconds (approximately) running each individual test. 214 ``0`` means no time limit, and ``0`` is the default. Note that this is not an 215 alias for :option:`--max-time`; the two are different kinds of maximums. 216 217.. option:: --max-failures MAX_FAILURES 218 219 Stop execution after the given number of failures. 220 221.. option:: --allow-empty-runs 222 223 Do not fail the run if all tests are filtered out. 224 225.. option:: --per-test-coverage 226 227 Emit the necessary test coverage data, divided per test case (involves 228 setting a unique value to LLVM_PROFILE_FILE for each RUN). The coverage 229 data files will be emitted in the directory specified by ``config.test_exec_root``. 230 231.. option:: --ignore-fail 232 233 Exit with status zero even if some tests fail. 234 235.. option:: --skip-test-time-recording 236 237 Do not track elapsed wall time for each test. 238 239.. option:: --time-tests 240 241 Track the wall time individual tests take to execute and includes the results 242 in the summary output. This is useful for determining which tests in a test 243 suite take the most time to execute. 244 245.. _selection-options: 246 247SELECTION OPTIONS 248----------------- 249 250By default, `lit` will run failing tests first, then run tests in descending 251execution time order to optimize concurrency. The execution order can be 252changed using the :option:`--order` option. 253 254The timing data is stored in the `test_exec_root` in a file named 255`.lit_test_times.txt`. If this file does not exist, then `lit` checks the 256`test_source_root` for the file to optionally accelerate clean builds. 257 258.. option:: --max-tests=N 259 260 Run at most ``N`` tests and then terminate. 261 262.. option:: --max-time=N 263 264 Spend at most ``N`` seconds (approximately) running tests and then terminate. 265 Note that this is not an alias for :option:`--timeout`; the two are 266 different kinds of maximums. 267 268.. option:: --order={lexical,random,smart} 269 270 Define the order in which tests are run. The supported values are: 271 272 - lexical - tests will be run in lexical order according to the test file 273 path. This option is useful when predictable test order is desired. 274 275 - random - tests will be run in random order. 276 277 - smart - tests that failed previously will be run first, then the remaining 278 tests, all in descending execution time order. This is the default as it 279 optimizes concurrency. 280 281.. option:: --shuffle 282 283 Run the tests in a random order, not failing/slowest first. Deprecated, 284 use :option:`--order` instead. 285 286.. option:: -i, --incremental 287 288 Run failed tests first (DEPRECATED: use ``--order=smart``). 289 290.. option:: --filter=REGEXP 291 292 Run only those tests whose name matches the regular expression specified in 293 ``REGEXP``. The environment variable ``LIT_FILTER`` can be also used in place 294 of this option, which is especially useful in environments where the call 295 to ``lit`` is issued indirectly. 296 297.. option:: --filter-out=REGEXP 298 299 Filter out those tests whose name matches the regular expression specified in 300 ``REGEXP``. The environment variable ``LIT_FILTER_OUT`` can be also used in 301 place of this option, which is especially useful in environments where the 302 call to ``lit`` is issued indirectly. 303 304.. option:: --xfail=LIST 305 306 Treat those tests whose name is in the semicolon separated list ``LIST`` as 307 ``XFAIL``. This can be helpful when one does not want to modify the test 308 suite. The environment variable ``LIT_XFAIL`` can be also used in place of 309 this option, which is especially useful in environments where the call to 310 ``lit`` is issued indirectly. 311 312 A test name can specified as a file name relative to the test suite directory. 313 For example: 314 315 .. code-block:: none 316 317 LIT_XFAIL="affinity/kmp-hw-subset.c;offloading/memory_manager.cpp" 318 319 In this case, all of the following tests are treated as ``XFAIL``: 320 321 .. code-block:: none 322 323 libomp :: affinity/kmp-hw-subset.c 324 libomptarget :: nvptx64-nvidia-cuda :: offloading/memory_manager.cpp 325 libomptarget :: x86_64-pc-linux-gnu :: offloading/memory_manager.cpp 326 327 Alternatively, a test name can be specified as the full test name 328 reported in LIT output. For example, we can adjust the previous 329 example not to treat the ``nvptx64-nvidia-cuda`` version of 330 ``offloading/memory_manager.cpp`` as XFAIL: 331 332 .. code-block:: none 333 334 LIT_XFAIL="affinity/kmp-hw-subset.c;libomptarget :: x86_64-pc-linux-gnu :: offloading/memory_manager.cpp" 335 336.. option:: --xfail-not=LIST 337 338 Do not treat the specified tests as ``XFAIL``. The environment variable 339 ``LIT_XFAIL_NOT`` can also be used in place of this option. The syntax is the 340 same as for :option:`--xfail` and ``LIT_XFAIL``. :option:`--xfail-not` and 341 ``LIT_XFAIL_NOT`` always override all other ``XFAIL`` specifications, 342 including an :option:`--xfail` appearing later on the command line. The 343 primary purpose is to suppress an ``XPASS`` result without modifying a test 344 case that uses the ``XFAIL`` directive. 345 346.. option:: --num-shards=M 347 348 Divide the set of selected tests into ``M`` equal-sized subsets or 349 "shards", and run only one of them. Must be used with the 350 ``--run-shard=N`` option, which selects the shard to run. The environment 351 variable ``LIT_NUM_SHARDS`` can also be used in place of this 352 option. These two options provide a coarse mechanism for partitioning large 353 testsuites, for parallel execution on separate machines (say in a large 354 testing farm). 355 356.. option:: --run-shard=N 357 358 Select which shard to run, assuming the ``--num-shards=M`` option was 359 provided. The two options must be used together, and the value of ``N`` 360 must be in the range ``1..M``. The environment variable 361 ``LIT_RUN_SHARD`` can also be used in place of this option. 362 363ADDITIONAL OPTIONS 364------------------ 365 366.. option:: --debug 367 368 Run :program:`lit` in debug mode, for debugging configuration issues and 369 :program:`lit` itself. 370 371.. option:: --show-suites 372 373 List the discovered test suites and exit. 374 375.. option:: --show-tests 376 377 List all of the discovered tests and exit. 378 379.. option:: --show-used-features 380 381 Show all features used in the test suite (in ``XFAIL``, ``UNSUPPORTED`` and 382 ``REQUIRES``) and exit. 383 384EXIT STATUS 385----------- 386 387:program:`lit` will exit with an exit code of 1 if there are any FAIL or XPASS 388results. Otherwise, it will exit with the status 0. Other exit codes are used 389for non-test related failures (for example a user error or an internal program 390error). 391 392.. _test-discovery: 393 394TEST DISCOVERY 395-------------- 396 397The inputs passed to :program:`lit` can be either individual tests, or entire 398directories or hierarchies of tests to run. When :program:`lit` starts up, the 399first thing it does is convert the inputs into a complete list of tests to run 400as part of *test discovery*. 401 402In the :program:`lit` model, every test must exist inside some *test suite*. 403:program:`lit` resolves the inputs specified on the command line to test suites 404by searching upwards from the input path until it finds a :file:`lit.cfg` or 405:file:`lit.site.cfg` file. These files serve as both a marker of test suites 406and as configuration files which :program:`lit` loads in order to understand 407how to find and run the tests inside the test suite. 408 409Once :program:`lit` has mapped the inputs into test suites it traverses the 410list of inputs adding tests for individual files and recursively searching for 411tests in directories. 412 413This behavior makes it easy to specify a subset of tests to run, while still 414allowing the test suite configuration to control exactly how tests are 415interpreted. In addition, :program:`lit` always identifies tests by the test 416suite they are in, and their relative path inside the test suite. For 417appropriately configured projects, this allows :program:`lit` to provide 418convenient and flexible support for out-of-tree builds. 419 420.. _test-status-results: 421 422TEST STATUS RESULTS 423------------------- 424 425Each test ultimately produces one of the following eight results: 426 427**PASS** 428 429 The test succeeded. 430 431**FLAKYPASS** 432 433 The test succeeded after being re-run more than once. This only applies to 434 tests containing an ``ALLOW_RETRIES:`` annotation. 435 436**XFAIL** 437 438 The test failed, but that is expected. This is used for test formats which allow 439 specifying that a test does not currently work, but wish to leave it in the test 440 suite. 441 442**XPASS** 443 444 The test succeeded, but it was expected to fail. This is used for tests which 445 were specified as expected to fail, but are now succeeding (generally because 446 the feature they test was broken and has been fixed). 447 448**FAIL** 449 450 The test failed. 451 452**UNRESOLVED** 453 454 The test result could not be determined. For example, this occurs when the test 455 could not be run, the test itself is invalid, or the test was interrupted. 456 457**UNSUPPORTED** 458 459 The test is not supported in this environment. This is used by test formats 460 which can report unsupported tests. 461 462**TIMEOUT** 463 464 The test was run, but it timed out before it was able to complete. This is 465 considered a failure. 466 467Depending on the test format tests may produce additional information about 468their status (generally only for failures). See the :ref:`output-options` 469section for more information. 470 471.. _lit-infrastructure: 472 473LIT INFRASTRUCTURE 474------------------ 475 476This section describes the :program:`lit` testing architecture for users interested in 477creating a new :program:`lit` testing implementation, or extending an existing one. 478 479:program:`lit` proper is primarily an infrastructure for discovering and running 480arbitrary tests, and to expose a single convenient interface to these 481tests. :program:`lit` itself doesn't know how to run tests, rather this logic is 482defined by *test suites*. 483 484TEST SUITES 485~~~~~~~~~~~ 486 487As described in :ref:`test-discovery`, tests are always located inside a *test 488suite*. Test suites serve to define the format of the tests they contain, the 489logic for finding those tests, and any additional information to run the tests. 490 491:program:`lit` identifies test suites as directories containing ``lit.cfg`` or 492``lit.site.cfg`` files (see also :option:`--config-prefix`). Test suites are 493initially discovered by recursively searching up the directory hierarchy for 494all the input files passed on the command line. You can use 495:option:`--show-suites` to display the discovered test suites at startup. 496 497Once a test suite is discovered, its config file is loaded. Config files 498themselves are Python modules which will be executed. When the config file is 499executed, two important global variables are predefined: 500 501**lit_config** 502 503 The global **lit** configuration object (a *LitConfig* instance), which defines 504 the builtin test formats, global configuration parameters, and other helper 505 routines for implementing test configurations. 506 507**config** 508 509 This is the config object (a *TestingConfig* instance) for the test suite, 510 which the config file is expected to populate. The following variables are also 511 available on the *config* object, some of which must be set by the config and 512 others are optional or predefined: 513 514 **name** *[required]* The name of the test suite, for use in reports and 515 diagnostics. 516 517 **test_format** *[required]* The test format object which will be used to 518 discover and run tests in the test suite. Generally this will be a builtin test 519 format available from the *lit.formats* module. 520 521 **test_source_root** The filesystem path to the test suite root. For out-of-dir 522 builds this is the directory that will be scanned for tests. 523 524 **test_exec_root** For out-of-dir builds, the path to the test suite root inside 525 the object directory. This is where tests will be run and temporary output files 526 placed. 527 528 **environment** A dictionary representing the environment to use when executing 529 tests in the suite. 530 531 **standalone_tests** When true, mark a directory with tests expected to be run 532 standalone. Test discovery is disabled for that directory. *lit.suffixes* and 533 *lit.excludes* must be empty when this variable is true. 534 535 **suffixes** For **lit** test formats which scan directories for tests, this 536 variable is a list of suffixes to identify test files. Used by: *ShTest*. 537 538 **substitutions** For **lit** test formats which substitute variables into a test 539 script, the list of substitutions to perform. Used by: *ShTest*. 540 541 **unsupported** Mark an unsupported directory, all tests within it will be 542 reported as unsupported. Used by: *ShTest*. 543 544 **parent** The parent configuration, this is the config object for the directory 545 containing the test suite, or None. 546 547 **root** The root configuration. This is the top-most :program:`lit` configuration in 548 the project. 549 550 **pipefail** Normally a test using a shell pipe fails if any of the commands 551 on the pipe fail. If this is not desired, setting this variable to false 552 makes the test fail only if the last command in the pipe fails. 553 554 **available_features** A set of features that can be used in `XFAIL`, 555 `REQUIRES`, and `UNSUPPORTED` directives. 556 557TEST DISCOVERY 558~~~~~~~~~~~~~~ 559 560Once test suites are located, :program:`lit` recursively traverses the source 561directory (following *test_source_root*) looking for tests. When :program:`lit` 562enters a sub-directory, it first checks to see if a nested test suite is 563defined in that directory. If so, it loads that test suite recursively, 564otherwise it instantiates a local test config for the directory (see 565:ref:`local-configuration-files`). 566 567Tests are identified by the test suite they are contained within, and the 568relative path inside that suite. Note that the relative path may not refer to 569an actual file on disk; some test formats (such as *GoogleTest*) define 570"virtual tests" which have a path that contains both the path to the actual 571test file and a subpath to identify the virtual test. 572 573.. _local-configuration-files: 574 575LOCAL CONFIGURATION FILES 576~~~~~~~~~~~~~~~~~~~~~~~~~ 577 578When :program:`lit` loads a subdirectory in a test suite, it instantiates a 579local test configuration by cloning the configuration for the parent directory 580--- the root of this configuration chain will always be a test suite. Once the 581test configuration is cloned :program:`lit` checks for a *lit.local.cfg* file 582in the subdirectory. If present, this file will be loaded and can be used to 583specialize the configuration for each individual directory. This facility can 584be used to define subdirectories of optional tests, or to change other 585configuration parameters --- for example, to change the test format, or the 586suffixes which identify test files. 587 588SUBSTITUTIONS 589~~~~~~~~~~~~~ 590 591:program:`lit` allows patterns to be substituted inside RUN commands. It also 592provides the following base set of substitutions, which are defined in 593TestRunner.py: 594 595 ======================= ============== 596 Macro Substitution 597 ======================= ============== 598 %s source path (path to the file currently being run) 599 %S source dir (directory of the file currently being run) 600 %p same as %S 601 %{pathsep} path separator 602 %{fs-src-root} root component of file system paths pointing to the LLVM checkout 603 %{fs-tmp-root} root component of file system paths pointing to the test's temporary directory 604 %{fs-sep} file system path separator 605 %t temporary file name unique to the test 606 %basename_t The last path component of %t but without the ``.tmp`` extension (deprecated, use ``%{t:stem}`` instead) 607 %T parent directory of %t (not unique, deprecated, do not use) 608 %% % 609 %/s %s but ``\`` is replaced by ``/`` 610 %/S %S but ``\`` is replaced by ``/`` 611 %/p %p but ``\`` is replaced by ``/`` 612 %/t %t but ``\`` is replaced by ``/`` 613 %/T %T but ``\`` is replaced by ``/`` 614 %{s:basename} The last path component of %s 615 %{t:stem} The last path component of %t but without the ``.tmp`` extension (alias for %basename_t) 616 %{s:real} %s after expanding all symbolic links and substitute drives 617 %{S:real} %S after expanding all symbolic links and substitute drives 618 %{p:real} %p after expanding all symbolic links and substitute drives 619 %{t:real} %t after expanding all symbolic links and substitute drives 620 %{T:real} %T after expanding all symbolic links and substitute drives 621 %{/s:real} %/s after expanding all symbolic links and substitute drives 622 %{/S:real} %/S after expanding all symbolic links and substitute drives 623 %{/p:real} %/p after expanding all symbolic links and substitute drives 624 %{/t:real} %/t after expanding all symbolic links and substitute drives 625 %{/T:real} %/T after expanding all symbolic links and substitute drives 626 %{/s:regex_replacement} %/s but escaped for use in the replacement of a ``s@@@`` command in sed 627 %{/S:regex_replacement} %/S but escaped for use in the replacement of a ``s@@@`` command in sed 628 %{/p:regex_replacement} %/p but escaped for use in the replacement of a ``s@@@`` command in sed 629 %{/t:regex_replacement} %/t but escaped for use in the replacement of a ``s@@@`` command in sed 630 %{/T:regex_replacement} %/T but escaped for use in the replacement of a ``s@@@`` command in sed 631 %:s On Windows, %/s but a ``:`` is removed if its the second character. 632 Otherwise, %s but with a single leading ``/`` removed. 633 %:S On Windows, %/S but a ``:`` is removed if its the second character. 634 Otherwise, %S but with a single leading ``/`` removed. 635 %:p On Windows, %/p but a ``:`` is removed if its the second character. 636 Otherwise, %p but with a single leading ``/`` removed. 637 %:t On Windows, %/t but a ``:`` is removed if its the second character. 638 Otherwise, %t but with a single leading ``/`` removed. 639 %:T On Windows, %/T but a ``:`` is removed if its the second character. 640 Otherwise, %T but with a single leading ``/`` removed. 641 ======================= ============== 642 643Other substitutions are provided that are variations on this base set and 644further substitution patterns can be defined by each test module. See the 645modules :ref:`local-configuration-files`. 646 647More detailed information on substitutions can be found in the 648:doc:`../TestingGuide`. 649 650TEST RUN OUTPUT FORMAT 651~~~~~~~~~~~~~~~~~~~~~~ 652 653The :program:`lit` output for a test run conforms to the following schema, in 654both short and verbose modes (although in short mode no PASS lines will be 655shown). This schema has been chosen to be relatively easy to reliably parse by 656a machine (for example in buildbot log scraping), and for other tools to 657generate. 658 659Each test result is expected to appear on a line that matches: 660 661.. code-block:: none 662 663 <result code>: <test name> (<progress info>) 664 665where ``<result-code>`` is a standard test result such as PASS, FAIL, XFAIL, 666XPASS, UNRESOLVED, or UNSUPPORTED. The performance result codes of IMPROVED and 667REGRESSED are also allowed. 668 669The ``<test name>`` field can consist of an arbitrary string containing no 670newline. 671 672The ``<progress info>`` field can be used to report progress information such 673as (1/300) or can be empty, but even when empty the parentheses are required. 674 675Each test result may include additional (multiline) log information in the 676following format: 677 678.. code-block:: none 679 680 <log delineator> TEST '(<test name>)' <trailing delineator> 681 ... log message ... 682 <log delineator> 683 684where ``<test name>`` should be the name of a preceding reported test, ``<log 685delineator>`` is a string of "*" characters *at least* four characters long 686(the recommended length is 20), and ``<trailing delineator>`` is an arbitrary 687(unparsed) string. 688 689The following is an example of a test run output which consists of four tests A, 690B, C, and D, and a log message for the failing test C: 691 692.. code-block:: none 693 694 PASS: A (1 of 4) 695 PASS: B (2 of 4) 696 FAIL: C (3 of 4) 697 ******************** TEST 'C' FAILED ******************** 698 Test 'C' failed as a result of exit code 1. 699 ******************** 700 PASS: D (4 of 4) 701 702DEFAULT FEATURES 703~~~~~~~~~~~~~~~~~ 704 705For convenience :program:`lit` automatically adds **available_features** for 706some common use cases. 707 708:program:`lit` adds a feature based on the operating system being built on, for 709example: `system-darwin`, `system-linux`, etc. :program:`lit` also 710automatically adds a feature based on the current architecture, for example 711`target-x86_64`, `target-aarch64`, etc. 712 713When building with sanitizers enabled, :program:`lit` automatically adds the 714short name of the sanitizer, for example: `asan`, `tsan`, etc. 715 716To see the full list of features that can be added, see 717*llvm/utils/lit/lit/llvm/config.py*. 718 719LIT EXAMPLE TESTS 720~~~~~~~~~~~~~~~~~ 721 722The :program:`lit` distribution contains several example implementations of 723test suites in the *ExampleTests* directory. 724 725SEE ALSO 726-------- 727 728valgrind(1) 729