caryclark | 17f0b6d | 2014-07-22 10:15:34 -0700 | [diff] [blame] | 1 | /* |
| 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" |
caryclark | 17f0b6d | 2014-07-22 10:15:34 -0700 | [diff] [blame] | 9 | |
bsalomon | 3b4d077 | 2014-08-06 10:52:33 -0700 | [diff] [blame] | 10 | DEFINE_string(config, "565 8888 pdf gpu nonrendering angle", |
caryclark | 17f0b6d | 2014-07-22 10:15:34 -0700 | [diff] [blame] | 11 | "Options: 565 8888 pdf gpu nonrendering msaa4 msaa16 nvprmsaa4 nvprmsaa16 " |
| 12 | "gpunull gpudebug angle mesa"); |
| 13 | |
| 14 | DEFINE_bool(cpu, true, "master switch for running CPU-bound work."); |
| 15 | |
| 16 | DEFINE_bool(dryRun, false, |
| 17 | "just print the tests that would be run, without actually running them."); |
| 18 | |
| 19 | DEFINE_bool(gpu, true, "master switch for running GPU-bound work."); |
| 20 | |
| 21 | DEFINE_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 | |
| 26 | DEFINE_bool2(leaks, l, false, "show leaked ref cnt'd objects."); |
| 27 | |
| 28 | DEFINE_string2(match, m, NULL, |
| 29 | "[~][^]substring[$] [...] of GM name to run.\n" |
| 30 | "Multiple matches may be separated by spaces.\n" |
| 31 | "~ causes a matching GM to always be skipped\n" |
| 32 | "^ requires the start of the GM to match\n" |
| 33 | "$ requires the end of the GM to match\n" |
| 34 | "^ and $ requires an exact match\n" |
| 35 | "If a GM does not match any list entry,\n" |
| 36 | "it is skipped unless some list entry starts with ~"); |
| 37 | |
| 38 | DEFINE_bool2(quiet, q, false, "if true, don't print status updates."); |
| 39 | |
bsalomon | 2354f84 | 2014-07-28 13:48:36 -0700 | [diff] [blame] | 40 | DEFINE_bool(resetGpuContext, true, "Reset the GrContext before running each test."); |
| 41 | DEFINE_bool(abandonGpuContext, false, "Abandon the GrContext after running each test. " |
| 42 | "Implies --resetGpuContext."); |
caryclark | 17f0b6d | 2014-07-22 10:15:34 -0700 | [diff] [blame] | 43 | |
mtklein | 34580f7 | 2014-08-07 12:46:29 -0700 | [diff] [blame] | 44 | DEFINE_string(skps, "skps", "Directory to read skps from."); |
mtklein | 9200758 | 2014-08-01 07:46:52 -0700 | [diff] [blame] | 45 | |
mtklein | 406654b | 2014-09-03 15:34:37 -0700 | [diff] [blame] | 46 | DEFINE_int32(threads, 0, "Run threadsafe tests on a threadpool with this many threads, " |
| 47 | "defaulting to one thread per core."); |
caryclark | 17f0b6d | 2014-07-22 10:15:34 -0700 | [diff] [blame] | 48 | |
| 49 | DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver."); |
| 50 | |
| 51 | DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose."); |
mtklein | b511042 | 2014-08-07 15:20:02 -0700 | [diff] [blame] | 52 | |
| 53 | DEFINE_string2(writePath, w, "", "If set, write bitmaps here as .pngs."); |
mtklein | ea65bfa | 2014-09-09 07:59:46 -0700 | [diff] [blame^] | 54 | |
| 55 | DEFINE_string(key, "", |
| 56 | "Space-separated key/value pairs to add to JSON identifying this builder."); |
| 57 | DEFINE_string(properties, "", |
| 58 | "Space-separated key/value pairs to add to JSON identifying this run."); |
| 59 | |