blob: d05f76439b9510c59474c202aef742bbac72248c [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
tomhudsoneebc39a2015-02-23 12:18:05 -080010DEFINE_string(config, "565 8888 gpu nonrendering angle nvprmsaa4 hwui ",
caryclark17f0b6d2014-07-22 10:15:34 -070011 "Options: 565 8888 pdf gpu nonrendering msaa4 msaa16 nvprmsaa4 nvprmsaa16 "
mtklein748ca3b2015-01-15 10:56:12 -080012 "gpudft gpunull gpudebug angle mesa (and many more)");
caryclark17f0b6d2014-07-22 10:15:34 -070013
14DEFINE_bool(cpu, true, "master switch for running CPU-bound work.");
15
16DEFINE_bool(dryRun, false,
17 "just print the tests that would be run, without actually running them.");
18
19DEFINE_bool(gpu, true, "master switch for running GPU-bound work.");
20
21DEFINE_string(gpuAPI, "", "Force use of specific gpu API. Using \"gl\" "
22 "forces OpenGL API. Using \"gles\" forces OpenGL ES API. "
23 "Defaults to empty string, which selects the API native to the "
24 "system.");
25
msarett95f192d2015-02-13 09:05:41 -080026DEFINE_string(images, "resources", "Directory of images to decode.");
27
caryclark17f0b6d2014-07-22 10:15:34 -070028DEFINE_bool2(leaks, l, false, "show leaked ref cnt'd objects.");
29
30DEFINE_string2(match, m, NULL,
31 "[~][^]substring[$] [...] of GM name to run.\n"
32 "Multiple matches may be separated by spaces.\n"
33 "~ causes a matching GM to always be skipped\n"
34 "^ requires the start of the GM to match\n"
35 "$ requires the end of the GM to match\n"
36 "^ and $ requires an exact match\n"
37 "If a GM does not match any list entry,\n"
38 "it is skipped unless some list entry starts with ~");
39
40DEFINE_bool2(quiet, q, false, "if true, don't print status updates.");
41
joshualitt5f5a8d72015-02-25 14:09:45 -080042DEFINE_bool(preAbandonGpuContext, false, "Abandons the GrContext before running the test.");
43
mtklein55e88b22015-01-21 15:50:13 -080044DEFINE_bool(abandonGpuContext, false, "Abandon the GrContext after running each test.");
caryclark17f0b6d2014-07-22 10:15:34 -070045
mtklein34580f72014-08-07 12:46:29 -070046DEFINE_string(skps, "skps", "Directory to read skps from.");
mtklein92007582014-08-01 07:46:52 -070047
mtkleine356c7f2014-10-06 11:24:08 -070048DEFINE_int32(threads, -1, "Run threadsafe tests on a threadpool with this many extra threads, "
49 "defaulting to one extra thread per core.");
caryclark17f0b6d2014-07-22 10:15:34 -070050
51DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver.");
52
53DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose.");
mtkleinb5110422014-08-07 15:20:02 -070054
55DEFINE_string2(writePath, w, "", "If set, write bitmaps here as .pngs.");
mtkleinea65bfa2014-09-09 07:59:46 -070056
57DEFINE_string(key, "",
58 "Space-separated key/value pairs to add to JSON identifying this builder.");
59DEFINE_string(properties, "",
60 "Space-separated key/value pairs to add to JSON identifying this run.");
61