• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
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 
7 // Maximum number of tests to run in a single batch.
8 const char switches::kTestLauncherBatchLimit[] = "test-launcher-batch-limit";
9 
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";
14 
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 
21 // Force running all requested tests and retries even if too many test errors
22 // occur.
23 const char switches::kTestLauncherForceRunBrokenTests[] =
24     "test-launcher-force-run-broken-tests";
25 
26 // Path to file containing test filter (one pattern per line).
27 const char switches::kTestLauncherFilterFile[] = "test-launcher-filter-file";
28 
29 // Whether the test launcher should launch in "interactive mode", which disables
30 // timeouts (and may have other effects for specific test types).
31 const char switches::kTestLauncherInteractive[] = "test-launcher-interactive";
32 
33 // Number of parallel test launcher jobs.
34 const char switches::kTestLauncherJobs[] = "test-launcher-jobs";
35 
36 // Path to list of compiled in tests.
37 const char switches::kTestLauncherListTests[] = "test-launcher-list-tests";
38 
39 // Path to test results file in our custom test launcher format.
40 const char switches::kTestLauncherOutput[] = "test-launcher-output";
41 
42 // Maximum number of times to retry a test after failure.
43 const char switches::kTestLauncherRetryLimit[] = "test-launcher-retry-limit";
44 
45 // Path to test results file with all the info from the test launcher.
46 const char switches::kTestLauncherSummaryOutput[] =
47     "test-launcher-summary-output";
48 
49 // Flag controlling when test stdio is displayed as part of the launcher's
50 // standard output.
51 const char switches::kTestLauncherPrintTestStdio[] =
52     "test-launcher-print-test-stdio";
53 
54 // Print a writable path and exit (for internal use).
55 const char switches::kTestLauncherPrintWritablePath[] =
56     "test-launcher-print-writable-path";
57 
58 // Index of the test shard to run, starting from 0 (first shard) to total shards
59 // minus one (last shard).
60 const char switches::kTestLauncherShardIndex[] =
61     "test-launcher-shard-index";
62 
63 // Limit of test part results in the output. Default limit is 10.
64 // Negative value will completely disable limit.
65 const char switches::kTestLauncherTestPartResultsLimit[] =
66     "test-launcher-test-part-results-limit";
67 
68 // Total number of shards. Must be the same for all shards.
69 const char switches::kTestLauncherTotalShards[] =
70     "test-launcher-total-shards";
71 
72 // Time (in milliseconds) that the tests should wait before timing out.
73 const char switches::kTestLauncherTimeout[] = "test-launcher-timeout";
74 
75 // Path where to save a trace of test launcher's execution.
76 const char switches::kTestLauncherTrace[] = "test-launcher-trace";
77 
78 // TODO(phajdan.jr): Clean up the switch names.
79 const char switches::kTestTinyTimeout[] = "test-tiny-timeout";
80 const char switches::kUiTestActionTimeout[] = "ui-test-action-timeout";
81 const char switches::kUiTestActionMaxTimeout[] = "ui-test-action-max-timeout";
82