| 691 | } |
| 692 | |
| 693 | static int DoUsage(const char* progname) { |
| 694 | Cout << "Usage: " << progname << " [options] [[+|-]test]...\n\n" |
| 695 | << "Options:\n" |
| 696 | << " -h, --help print this help message\n" |
| 697 | << " -l, --list print a list of available tests\n" |
| 698 | << " -A --list-verbose print a list of available subtests\n" |
| 699 | << " --print-before-test print each test name before running it\n" |
| 700 | << " --print-before-suite print each test suite name before running it\n" |
| 701 | << " --show-fails print a list of all failed tests at the end\n" |
| 702 | << " --dont-show-fails do not print a list of all failed tests at the end\n" |
| 703 | << " --print-times print wall clock duration of each test\n" |
| 704 | << " --fork-tests run each test in a separate process\n" |
| 705 | << " --trace-path path to the trace file to be generated\n" |
| 706 | << " --trace-path-append path to the trace file to be appended\n" |
| 707 | << " --filter-file path to the test filters ([+|-]test) file (" << Y_UNITTEST_TEST_FILTER_FILE_OPTION << ")\n"; |
| 708 | return 0; |
| 709 | } |
| 710 | |
| 711 | #if defined(_linux_) && defined(CLANG_COVERAGE) |
| 712 | extern "C" int __llvm_profile_write_file(void); |