Files
clice/tests/main.cpp
2024-10-03 18:36:27 +08:00

19 lines
578 B
C++

#include <gtest/gtest.h>
#include <llvm/Support/CommandLine.h>
llvm::cl::opt<std::string> test_dir_path("test-dir",
llvm::cl::desc("specify the test source directory path"),
llvm::cl::value_desc("path"),
llvm::cl::Required);
std::string test_dir() {
return test_dir_path;
}
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
llvm::cl::ParseCommandLineOptions(argc, argv, "clice test\n");
return RUN_ALL_TESTS();
}