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 | |
caryclark | 17f0b6d | 2014-07-22 10:15:34 -0700 | [diff] [blame] | 10 | DEFINE_bool(cpu, true, "master switch for running CPU-bound work."); |
| 11 | |
| 12 | DEFINE_bool(dryRun, false, |
| 13 | "just print the tests that would be run, without actually running them."); |
| 14 | |
| 15 | DEFINE_bool(gpu, true, "master switch for running GPU-bound work."); |
| 16 | |
bsalomon | 73bb435 | 2015-06-30 09:38:35 -0700 | [diff] [blame] | 17 | DEFINE_string(images, "", "Directory of images to decode."); |
msarett | 95f192d | 2015-02-13 09:05:41 -0800 | [diff] [blame] | 18 | |
halcanary | 96fcdcc | 2015-08-27 07:41:13 -0700 | [diff] [blame] | 19 | DEFINE_string2(match, m, nullptr, |
caryclark | 17f0b6d | 2014-07-22 10:15:34 -0700 | [diff] [blame] | 20 | "[~][^]substring[$] [...] of GM name to run.\n" |
| 21 | "Multiple matches may be separated by spaces.\n" |
| 22 | "~ causes a matching GM to always be skipped\n" |
| 23 | "^ requires the start of the GM to match\n" |
| 24 | "$ requires the end of the GM to match\n" |
| 25 | "^ and $ requires an exact match\n" |
| 26 | "If a GM does not match any list entry,\n" |
| 27 | "it is skipped unless some list entry starts with ~"); |
| 28 | |
| 29 | DEFINE_bool2(quiet, q, false, "if true, don't print status updates."); |
| 30 | |
joshualitt | 5f5a8d7 | 2015-02-25 14:09:45 -0800 | [diff] [blame] | 31 | DEFINE_bool(preAbandonGpuContext, false, "Abandons the GrContext before running the test."); |
| 32 | |
mtklein | 55e88b2 | 2015-01-21 15:50:13 -0800 | [diff] [blame] | 33 | DEFINE_bool(abandonGpuContext, false, "Abandon the GrContext after running each test."); |
caryclark | 17f0b6d | 2014-07-22 10:15:34 -0700 | [diff] [blame] | 34 | |
mtklein | 34580f7 | 2014-08-07 12:46:29 -0700 | [diff] [blame] | 35 | DEFINE_string(skps, "skps", "Directory to read skps from."); |
mtklein | 9200758 | 2014-08-01 07:46:52 -0700 | [diff] [blame] | 36 | |
mtklein | e356c7f | 2014-10-06 11:24:08 -0700 | [diff] [blame] | 37 | DEFINE_int32(threads, -1, "Run threadsafe tests on a threadpool with this many extra threads, " |
| 38 | "defaulting to one extra thread per core."); |
caryclark | 17f0b6d | 2014-07-22 10:15:34 -0700 | [diff] [blame] | 39 | |
| 40 | DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver."); |
| 41 | |
| 42 | DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose."); |
mtklein | b511042 | 2014-08-07 15:20:02 -0700 | [diff] [blame] | 43 | |
| 44 | DEFINE_string2(writePath, w, "", "If set, write bitmaps here as .pngs."); |
mtklein | ea65bfa | 2014-09-09 07:59:46 -0700 | [diff] [blame] | 45 | |
| 46 | DEFINE_string(key, "", |
| 47 | "Space-separated key/value pairs to add to JSON identifying this builder."); |
| 48 | DEFINE_string(properties, "", |
| 49 | "Space-separated key/value pairs to add to JSON identifying this run."); |
| 50 | |