"it is skipped unless some list entry starts with ~");
DEFINE_string(config, "565 8888 gpu nonrendering",
"Options: 565 8888 gpu nonrendering msaa4 msaa16 nvprmsaa4 nvprmsaa16 gpunull gpudebug angle mesa");
+DEFINE_bool(dryRun, false, "Just print the tests that would be run, without actually running them.");
DEFINE_bool(leaks, false, "Print leaked instance-counted objects at exit?");
DEFINE_string(skps, "", "Directory to read skps from.");
DEFINE_bool(benches, true, "Run benches? Does not run GMs-as-benches.");
DEFINE_bool(tests, true, "Run tests?");
+DECLARE_bool(verbose);
+
__SK_FORCE_IMAGE_DECODER_LINKING;
// "FooBar" -> "foobar". Obviously, ASCII only.
int tool_main(int argc, char** argv) {
SkAutoGraphics ag;
SkCommandLineFlags::Parse(argc, argv);
+
+ if (FLAGS_dryRun) {
+ FLAGS_verbose = true;
+ }
#if SK_ENABLE_INST_COUNT
gPrintInstCount = FLAGS_leaks;
#endif
DEFINE_bool(cpu, true, "Master switch for running CPU-bound work.");
DEFINE_bool(gpu, true, "Master switch for running GPU-bound work.");
+DECLARE_bool(dryRun);
+
namespace DM {
Task::Task(Reporter* reporter, TaskRunner* taskRunner)
void CpuTask::run() {
if (FLAGS_cpu && !this->shouldSkip()) {
this->start();
- this->draw();
+ if (!FLAGS_dryRun) this->draw();
this->finish();
}
SkDELETE(this);
void GpuTask::run(GrContextFactory& factory) {
if (FLAGS_gpu && !this->shouldSkip()) {
this->start();
- this->draw(&factory);
+ if (!FLAGS_dryRun) this->draw(&factory);
this->finish();
}
SkDELETE(this);