Home | History | Annotate | Download | only in test
      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 // Time (in milliseconds) that the tests should wait before timing out.
      8 // TODO(phajdan.jr): Clean up the switch names.
      9 const char switches::kTestLargeTimeout[] = "test-large-timeout";
     10 
     11 // Maximum number of tests to run in a single batch.
     12 const char switches::kTestLauncherBatchLimit[] = "test-launcher-batch-limit";
     13 
     14 // Sets defaults desirable for the continuous integration bots, e.g. parallel
     15 // test execution and test retries.
     16 const char switches::kTestLauncherBotMode[] =
     17     "test-launcher-bot-mode";
     18 
     19 // Makes it possible to debug the launcher itself. By default the launcher
     20 // automatically switches to single process mode when it detects presence
     21 // of debugger.
     22 const char switches::kTestLauncherDebugLauncher[] =
     23     "test-launcher-debug-launcher";
     24 
     25 // Path to file containing test filter (one pattern per line).
     26 const char switches::kTestLauncherFilterFile[] = "test-launcher-filter-file";
     27 
     28 // Number of parallel test launcher jobs.
     29 const char switches::kTestLauncherJobs[] = "test-launcher-jobs";
     30 
     31 // Path to test results file in our custom test launcher format.
     32 const char switches::kTestLauncherOutput[] = "test-launcher-output";
     33 
     34 // Maximum number of times to retry a test after failure.
     35 const char switches::kTestLauncherRetryLimit[] = "test-launcher-retry-limit";
     36 
     37 // Path to test results file with all the info from the test launcher.
     38 const char switches::kTestLauncherSummaryOutput[] =
     39     "test-launcher-summary-output";
     40 
     41 // Flag controlling when test stdio is displayed as part of the launcher's
     42 // standard output.
     43 const char switches::kTestLauncherPrintTestStdio[] =
     44     "test-launcher-print-test-stdio";
     45 
     46 // Index of the test shard to run, starting from 0 (first shard) to total shards
     47 // minus one (last shard).
     48 const char switches::kTestLauncherShardIndex[] =
     49     "test-launcher-shard-index";
     50 
     51 // Total number of shards. Must be the same for all shards.
     52 const char switches::kTestLauncherTotalShards[] =
     53     "test-launcher-total-shards";
     54 
     55 // Time (in milliseconds) that the tests should wait before timing out.
     56 const char switches::kTestLauncherTimeout[] = "test-launcher-timeout";
     57 // TODO(phajdan.jr): Clean up the switch names.
     58 const char switches::kTestTinyTimeout[] = "test-tiny-timeout";
     59 const char switches::kUiTestActionTimeout[] = "ui-test-action-timeout";
     60 const char switches::kUiTestActionMaxTimeout[] = "ui-test-action-max-timeout";
     61