OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/test/launcher/unit_test_launcher.h" | 5 #include "base/test/launcher/unit_test_launcher.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 " Sets the number of parallel test jobs to N.\n" | 66 " Sets the number of parallel test jobs to N.\n" |
67 "\n" | 67 "\n" |
68 " --single-process-tests\n" | 68 " --single-process-tests\n" |
69 " Runs the tests and the launcher in the same process. Useful\n" | 69 " Runs the tests and the launcher in the same process. Useful\n" |
70 " for debugging a specific test in a debugger.\n" | 70 " for debugging a specific test in a debugger.\n" |
71 "\n" | 71 "\n" |
72 " Other flags:\n" | 72 " Other flags:\n" |
73 " --test-launcher-filter-file=PATH\n" | 73 " --test-launcher-filter-file=PATH\n" |
74 " Like --gtest_filter, but read the test filter from PATH.\n" | 74 " Like --gtest_filter, but read the test filter from PATH.\n" |
75 " One pattern per line; lines starting with '-' are exclusions.\n" | 75 " One pattern per line; lines starting with '-' are exclusions.\n" |
| 76 " See also //testing/buildbot/filters/README.md file.\n" |
76 "\n" | 77 "\n" |
77 " --test-launcher-batch-limit=N\n" | 78 " --test-launcher-batch-limit=N\n" |
78 " Sets the limit of test batch to run in a single process to N.\n" | 79 " Sets the limit of test batch to run in a single process to N.\n" |
79 "\n" | 80 "\n" |
80 " --test-launcher-debug-launcher\n" | 81 " --test-launcher-debug-launcher\n" |
81 " Disables autodetection of debuggers and similar tools,\n" | 82 " Disables autodetection of debuggers and similar tools,\n" |
82 " making it possible to use them to debug launcher itself.\n" | 83 " making it possible to use them to debug launcher itself.\n" |
83 "\n" | 84 "\n" |
84 " --test-launcher-retry-limit=N\n" | 85 " --test-launcher-retry-limit=N\n" |
85 " Sets the limit of test retries on failures to N.\n" | 86 " Sets the limit of test retries on failures to N.\n" |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 TestLauncher* test_launcher, | 635 TestLauncher* test_launcher, |
635 const std::vector<std::string>& test_names) { | 636 const std::vector<std::string>& test_names) { |
636 ThreadTaskRunnerHandle::Get()->PostTask( | 637 ThreadTaskRunnerHandle::Get()->PostTask( |
637 FROM_HERE, | 638 FROM_HERE, |
638 Bind(&RunUnitTestsSerially, test_launcher, platform_delegate_, test_names, | 639 Bind(&RunUnitTestsSerially, test_launcher, platform_delegate_, test_names, |
639 use_job_objects_ ? TestLauncher::USE_JOB_OBJECTS : 0)); | 640 use_job_objects_ ? TestLauncher::USE_JOB_OBJECTS : 0)); |
640 return test_names.size(); | 641 return test_names.size(); |
641 } | 642 } |
642 | 643 |
643 } // namespace base | 644 } // namespace base |
OLD | NEW |