Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: tests/skia_test.cpp

Issue 51263002: tests: Provide a default resources path. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkCommandLineFlags.h" 8 #include "SkCommandLineFlags.h"
9 #include "SkGraphics.h" 9 #include "SkGraphics.h"
10 #include "SkOSFile.h" 10 #include "SkOSFile.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 DEFINE_string2(match, m, NULL, "[~][^]substring[$] [...] of test name to run.\n" \ 122 DEFINE_string2(match, m, NULL, "[~][^]substring[$] [...] of test name to run.\n" \
123 "Multiple matches may be separated by spaces.\n" \ 123 "Multiple matches may be separated by spaces.\n" \
124 "~ causes a matching test to always be skipped\n" \ 124 "~ causes a matching test to always be skipped\n" \
125 "^ requires the start of the test to match\n" \ 125 "^ requires the start of the test to match\n" \
126 "$ requires the end of the test to match\n" \ 126 "$ requires the end of the test to match\n" \
127 "^ and $ requires an exact match\n" \ 127 "^ and $ requires an exact match\n" \
128 "If a test does not match any list entry,\n" \ 128 "If a test does not match any list entry,\n" \
129 "it is skipped unless some list entry starts with ~"); 129 "it is skipped unless some list entry starts with ~");
130 DEFINE_string2(tmpDir, t, NULL, "tmp directory for tests to use."); 130 DEFINE_string2(tmpDir, t, NULL, "tmp directory for tests to use.");
131 DEFINE_string2(resourcePath, i, NULL, "directory for test resources."); 131 DEFINE_string2(resourcePath, i, "resources", "directory for test resources.");
132 DEFINE_bool2(extendedTest, x, false, "run extended tests for pathOps."); 132 DEFINE_bool2(extendedTest, x, false, "run extended tests for pathOps.");
133 DEFINE_bool2(single, z, false, "run tests on a single thread internally."); 133 DEFINE_bool2(single, z, false, "run tests on a single thread internally.");
134 DEFINE_bool2(verbose, v, false, "enable verbose output."); 134 DEFINE_bool2(verbose, v, false, "enable verbose output.");
135 DEFINE_int32(threads, SkThreadPool::kThreadPerCore, 135 DEFINE_int32(threads, SkThreadPool::kThreadPerCore,
136 "Run threadsafe tests on a threadpool with this many threads."); 136 "Run threadsafe tests on a threadpool with this many threads.");
137 137
138 SkString Test::GetTmpDir() { 138 SkString Test::GetTmpDir() {
139 const char* tmpDir = FLAGS_tmpDir.isEmpty() ? NULL : FLAGS_tmpDir[0]; 139 const char* tmpDir = FLAGS_tmpDir.isEmpty() ? NULL : FLAGS_tmpDir[0];
140 return SkString(tmpDir); 140 return SkString(tmpDir);
141 } 141 }
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 GpuTest::DestroyContexts(); 269 GpuTest::DestroyContexts();
270 270
271 return (failCount == 0) ? 0 : 1; 271 return (failCount == 0) ? 0 : 1;
272 } 272 }
273 273
274 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 274 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
275 int main(int argc, char * const argv[]) { 275 int main(int argc, char * const argv[]) {
276 return tool_main(argc, (char**) argv); 276 return tool_main(argc, (char**) argv);
277 } 277 }
278 #endif 278 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698