Home
last modified time | relevance | path

Searched refs:TempDir (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/Support/
H A DFileCollectorTest.cpp17 using llvm::unittest::TempDir;
46 TempDir root("add_file_root", /*Unique*/ true); in TEST()
67 TempDir file_root("file_root", /*Unique*/ true); in TEST()
131 TempDir subdir(file_root.path("subdir")); in TEST()
132 TempDir subdir2(file_root.path("subdir2")); in TEST()
162 TempDir subdir(file_root.path("subdir")); in TEST()
163 TempDir subdir2(file_root.path("subdir2")); in TEST()
166 TempDir subdir3(file_root.path("subdir3")); in TEST()
168 TempDir subdir3b(subdir3.path("subdirb")); in TEST()
209 TempDir foo(file_root.path("foo")); in TEST()
[all …]
H A DLockFileManagerTest.cpp17 using llvm::unittest::TempDir;
22 TempDir TmpDir("LockFileManagerTestDir", /*Unique*/ true); in TEST()
43 TempDir LockFileManagerTestDir("LockFileManagerTestDir", /*Unique*/ true); in TEST()
80 TempDir LockFileManagerTestDir("LockFileManagerTestDir", /*Unique*/ true); in TEST()
86 TempDir inner("inner"); in TEST()
H A DVirtualFileSystemTest.cpp25 using llvm::unittest::TempDir;
445 TempDir _a(TestDirectory.path("a")); in TEST()
447 TempDir _c(TestDirectory.path("c")); in TEST()
468 TempDir Root("r", /*Unique*/ true); in TEST()
469 TempDir ADir(Root.path("a")); in TEST()
470 TempDir BDir(Root.path("b")); in TEST()
534 TempDir _b(TestDirectory.path("b")); in TEST()
568 TempDir _a(TestDirectory.path("a")); in TEST()
570 TempDir _c(TestDirectory.path("c")); in TEST()
602 TempDir _a(TestDirectory.path("a")); in TEST()
[all …]
H A DFileUtilitiesTest.cpp22 using llvm::unittest::TempDir;
38 TempDir RootTestDirectory("writeFileAtomicallyTest", /*Unique*/ true); in TEST()
H A DPath.cpp586 SmallString<32> TempDir; in TEST() local
587 path::system_temp_directory(false, TempDir); in TEST()
588 EXPECT_TRUE(!TempDir.empty()); in TEST()
589 TempDir.clear(); in TEST()
590 path::system_temp_directory(true, TempDir); in TEST()
591 EXPECT_TRUE(!TempDir.empty()); in TEST()
615 SmallString<300> TempDir; \
616 path::system_temp_directory(true, TempDir); \
617 raw_os_ostream(std::cerr) << TempDir; \
2447 unittest::TempDir RootTestDirectory("CopyFileTest", /*Unique=*/true); in TEST_F()
H A DCommandLineTest.cpp34 using llvm::unittest::TempDir;
1082 TempDir TestDir("unittest", /*Unique*/ true); in TEST()
1083 TempDir TestSubDir(TestDir.path("subdir"), /*Unique*/ false); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DCompileCommandsTests.cpp125 llvm::SmallString<256> TempDir; in TEST() local
129 ASSERT_THAT(llvm::sys::fs::real_path(TempDir.str(), TempDir), ok()); in TEST()
131 [&] { llvm::sys::fs::remove_directories(TempDir); }); in TEST()
132 ASSERT_THAT(llvm::sys::fs::create_directory(TempDir + "/bin"), ok()); in TEST()
133 ASSERT_THAT(llvm::sys::fs::create_directory(TempDir + "/lib"), ok()); in TEST()
137 ::chmod((TempDir + "/lib/bar").str().c_str(), 0755); // executable in TEST()
139 llvm::sys::fs::create_link(TempDir + "/lib/bar", TempDir + "/bin/foo"), in TEST()
148 EXPECT_EQ((TempDir + "/lib/foo").str(), Cmd.front()); in TEST()
156 ::setenv("PATH", (TempDir + "/bin").str().c_str(), /*overwrite=*/1); in TEST()
165 EXPECT_EQ((TempDir + "/lib/foo").str(), Cmd.front()); in TEST()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Testing/Support/
H A DSupportHelpers.h113 class TempDir {
122 explicit TempDir(StringRef Name, bool Unique = false) {
140 ~TempDir() { in ~TempDir()
146 TempDir(const TempDir &) = delete;
147 TempDir &operator=(const TempDir &) = delete;
149 TempDir(TempDir &&) = default;
150 TempDir &operator=(TempDir &&) = default;
/llvm-project-15.0.7/compiler-rt/lib/fuzzer/
H A DFuzzerFork.cpp92 std::string TempDir; member
112 std::string StopFile() { return DirPlusFile(TempDir, "STOP"); } in StopFile()
272 Cmd.setOutputFile(DirPlusFile(TempDir, "dft.log")); in CollectDFT()
330 Env.TempDir = TempPath("FuzzWithFork", ".dir"); in FuzzWithFork()
331 Env.DFTDir = DirPlusFile(Env.TempDir, "DFT"); in FuzzWithFork()
333 MkDir(Env.TempDir); in FuzzWithFork()
338 MkDir(Env.MainCorpusDir = DirPlusFile(Env.TempDir, "C")); in FuzzWithFork()
346 auto CFPath = DirPlusFile(Env.TempDir, "merge.txt"); in FuzzWithFork()
362 Env.Files.size(), Env.TempDir.c_str()); in FuzzWithFork()
406 auto CFPath = DirPlusFile(Env.TempDir, "merge.txt"); in FuzzWithFork()
[all …]
/llvm-project-15.0.7/llvm/unittests/Testing/Support/
H A DTempPathTest.cpp15 using llvm::unittest::TempDir;
21 TEST(TempPathTest, TempDir) { in TEST() argument
22 Optional<TempDir> Dir1, Dir2; in TEST()
44 TempDir D("temp-path-test", /*Unique=*/true); in TEST()
72 TempDir D("temp-path-test", /*Unique=*/true); in TEST()
/llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/X86/
H A DSnippetFileTest.cpp38 using llvm::unittest::TempDir;
43 TempDir TestDirectory("SnippetFileTestDir", /*Unique*/ true); in TestCommon()
/llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/Mips/
H A DBenchmarkResultTest.cpp29 using llvm::unittest::TempDir;
77 TempDir TestDirectory("BenchmarkResultTestDir", /*Unique*/ true); in TEST_F()
/llvm-project-15.0.7/llvm/tools/llvm-go/
H A Dllvm-go.go162 tmpgopath, err := ioutil.TempDir("", "gopath")
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DCompilationDatabaseTest.cpp760 llvm::SmallString<32> TempDir; in getProxy() local
761 llvm::sys::path::system_temp_directory(false, TempDir); in getProxy()
762 Proxy.consume_front(TempDir); in getProxy()
/llvm-project-15.0.7/llvm/lib/LTO/
H A DThinLTOCodeGenerator.cpp94 static void saveTempBitcode(const Module &TheModule, StringRef TempDir, in saveTempBitcode() argument
96 if (TempDir.empty()) in saveTempBitcode()
99 std::string SaveTempPath = (TempDir + llvm::Twine(count) + Suffix).str(); in saveTempBitcode()
/llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/
H A Dgtest.h2373 GTEST_API_ std::string TempDir();
/llvm-project-15.0.7/llvm/lib/Support/Unix/
H A DPath.inc1355 static bool getDarwinConfDir(bool TempDir, SmallVectorImpl<char> &Result) {
1359 int ConfName = TempDir ? _CS_DARWIN_USER_TEMP_DIR
/llvm-project-15.0.7/llvm/utils/unittest/googletest/src/
H A Dgtest.cc6136 std::string TempDir() { in TempDir() function