[test] api-digester: add a test to ensure the dumped module content is expected.

This commit is contained in:
Xi Ge
2016-10-13 11:21:44 -07:00
parent c2617483b7
commit ab9b035dbc
4 changed files with 81 additions and 0 deletions

View File

@@ -98,6 +98,9 @@ ResourceDir("resource-dir",
static llvm::cl::list<std::string>
FrameworkPaths("F", llvm::cl::desc("add a directory to the framework search path"));
static llvm::cl::list<std::string>
ModuleInputPaths("I", llvm::cl::desc("add a module for input"));
static llvm::cl::opt<bool>
AbortOnModuleLoadFailure("abort-on-module-fail",
llvm::cl::desc("Abort if a module failed to load"));
@@ -3303,6 +3306,7 @@ static int prepareForDump(const char *Main,
InitInvok.setRuntimeResourcePath(options::ResourceDir);
}
InitInvok.setFrameworkSearchPaths(options::FrameworkPaths);
InitInvok.setImportSearchPaths(options::ModuleInputPaths);
if (!options::ModuleList.empty()) {
if (readFileLineByLine(options::ModuleList, Modules))