2 * Copyright 2014 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #include "SkCommonFlags.h"
9 #include "SkThreadPool.h"
11 DEFINE_string(config, "565 8888 pdf gpu nonrendering angle",
12 "Options: 565 8888 pdf gpu nonrendering msaa4 msaa16 nvprmsaa4 nvprmsaa16 "
13 "gpunull gpudebug angle mesa");
15 DEFINE_bool(cpu, true, "master switch for running CPU-bound work.");
17 DEFINE_bool(dryRun, false,
18 "just print the tests that would be run, without actually running them.");
20 DEFINE_bool(gpu, true, "master switch for running GPU-bound work.");
22 DEFINE_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 "
27 DEFINE_bool2(leaks, l, false, "show leaked ref cnt'd objects.");
29 DEFINE_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 ~");
39 DEFINE_bool2(quiet, q, false, "if true, don't print status updates.");
41 DEFINE_bool(resetGpuContext, true, "Reset the GrContext before running each test.");
42 DEFINE_bool(abandonGpuContext, false, "Abandon the GrContext after running each test. "
43 "Implies --resetGpuContext.");
45 DEFINE_bool2(single, z, false, "run tests on a single thread internally.");
47 DEFINE_string(skps, "skps", "Directory to read skps from.");
49 DEFINE_int32(threads, SkThreadPool::kThreadPerCore,
50 "run threadsafe tests on a threadpool with this many threads.");
52 DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver.");
54 DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose.");
56 DEFINE_string2(writePath, w, "", "If set, write bitmaps here as .pngs.");