/// <nodoc /> public TestEngineAbstraction(PathTable pathTable, StringTable stringTable, AbsolutePath basePath, IFileSystem fileSystem) { m_pathTable = pathTable; m_stringTable = stringTable; m_fileSystem = fileSystem; Layout = new LayoutConfiguration() { ObjectDirectory = basePath.Combine(pathTable, "obj_test"), TempDirectory = basePath.Combine(pathTable, "tmp_test"), }; }
/// <nodoc /> public SimpleFrontEndEngineAbstraction(PathTable pathTable, IFileSystem filesystem, IConfiguration configuration = null) { m_pathTable = pathTable; m_fileSystem = filesystem; m_environmentVariables.Add("BUILDXL_IS_ELEVATED", CurrentProcess.IsElevated.ToString()); m_customMountsTable = ConstructMountsTable(configuration, pathTable.StringTable); var testRoot = AbsolutePath.Create(pathTable, Path.GetDirectoryName(AssemblyHelper.GetAssemblyLocation(GetType().Assembly))); Layout = new LayoutConfiguration() { ObjectDirectory = testRoot.Combine(pathTable, "obj_test"), RedirectedDirectory = testRoot.Combine(pathTable, "redirected_test"), FrontEndDirectory = testRoot.Combine(pathTable, "frontend"), TempDirectory = testRoot.Combine(pathTable, "tmp_test"), }; }