1*635a8641SAndroid Build Coastguard Worker // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2*635a8641SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 3*635a8641SAndroid Build Coastguard Worker // found in the LICENSE file. 4*635a8641SAndroid Build Coastguard Worker 5*635a8641SAndroid Build Coastguard Worker #include "base/test/test_switches.h" 6*635a8641SAndroid Build Coastguard Worker 7*635a8641SAndroid Build Coastguard Worker // Maximum number of tests to run in a single batch. 8*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherBatchLimit[] = "test-launcher-batch-limit"; 9*635a8641SAndroid Build Coastguard Worker 10*635a8641SAndroid Build Coastguard Worker // Sets defaults desirable for the continuous integration bots, e.g. parallel 11*635a8641SAndroid Build Coastguard Worker // test execution and test retries. 12*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherBotMode[] = 13*635a8641SAndroid Build Coastguard Worker "test-launcher-bot-mode"; 14*635a8641SAndroid Build Coastguard Worker 15*635a8641SAndroid Build Coastguard Worker // Makes it possible to debug the launcher itself. By default the launcher 16*635a8641SAndroid Build Coastguard Worker // automatically switches to single process mode when it detects presence 17*635a8641SAndroid Build Coastguard Worker // of debugger. 18*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherDebugLauncher[] = 19*635a8641SAndroid Build Coastguard Worker "test-launcher-debug-launcher"; 20*635a8641SAndroid Build Coastguard Worker 21*635a8641SAndroid Build Coastguard Worker // Force running all requested tests and retries even if too many test errors 22*635a8641SAndroid Build Coastguard Worker // occur. 23*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherForceRunBrokenTests[] = 24*635a8641SAndroid Build Coastguard Worker "test-launcher-force-run-broken-tests"; 25*635a8641SAndroid Build Coastguard Worker 26*635a8641SAndroid Build Coastguard Worker // Path to file containing test filter (one pattern per line). 27*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherFilterFile[] = "test-launcher-filter-file"; 28*635a8641SAndroid Build Coastguard Worker 29*635a8641SAndroid Build Coastguard Worker // Whether the test launcher should launch in "interactive mode", which disables 30*635a8641SAndroid Build Coastguard Worker // timeouts (and may have other effects for specific test types). 31*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherInteractive[] = "test-launcher-interactive"; 32*635a8641SAndroid Build Coastguard Worker 33*635a8641SAndroid Build Coastguard Worker // Number of parallel test launcher jobs. 34*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherJobs[] = "test-launcher-jobs"; 35*635a8641SAndroid Build Coastguard Worker 36*635a8641SAndroid Build Coastguard Worker // Path to list of compiled in tests. 37*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherListTests[] = "test-launcher-list-tests"; 38*635a8641SAndroid Build Coastguard Worker 39*635a8641SAndroid Build Coastguard Worker // Path to test results file in our custom test launcher format. 40*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherOutput[] = "test-launcher-output"; 41*635a8641SAndroid Build Coastguard Worker 42*635a8641SAndroid Build Coastguard Worker // Maximum number of times to retry a test after failure. 43*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherRetryLimit[] = "test-launcher-retry-limit"; 44*635a8641SAndroid Build Coastguard Worker 45*635a8641SAndroid Build Coastguard Worker // Path to test results file with all the info from the test launcher. 46*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherSummaryOutput[] = 47*635a8641SAndroid Build Coastguard Worker "test-launcher-summary-output"; 48*635a8641SAndroid Build Coastguard Worker 49*635a8641SAndroid Build Coastguard Worker // Flag controlling when test stdio is displayed as part of the launcher's 50*635a8641SAndroid Build Coastguard Worker // standard output. 51*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherPrintTestStdio[] = 52*635a8641SAndroid Build Coastguard Worker "test-launcher-print-test-stdio"; 53*635a8641SAndroid Build Coastguard Worker 54*635a8641SAndroid Build Coastguard Worker // Print a writable path and exit (for internal use). 55*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherPrintWritablePath[] = 56*635a8641SAndroid Build Coastguard Worker "test-launcher-print-writable-path"; 57*635a8641SAndroid Build Coastguard Worker 58*635a8641SAndroid Build Coastguard Worker // Index of the test shard to run, starting from 0 (first shard) to total shards 59*635a8641SAndroid Build Coastguard Worker // minus one (last shard). 60*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherShardIndex[] = 61*635a8641SAndroid Build Coastguard Worker "test-launcher-shard-index"; 62*635a8641SAndroid Build Coastguard Worker 63*635a8641SAndroid Build Coastguard Worker // Limit of test part results in the output. Default limit is 10. 64*635a8641SAndroid Build Coastguard Worker // Negative value will completely disable limit. 65*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherTestPartResultsLimit[] = 66*635a8641SAndroid Build Coastguard Worker "test-launcher-test-part-results-limit"; 67*635a8641SAndroid Build Coastguard Worker 68*635a8641SAndroid Build Coastguard Worker // Total number of shards. Must be the same for all shards. 69*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherTotalShards[] = 70*635a8641SAndroid Build Coastguard Worker "test-launcher-total-shards"; 71*635a8641SAndroid Build Coastguard Worker 72*635a8641SAndroid Build Coastguard Worker // Time (in milliseconds) that the tests should wait before timing out. 73*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherTimeout[] = "test-launcher-timeout"; 74*635a8641SAndroid Build Coastguard Worker 75*635a8641SAndroid Build Coastguard Worker // Path where to save a trace of test launcher's execution. 76*635a8641SAndroid Build Coastguard Worker const char switches::kTestLauncherTrace[] = "test-launcher-trace"; 77*635a8641SAndroid Build Coastguard Worker 78*635a8641SAndroid Build Coastguard Worker // TODO(phajdan.jr): Clean up the switch names. 79*635a8641SAndroid Build Coastguard Worker const char switches::kTestTinyTimeout[] = "test-tiny-timeout"; 80*635a8641SAndroid Build Coastguard Worker const char switches::kUiTestActionTimeout[] = "ui-test-action-timeout"; 81*635a8641SAndroid Build Coastguard Worker const char switches::kUiTestActionMaxTimeout[] = "ui-test-action-max-timeout"; 82