Lines Matching full:path
45 std::string root_fs(root.path()); in TEST()
48 FileCollector.addFile("/path/to/a"); in TEST()
49 FileCollector.addFile("/path/to/b"); in TEST()
50 FileCollector.addFile("/path/to/c"); in TEST()
56 EXPECT_TRUE(FileCollector.hasSeen("/path/to/a")); in TEST()
57 EXPECT_TRUE(FileCollector.hasSeen("/path/to/b")); in TEST()
58 EXPECT_TRUE(FileCollector.hasSeen("/path/to/c")); in TEST()
61 EXPECT_FALSE(FileCollector.hasSeen("/path/to/d")); in TEST()
67 llvm::SmallString<128> aaa(file_root.path()); in TEST()
68 llvm::sys::path::append(aaa, "aaa"); in TEST()
71 llvm::SmallString<128> bbb(file_root.path()); in TEST()
72 llvm::sys::path::append(bbb, "bbb"); in TEST()
75 llvm::SmallString<128> ccc(file_root.path()); in TEST()
76 llvm::sys::path::append(ccc, "ccc"); in TEST()
79 std::string root_fs(file_root.path()); in TEST()
82 FileCollector.addDirectory(file_root.path()); in TEST()
88 EXPECT_TRUE(FileCollector.hasSeen(a.path())); in TEST()
89 EXPECT_TRUE(FileCollector.hasSeen(b.path())); in TEST()
90 EXPECT_TRUE(FileCollector.hasSeen(c.path())); in TEST()
93 llvm::SmallString<128> ddd(file_root.path()); in TEST()
94 llvm::sys::path::append(ddd, "ddd"); in TEST()
96 EXPECT_FALSE(FileCollector.hasSeen(d.path())); in TEST()
101 TempFile a(file_root.path("aaa")); in TEST()
102 TempFile b(file_root.path("bbb")); in TEST()
103 TempFile c(file_root.path("ccc")); in TEST()
107 std::string root_fs(root.path()); in TEST()
109 FileCollector.addFile(a.path()); in TEST()
110 FileCollector.addFile(b.path()); in TEST()
111 FileCollector.addFile(c.path()); in TEST()
129 TempDir subdir(file_root.path("subdir")); in TEST()
130 TempDir subdir2(file_root.path("subdir2")); in TEST()
131 TempFile a(subdir2.path("a")); in TEST()
135 std::string root_fs(root.path()); in TEST()
137 FileCollector.addFile(a.path()); in TEST()
140 EXPECT_TRUE(FileCollector.hasSeen(a.path())); in TEST()
141 EXPECT_FALSE(FileCollector.hasSeen(subdir.path())); in TEST()
143 FileCollector.addFile(subdir.path()); in TEST()
144 EXPECT_TRUE(FileCollector.hasSeen(subdir.path())); in TEST()
150 llvm::SmallString<128> SubdirInRoot = root.path(); in TEST()
151 llvm::sys::path::append(SubdirInRoot, in TEST()
152 llvm::sys::path::relative_path(subdir.path())); in TEST()
160 TempDir subdir(file_root.path("subdir")); in TEST()
161 TempDir subdir2(file_root.path("subdir2")); in TEST()
162 TempFile a(subdir2.path("a")); in TEST()
163 TempFile b(file_root.path("b")); in TEST()
164 TempDir subdir3(file_root.path("subdir3")); in TEST()
165 TempFile subdir3a(subdir3.path("aa")); in TEST()
166 TempDir subdir3b(subdir3.path("subdirb")); in TEST()
167 { TempFile subdir3fileremoved(subdir3.path("removed")); } in TEST()
171 std::string root_fs(root.path()); in TEST()
175 VFS->status(a.path()); in TEST()
176 EXPECT_TRUE(Collector->hasSeen(a.path())); in TEST()
178 VFS->openFileForRead(b.path()); in TEST()
179 EXPECT_TRUE(Collector->hasSeen(b.path())); in TEST()
181 VFS->status(subdir.path()); in TEST()
182 EXPECT_TRUE(Collector->hasSeen(subdir.path())); in TEST()
186 auto It = VFS->dir_begin(subdir3.path(), EC); in TEST()
188 EXPECT_TRUE(Collector->hasSeen(subdir3.path())); in TEST()
189 EXPECT_TRUE(Collector->hasSeen(subdir3a.path())); in TEST()
190 EXPECT_TRUE(Collector->hasSeen(subdir3b.path())); in TEST()
191 std::string RemovedFileName((Twine(subdir3.path("removed"))).str()); in TEST()
202 TempFile a(file_root.path("aaa")); in TEST()
203 TempFile b(file_root.path("bbb")); in TEST()
204 TempFile c(file_root.path("ccc")); in TEST()
207 TempDir foo(file_root.path("foo")); in TEST()
208 TempFile d(foo.path("ddd")); in TEST()
211 TempFile e(foo.path("../eee")); in TEST()
214 TempLink symlink(file_root.path("foo"), file_root.path("bar")); in TEST()
218 std::string root_fs(reproducer_root.path()); in TEST()
222 FileCollector.addFile(a.path()); in TEST()
223 FileCollector.addFile(b.path()); in TEST()
224 FileCollector.addFile(c.path()); in TEST()
225 FileCollector.addFile(d.path()); in TEST()
226 FileCollector.addFile(e.path()); in TEST()
227 FileCollector.addFile(file_root.path() + "/bar/ddd"); in TEST()
233 std::string vpath = (file_root.path() + "/aaa").str(); in TEST()
235 (reproducer_root.path() + file_root.path() + "/aaa").str(); in TEST()
241 // Make sure the virtual path points to the real source path. in TEST()
242 std::string vpath = (file_root.path() + "/bar/ddd").str(); in TEST()
244 (reproducer_root.path() + file_root.path() + "/foo/ddd").str(); in TEST()
250 // Make sure that .. is removed from the source path. in TEST()
251 std::string vpath = (file_root.path() + "/eee").str(); in TEST()
253 (reproducer_root.path() + file_root.path() + "/eee").str(); in TEST()
261 TempFile a(file_root.path("a")); in TEST()
262 TempLink symlink(file_root.path("a"), file_root.path("b")); in TEST()
266 std::string root_fs(root.path()); in TEST()
271 VFS->getRealPath(symlink.path(), Output); in TEST()
272 EXPECT_TRUE(Collector->hasSeen(a.path())); in TEST()
273 EXPECT_TRUE(Collector->hasSeen(symlink.path())); in TEST()