Lines Matching refs:dirNo

91 static SkString get_in_path(int dirNo, const char* filename) {  in get_in_path()  argument
93 SkASSERT(dirNo); in get_in_path()
94 path.appendf("%s%d%s", IN_DIR_PRE, dirNo, DIR_POST); in get_in_path()
132 static SkString get_out_path(int dirNo, const char* dirName) { in get_out_path() argument
134 SkASSERT(dirNo); in get_out_path()
136 path.appendf("%s%d%s%s%s", OUT_DIR_PRE, dirNo, DIR_POST, PATH_SLASH, dirName); in get_out_path()
171 void init(int dirNo) { in init()
172 fDirNo = dirNo; in init()
178 void init(int dirNo, const SkString& filename) { in init()
179 fDirNo = dirNo; in init()
208 void test(int dirNo, const SkString& filename) { in test()
209 init(dirNo); in test()
246 void init(int dirNo) { in init()
247 fResult.init(dirNo); in init()
275 TestRunnableDir(void (*testFun)(TestState*), int dirNo, TestRunner* runner) { in TestRunnableDir() argument
276 fState.init(dirNo); in TestRunnableDir()
284 TestRunnableFile(void (*testFun)(TestState*), int dirNo, const char* name, TestRunner* runner) { in TestRunnableFile() argument
285 fState.init(dirNo); in TestRunnableFile()
293 TestRunnableEncode(void (*testFun)(TestState*), int dirNo, const char* name, TestRunner* runner) in TestRunnableEncode() argument
294 : TestRunnableFile(testFun, dirNo, name, runner) { in TestRunnableEncode()
626 static bool buildTestDir(int dirNo, int firstDirNo, in buildTestDir() argument
628 SkString dirName = get_out_path(dirNo, outStatusDir); in buildTestDir()
636 test.init(dirNo); in buildTestDir()
651 *tests[dirNo - firstDirNo].append() = test; in buildTestDir()
656 SkTDArray<TestResult>& testSet = tests[dirNo - firstDirNo]; in buildTestDir()
659 *sorted[dirNo - firstDirNo].append() = (SortByName*) &testSet[index]; in buildTestDir()
661 if (sorted[dirNo - firstDirNo].count()) { in buildTestDir()
662 SkTQSort<SortByName>(sorted[dirNo - firstDirNo].begin(), in buildTestDir()
663 sorted[dirNo - firstDirNo].end() - 1); in buildTestDir()
704 int dirNo = state->fResult.fDirNo; in doOneDir() local
705 SkString dirName = get_in_path(dirNo, NULL); in doOneDir()
711 if (!buildTestDir(dirNo, dirNo, tests, sorted)) { in doOneDir()
718 if (skipOver[index].directory == dirNo in doOneDir()
725 name.init(dirNo); in doOneDir()
735 test.init(dirNo, filename); in doOneDir()
843 int dirNo; in DEF_TEST() local
845 while ((dirNo = gDirs.next()) > 0) { in DEF_TEST()
847 SkDebugf("dirNo=%d\n", dirNo); in DEF_TEST()
849 state.fResult.fDirNo = dirNo; in DEF_TEST()
865 int dirNo; in DEF_TEST() local
867 while ((dirNo = gDirs.next()) > 0) { in DEF_TEST()
869 (&testSkpClipMain, dirNo, &testRunner)); in DEF_TEST()
875 while ((dirNo = gDirs.next()) > 0) { in DEF_TEST()
876 TestState& testState = testRunner.fRunnables[dirNo - 1]->fState; in DEF_TEST()
877 SkASSERT(testState.fResult.fDirNo == dirNo); in DEF_TEST()
890 int dirNo; in buildTests() local
891 while ((dirNo = gDirs.next()) > 0) { in buildTests()
892 if (!buildTestDir(dirNo, firstDirNo, tests, sorted)) { in buildTests()
911 int dirNo; in DEF_TEST() local
913 while ((dirNo = gDirs.next()) > 0) { in DEF_TEST()
914 SkString dirName = get_in_path(dirNo, NULL); in DEF_TEST()
922 if (skipOver[index].directory == dirNo in DEF_TEST()
929 name.init(dirNo); in DEF_TEST()
931 int count = sorted.get()[dirNo - firstDirNo].count(); in DEF_TEST()
932 if (SkTSearch<SortByName, Less>(sorted.get()[dirNo - firstDirNo].begin(), in DEF_TEST()
935 (&testSkpClip, dirNo, filename.c_str(), &testRunner)); in DEF_TEST()
949 for (int dirNo = firstDirNo; dirNo <= lastDirNo; ++dirNo) { in DEF_TEST() local
950 SkTDArray<TestResult>& array = results.get()[dirNo - firstDirNo]; in DEF_TEST()
978 int dirNo = gDirs.next(); in DEF_TEST() local
979 if (dirNo < 0) { in DEF_TEST()
980 dirNo = skipOver[testIndex].directory; in DEF_TEST()
987 SkAssertResult(get_in_path(dirNo, skp).size()); in DEF_TEST()
990 state.test(dirNo, filename); in DEF_TEST()
1004 int dirNo = skip.directory; in DEF_TEST() local
1007 SkAssertResult(get_in_path(dirNo, skp).size()); in DEF_TEST()
1010 state.test(dirNo, filename); in DEF_TEST()
1022 int dirNo = skipOver[index].directory; in DEF_TEST() local
1023 SkDebugf("mkdir -p " IN_DIR_PRE "%d" DIR_POST "\n", dirNo); in DEF_TEST()
1026 int dirNo = skipOver[index].directory; in DEF_TEST() local
1029 "%d" DIR_POST "/%s " IN_DIR_PRE "%d" DIR_POST "\n", dirNo, filename, dirNo); in DEF_TEST()