Lines Matching defs:testEntry

263 		TestEntry *testEntry = testEntries[i];
264 const char *filename = testEntry->cpath;
295 examine_entry(BEntry &entry, TestEntry *testEntry, bool traverse)
298 testEntry = resolve_link(testEntry);
300 CPPUNIT_ASSERT( entry.Exists() == testEntry->isConcrete() );
304 CPPUNIT_ASSERT( path == testEntry->cpath );
308 CPPUNIT_ASSERT( testEntry->name == name );
314 CPPUNIT_ASSERT( path == testEntry->super->cpath );
323 CPPUNIT_ASSERT( path == testEntry->super->cpath );
328 if (testEntry->path.length() < B_PATH_NAME_LENGTH)
329 CPPUNIT_ASSERT( ref == testEntry->get_ref() );
336 TestEntry *testEntry = &_testEntry;
340 //printf("%s\n", testEntry->cpath);
341 BEntry entry(testEntry->cpath, traverse);
347 examine_entry(entry, testEntry, traverse);
352 //printf("%s\n", testEntry->cpath);
353 if (chdir(testEntry->super->cpath) == 0) {
354 BEntry entry(testEntry->cname, traverse);
360 examine_entry(entry, testEntry, traverse);
370 TestEntry *testEntry = &_testEntry;
374 //printf("%s\n", testEntry->cpath);
375 BEntry entry(&testEntry->get_ref(), traverse);
381 examine_entry(entry, testEntry, traverse);
390 TestEntry *testEntry = &_testEntry;
394 if (!testEntry->isBad()
395 && testEntry->path.length() < B_PATH_NAME_LENGTH) {
396 //printf("%s\n", testEntry->cpath);
399 BEntry entry(&dir, testEntry->cpath, traverse);
405 examine_entry(entry, testEntry, traverse);
411 if (!testEntry->isBad()
412 && testEntry->super->path.length() < B_PATH_NAME_LENGTH) {
413 //printf("%s + %s\n", testEntry->super->cpath, testEntry->cname);
414 BDirectory dir(testEntry->super->cpath);
416 BEntry entry(&dir, testEntry->cname, traverse);
422 examine_entry(entry, testEntry, traverse);
428 if (!testEntry->super->isBad() && !testEntry->super->super->isBad()) {
429 string entryName = testEntry->super->name + "/" + testEntry->name;
430 //printf("%s + %s\n", testEntry->super->super->cpath, entryName.c_str());
431 BDirectory dir(testEntry->super->super->cpath);
439 examine_entry(entry, testEntry, traverse);
816 TestEntry *testEntry = &_testEntry;
821 //printf("%s\n", testEntry->cpath);
822 status_t result = entry.SetTo(testEntry->cpath, traverse);
828 examine_entry(entry, testEntry, traverse);
833 //printf("%s\n", testEntry->cpath);
834 if (chdir(testEntry->super->cpath) == 0) {
835 status_t result = entry.SetTo(testEntry->cname, traverse);
841 examine_entry(entry, testEntry, traverse);
851 TestEntry *testEntry = &_testEntry;
856 //printf("%s\n", testEntry->cpath);
857 status_t result = entry.SetTo(&testEntry->get_ref(), traverse);
863 examine_entry(entry, testEntry, traverse);
872 TestEntry *testEntry = &_testEntry;
877 if (!testEntry->isBad()
878 && testEntry->path.length() < B_PATH_NAME_LENGTH) {
879 //printf("%s\n", testEntry->cpath);
882 status_t result = entry.SetTo(&dir, testEntry->cpath, traverse);
888 examine_entry(entry, testEntry, traverse);
894 if (!testEntry->isBad()
895 && testEntry->super->path.length() < B_PATH_NAME_LENGTH) {
896 //printf("%s + %s\n", testEntry->super->cpath, testEntry->cname);
897 BDirectory dir(testEntry->super->cpath);
899 status_t result = entry.SetTo(&dir, testEntry->cname, traverse);
905 examine_entry(entry, testEntry, traverse);
911 if (!testEntry->super->isBad() && !testEntry->super->super->isBad()) {
912 string entryName = testEntry->super->name + "/" + testEntry->name;
913 //printf("%s + %s\n", testEntry->super->super->cpath, entryName.c_str());
914 BDirectory dir(testEntry->super->super->cpath);
922 examine_entry(entry, testEntry, traverse);
1413 EntryTest::RenameTestEntry(TestEntry *testEntry, TestEntry *newTestEntry,
1421 string pathname = testEntry->path;
1422 string dirname = testEntry->super->path;
1488 EntryTest::RenameTestEntry(TestEntry *testEntry, TestEntry *newTestEntry,
1493 string relPath = get_shortest_relative_path(testEntry->super,
1496 RenameTestEntry(testEntry, newTestEntry, relPath, existing,
1500 RenameTestEntry(testEntry, newTestEntry, newTestEntry->path, existing,
1506 EntryTest::RenameTestFile(TestEntry *testEntry, TestEntry *newTestEntry,
1509 RenameTestEntry(testEntry, newTestEntry, existing, clobber, error,
1515 EntryTest::RenameTestDir(TestEntry *testEntry, TestEntry *newTestEntry,
1518 RenameTestEntry(testEntry, newTestEntry, existing, clobber, error,
1524 EntryTest::RenameTestLink(TestEntry *testEntry, TestEntry *newTestEntry,
1527 RenameTestEntry(testEntry, newTestEntry, existing, clobber, error,
1634 EntryTest::MoveToTestEntry(TestEntry *testEntry, TestEntry *testDir,
1642 string pathname = testEntry->path;
1646 newPathname += testEntry->name;
1727 EntryTest::MoveToTestEntry(TestEntry *testEntry, TestEntry *testDir,
1735 MoveToTestEntry(testEntry, testDir, newTestEntry->name, existing,
1737 MoveToTestEntry(testEntry, &subDir1, newTestEntry->path, existing,
1740 MoveToTestEntry(testEntry, testDir, "", existing, clobber, error,
1747 EntryTest::MoveToTestFile(TestEntry *testEntry, TestEntry *testDir,
1751 MoveToTestEntry(testEntry, testDir, newTestEntry, existing, clobber, error,
1757 EntryTest::MoveToTestDir(TestEntry *testEntry, TestEntry *testDir,
1761 MoveToTestEntry(testEntry, testDir, newTestEntry, existing, clobber, error,
1767 EntryTest::MoveToTestLink(TestEntry *testEntry, TestEntry *testDir,
1771 MoveToTestEntry(testEntry, testDir, newTestEntry, existing, clobber, error,
1963 const TestEntry *testEntry, const TestEntry *testEntry2,
1966 if (!testEntry->isBad() && !testEntry2->isBad()
1967 && (!traversed && testEntry->isConcrete())
1969 //printf("compare: `%s', `%s'\n", testEntry->cpath, testEntry2->cpath);
1971 CPPUNIT_ASSERT( (entry == entry2) == (testEntry == testEntry2) );
1972 CPPUNIT_ASSERT( (entry == entry2) == (testEntry2 == testEntry) );
1973 CPPUNIT_ASSERT( (entry != entry2) == (testEntry != testEntry2) );
1974 CPPUNIT_ASSERT( (entry != entry2) == (testEntry2 != testEntry) );
2025 TestEntry *testEntry = testEntries[i];
2026 TestEntry *traversedTestEntry = resolve_link(testEntry);
2027 BEntry entry(testEntry->cpath);
2028 BEntry traversedEntry(testEntry->cpath, true);
2034 compareEntries(entry, entry2, testEntry, testEntry2, false, false);
2038 testEntry, traversedTestEntry2, false, true);
2076 TestEntry *testEntry = testEntries[i];
2077 BEntry entry(testEntry->cpath);
2110 TestEntry *testEntry = testEntries[i];
2111 BEntry entry(testEntry->cpath);
2175 TestEntry *testEntry = testEntries[i];
2176 const char *path = testEntry->cpath;
2178 if (testEntry->isBad())
2182 const entry_ref &testEntryRef = testEntry->get_ref();