thestig@chromium.org | abe5cd3 | 2012-02-08 15:33:56 +0900 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
sergeyu@chromium.org | 0f6abbc | 2010-10-06 04:03:05 +0900 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "base/test/test_switches.h" |
| 6 | |
phajdan.jr@chromium.org | 7a7e0ee | 2013-09-05 09:14:36 +0900 | [diff] [blame] | 7 | // Maximum number of tests to run in a single batch. |
| 8 | const char switches::kTestLauncherBatchLimit[] = "test-launcher-batch-limit"; |
| 9 | |
phajdan.jr@chromium.org | 7e60433 | 2013-11-27 09:25:58 +0900 | [diff] [blame] | 10 | // Sets defaults desirable for the continuous integration bots, e.g. parallel |
| 11 | // test execution and test retries. |
| 12 | const char switches::kTestLauncherBotMode[] = |
| 13 | "test-launcher-bot-mode"; |
phajdan.jr@chromium.org | d2e371a | 2013-11-08 04:53:34 +0900 | [diff] [blame] | 14 | |
phajdan.jr@chromium.org | 950a15f | 2013-12-12 06:53:34 +0900 | [diff] [blame] | 15 | // Makes it possible to debug the launcher itself. By default the launcher |
| 16 | // automatically switches to single process mode when it detects presence |
| 17 | // of debugger. |
| 18 | const char switches::kTestLauncherDebugLauncher[] = |
| 19 | "test-launcher-debug-launcher"; |
| 20 | |
phajdan.jr@chromium.org | 8a5060c | 2013-12-19 18:59:56 +0900 | [diff] [blame] | 21 | // Path to file containing test filter (one pattern per line). |
| 22 | const char switches::kTestLauncherFilterFile[] = "test-launcher-filter-file"; |
| 23 | |
phajdan.jr@chromium.org | 7a7e0ee | 2013-09-05 09:14:36 +0900 | [diff] [blame] | 24 | // Number of parallel test launcher jobs. |
| 25 | const char switches::kTestLauncherJobs[] = "test-launcher-jobs"; |
| 26 | |
phajdan.jr@chromium.org | 9e2a9f2 | 2013-08-24 06:09:08 +0900 | [diff] [blame] | 27 | // Path to test results file in our custom test launcher format. |
| 28 | const char switches::kTestLauncherOutput[] = "test-launcher-output"; |
| 29 | |
phajdan.jr@chromium.org | e917c88 | 2013-11-14 10:07:29 +0900 | [diff] [blame] | 30 | // Maximum number of times to retry a test after failure. |
| 31 | const char switches::kTestLauncherRetryLimit[] = "test-launcher-retry-limit"; |
| 32 | |
phajdan.jr@chromium.org | fe216b5 | 2013-10-15 02:46:21 +0900 | [diff] [blame] | 33 | // Path to test results file with all the info from the test launcher. |
| 34 | const char switches::kTestLauncherSummaryOutput[] = |
| 35 | "test-launcher-summary-output"; |
| 36 | |
phajdan.jr@chromium.org | 8ac222e | 2013-10-30 08:01:00 +0900 | [diff] [blame] | 37 | // Flag controlling when test stdio is displayed as part of the launcher's |
| 38 | // standard output. |
| 39 | const char switches::kTestLauncherPrintTestStdio[] = |
| 40 | "test-launcher-print-test-stdio"; |
| 41 | |
phajdan.jr@chromium.org | 9b2aa81 | 2013-11-05 10:06:08 +0900 | [diff] [blame] | 42 | // Index of the test shard to run, starting from 0 (first shard) to total shards |
| 43 | // minus one (last shard). |
| 44 | const char switches::kTestLauncherShardIndex[] = |
| 45 | "test-launcher-shard-index"; |
| 46 | |
| 47 | // Total number of shards. Must be the same for all shards. |
| 48 | const char switches::kTestLauncherTotalShards[] = |
| 49 | "test-launcher-total-shards"; |
| 50 | |
phajdan.jr@chromium.org | 9e2a9f2 | 2013-08-24 06:09:08 +0900 | [diff] [blame] | 51 | // Time (in milliseconds) that the tests should wait before timing out. |
phajdan.jr@chromium.org | 9e7b5d3 | 2013-09-25 02:00:14 +0900 | [diff] [blame] | 52 | const char switches::kTestLauncherTimeout[] = "test-launcher-timeout"; |
phajdan.jr@chromium.org | 9e2a9f2 | 2013-08-24 06:09:08 +0900 | [diff] [blame] | 53 | // TODO(phajdan.jr): Clean up the switch names. |
scottbyer@chromium.org | 189aa71 | 2012-07-26 05:36:33 +0900 | [diff] [blame] | 54 | const char switches::kTestTinyTimeout[] = "test-tiny-timeout"; |
| 55 | const char switches::kUiTestActionTimeout[] = "ui-test-action-timeout"; |
| 56 | const char switches::kUiTestActionMaxTimeout[] = "ui-test-action-max-timeout"; |