15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "base/test/test_switches.h" 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Time (in milliseconds) that the tests should wait before timing out. 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// TODO(phajdan.jr): Clean up the switch names. 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char switches::kTestLargeTimeout[] = "test-large-timeout"; 10424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles) 1158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Maximum number of tests to run in a single batch. 1258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char switches::kTestLauncherBatchLimit[] = "test-launcher-batch-limit"; 1358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles) 14f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Sets defaults desirable for the continuous integration bots, e.g. parallel 15f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// test execution and test retries. 16f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char switches::kTestLauncherBotMode[] = 17f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles) "test-launcher-bot-mode"; 18f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles) 195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Makes it possible to debug the launcher itself. By default the launcher 205d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// automatically switches to single process mode when it detects presence 215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// of debugger. 225d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char switches::kTestLauncherDebugLauncher[] = 235d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) "test-launcher-debug-launcher"; 245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Path to file containing test filter (one pattern per line). 265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char switches::kTestLauncherFilterFile[] = "test-launcher-filter-file"; 275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 2858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Number of parallel test launcher jobs. 2958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char switches::kTestLauncherJobs[] = "test-launcher-jobs"; 3058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles) 31424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// Path to test results file in our custom test launcher format. 32424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)const char switches::kTestLauncherOutput[] = "test-launcher-output"; 33424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles) 34f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Maximum number of times to retry a test after failure. 35f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char switches::kTestLauncherRetryLimit[] = "test-launcher-retry-limit"; 36f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles) 374e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Path to test results file with all the info from the test launcher. 384e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char switches::kTestLauncherSummaryOutput[] = 394e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles) "test-launcher-summary-output"; 404e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles) 411e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Flag controlling when test stdio is displayed as part of the launcher's 421e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// standard output. 431e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char switches::kTestLauncherPrintTestStdio[] = 441e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles) "test-launcher-print-test-stdio"; 451e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles) 460f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Index of the test shard to run, starting from 0 (first shard) to total shards 470f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// minus one (last shard). 480f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char switches::kTestLauncherShardIndex[] = 490f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles) "test-launcher-shard-index"; 500f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles) 510f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Total number of shards. Must be the same for all shards. 520f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char switches::kTestLauncherTotalShards[] = 530f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles) "test-launcher-total-shards"; 540f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles) 55424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// Time (in milliseconds) that the tests should wait before timing out. 5668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char switches::kTestLauncherTimeout[] = "test-launcher-timeout"; 57424c4d7b64af9d0d8fd9624f381f469654d5e3d2Torne (Richard Coles)// TODO(phajdan.jr): Clean up the switch names. 585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char switches::kTestTinyTimeout[] = "test-tiny-timeout"; 595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char switches::kUiTestActionTimeout[] = "ui-test-action-timeout"; 605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char switches::kUiTestActionMaxTimeout[] = "ui-test-action-max-timeout"; 61