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" |
| 9 | #include "SkThreadPool.h" |
| 10 | |
| 11 | DEFINE_string(config, "565 8888 pdf gpu nonrendering", |
| 12 | "Options: 565 8888 pdf gpu nonrendering msaa4 msaa16 nvprmsaa4 nvprmsaa16 " |
| 13 | "gpunull gpudebug angle mesa"); |
| 14 | |
| 15 | DEFINE_bool(cpu, true, "master switch for running CPU-bound work."); |
| 16 | |
| 17 | DEFINE_bool(dryRun, false, |
| 18 | "just print the tests that would be run, without actually running them."); |
| 19 | |
| 20 | DEFINE_bool(gpu, true, "master switch for running GPU-bound work."); |
| 21 | |
| 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 " |
| 25 | "system."); |
| 26 | |
| 27 | DEFINE_bool2(leaks, l, false, "show leaked ref cnt'd objects."); |
| 28 | |
| 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 ~"); |
| 38 | |
| 39 | DEFINE_bool2(quiet, q, false, "if true, don't print status updates."); |
| 40 | |
bsalomon | 2354f84 | 2014-07-28 13:48:36 -0700 | [diff] [blame] | 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."); |
caryclark | 17f0b6d | 2014-07-22 10:15:34 -0700 | [diff] [blame] | 44 | |
| 45 | DEFINE_bool2(single, z, false, "run tests on a single thread internally."); |
| 46 | |
mtklein | 9200758 | 2014-08-01 07:46:52 -0700 | [diff] [blame^] | 47 | DEFINE_string(skps, "", "Directory to read skps from."); |
| 48 | |
caryclark | 17f0b6d | 2014-07-22 10:15:34 -0700 | [diff] [blame] | 49 | DEFINE_int32(threads, SkThreadPool::kThreadPerCore, |
| 50 | "run threadsafe tests on a threadpool with this many threads."); |
| 51 | |
| 52 | DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver."); |
| 53 | |
| 54 | DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose."); |