Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 /* | 8 /* |
| 9 * Code for the "gm" (Golden Master) rendering comparison tool. | 9 * Code for the "gm" (Golden Master) rendering comparison tool. |
| 10 * | 10 * |
| (...skipping 1807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1818 // Output summary to stdout. | 1818 // Output summary to stdout. |
| 1819 if (FLAGS_verbose) { | 1819 if (FLAGS_verbose) { |
| 1820 gm_fprintf(stdout, "Ran %d GMs\n", gmsRun); | 1820 gm_fprintf(stdout, "Ran %d GMs\n", gmsRun); |
| 1821 gm_fprintf(stdout, "... over %2d configs [%s]\n", configs.count(), | 1821 gm_fprintf(stdout, "... over %2d configs [%s]\n", configs.count(), |
| 1822 list_all_config_names(configs).c_str()); | 1822 list_all_config_names(configs).c_str()); |
| 1823 gm_fprintf(stdout, "... and %2d modes [%s]\n", modes.count(), list_al l(modes).c_str()); | 1823 gm_fprintf(stdout, "... and %2d modes [%s]\n", modes.count(), list_al l(modes).c_str()); |
| 1824 gm_fprintf(stdout, "... so there should be a total of %d tests.\n", expe ctedNumberOfTests); | 1824 gm_fprintf(stdout, "... so there should be a total of %d tests.\n", expe ctedNumberOfTests); |
| 1825 } | 1825 } |
| 1826 gmmain.ListErrors(FLAGS_verbose); | 1826 gmmain.ListErrors(FLAGS_verbose); |
| 1827 | 1827 |
| 1828 // TODO(epoger): in a standalone CL, enable this new check. | 1828 // TODO(epoger): Enable this check for Android, too, once we resolve |
| 1829 #if 0 | 1829 // https://code.google.com/p/skia/issues/detail?id=1222 |
| 1830 // ('GM is unexpectedly skipping tests on Android') | |
| 1831 #ifndef SK_BUILD_FOR_ANDROID | |
|
epoger
2013/04/11 15:24:04
That's better. Eric, you OK with me committing th
borenet
2013/04/11 15:38:41
Yes, assuming it looks like all is well on other p
| |
| 1830 if (expectedNumberOfTests != gmmain.fTestsRun) { | 1832 if (expectedNumberOfTests != gmmain.fTestsRun) { |
| 1831 gm_fprintf(stderr, "expected %d tests, but ran or skipped %d tests\n", | 1833 gm_fprintf(stderr, "expected %d tests, but ran or skipped %d tests\n", |
| 1832 expectedNumberOfTests, gmmain.fTestsRun); | 1834 expectedNumberOfTests, gmmain.fTestsRun); |
| 1833 reportError = true; | 1835 reportError = true; |
| 1834 } | 1836 } |
| 1835 #endif | 1837 #endif |
| 1836 | 1838 |
| 1837 if (FLAGS_writeJsonSummaryPath.count() == 1) { | 1839 if (FLAGS_writeJsonSummaryPath.count() == 1) { |
| 1838 Json::Value actualResults; | 1840 Json::Value actualResults; |
| 1839 actualResults[kJsonKey_ActualResults_Failed] = | 1841 actualResults[kJsonKey_ActualResults_Failed] = |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1878 if (FLAGS_forceBWtext) { | 1880 if (FLAGS_forceBWtext) { |
| 1879 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); | 1881 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); |
| 1880 } | 1882 } |
| 1881 } | 1883 } |
| 1882 | 1884 |
| 1883 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 1885 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 1884 int main(int argc, char * const argv[]) { | 1886 int main(int argc, char * const argv[]) { |
| 1885 return tool_main(argc, (char**) argv); | 1887 return tool_main(argc, (char**) argv); |
| 1886 } | 1888 } |
| 1887 #endif | 1889 #endif |
| OLD | NEW |