blob: 7c7634f16d0f4f156c2f3d8ccd68577c35379add [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"
caryclark17f0b6d2014-07-22 10:15:34 -07009
halcanary27523142015-04-27 06:41:35 -070010DEFINE_string(config, "565 8888 gpu nonrendering angle hwui ", "Options: "
11 "565 8888 angle debug gpu gpudebug gpudft gpunull hwui mesa "
12 "msaa16 msaa4 nonrendering null nullgpu nvprmsaa16 nvprmsaa4 "
13 "pdf skp svg xps (and maybe more)");
caryclark17f0b6d2014-07-22 10:15:34 -070014
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
bsalomon73bb4352015-06-30 09:38:35 -070027DEFINE_string(images, "", "Directory of images to decode.");
msarett95f192d2015-02-13 09:05:41 -080028
caryclark17f0b6d2014-07-22 10:15:34 -070029DEFINE_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
joshualitt5f5a8d72015-02-25 14:09:45 -080041DEFINE_bool(preAbandonGpuContext, false, "Abandons the GrContext before running the test.");
42
mtklein55e88b22015-01-21 15:50:13 -080043DEFINE_bool(abandonGpuContext, false, "Abandon the GrContext after running each test.");
caryclark17f0b6d2014-07-22 10:15:34 -070044
mtklein34580f72014-08-07 12:46:29 -070045DEFINE_string(skps, "skps", "Directory to read skps from.");
mtklein92007582014-08-01 07:46:52 -070046
mtkleine356c7f2014-10-06 11:24:08 -070047DEFINE_int32(threads, -1, "Run threadsafe tests on a threadpool with this many extra threads, "
48 "defaulting to one extra thread per core.");
caryclark17f0b6d2014-07-22 10:15:34 -070049
50DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver.");
51
52DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose.");
mtkleinb5110422014-08-07 15:20:02 -070053
54DEFINE_string2(writePath, w, "", "If set, write bitmaps here as .pngs.");
mtkleinea65bfa2014-09-09 07:59:46 -070055
56DEFINE_string(key, "",
57 "Space-separated key/value pairs to add to JSON identifying this builder.");
58DEFINE_string(properties, "",
59 "Space-separated key/value pairs to add to JSON identifying this run.");
60