blob: beeb6ee0c483d98de92ecefb74081091dd11451d [file] [log] [blame]
caryclark17f0b6d2014-07-22 10:15:34 -07001/*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "SkCommonFlags.h"
9#include "SkThreadPool.h"
10
11DEFINE_string(config, "565 8888 pdf gpu nonrendering",
12 "Options: 565 8888 pdf gpu nonrendering msaa4 msaa16 nvprmsaa4 nvprmsaa16 "
13 "gpunull gpudebug angle mesa");
14
15DEFINE_bool(cpu, true, "master switch for running CPU-bound work.");
16
17DEFINE_bool(dryRun, false,
18 "just print the tests that would be run, without actually running them.");
19
20DEFINE_bool(gpu, true, "master switch for running GPU-bound work.");
21
22DEFINE_string(gpuAPI, "", "Force use of specific gpu API. Using \"gl\" "
23 "forces OpenGL API. Using \"gles\" forces OpenGL ES API. "
24 "Defaults to empty string, which selects the API native to the "
25 "system.");
26
27DEFINE_bool2(leaks, l, false, "show leaked ref cnt'd objects.");
28
29DEFINE_string2(match, m, NULL,
30 "[~][^]substring[$] [...] of GM name to run.\n"
31 "Multiple matches may be separated by spaces.\n"
32 "~ causes a matching GM to always be skipped\n"
33 "^ requires the start of the GM to match\n"
34 "$ requires the end of the GM to match\n"
35 "^ and $ requires an exact match\n"
36 "If a GM does not match any list entry,\n"
37 "it is skipped unless some list entry starts with ~");
38
39DEFINE_bool2(quiet, q, false, "if true, don't print status updates.");
40
bsalomon2354f842014-07-28 13:48:36 -070041DEFINE_bool(resetGpuContext, true, "Reset the GrContext before running each test.");
42DEFINE_bool(abandonGpuContext, false, "Abandon the GrContext after running each test. "
43 "Implies --resetGpuContext.");
caryclark17f0b6d2014-07-22 10:15:34 -070044
45DEFINE_bool2(single, z, false, "run tests on a single thread internally.");
46
mtklein92007582014-08-01 07:46:52 -070047DEFINE_string(skps, "", "Directory to read skps from.");
48
caryclark17f0b6d2014-07-22 10:15:34 -070049DEFINE_int32(threads, SkThreadPool::kThreadPerCore,
50 "run threadsafe tests on a threadpool with this many threads.");
51
52DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver.");
53
54DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose.");