Browse Source

Improved test driver to add Clang's built in header path to the system lookup paths.

pull/395/merge
Joao Matos 11 years ago
parent
commit
c44985a2a4
  1. 7
      src/Generator.Tests/GeneratorTest.cs

7
src/Generator.Tests/GeneratorTest.cs

@ -45,6 +45,13 @@ namespace CppSharp.Utils @@ -45,6 +45,13 @@ namespace CppSharp.Utils
var path = Path.GetFullPath(GetTestsDirectory(name));
options.addIncludeDirs(path);
var headersPaths = new System.Collections.Generic.List<string> {
Path.GetFullPath(Path.Combine(path, "../../deps/llvm/tools/clang/lib/Headers"))
};
foreach (var header in headersPaths)
options.addSystemIncludeDirs(header);
driver.Diagnostics.EmitMessage("Looking for tests in: {0}", path);
var files = Directory.EnumerateFiles(path, "*.h");
foreach (var file in files)

Loading…
Cancel
Save