BuildWarningPolicyTests.cs (5)
31using var command = CreateCommand(script, RepoRoot.Path)
96File.Copy(Path.Combine(RepoRoot.Path, "eng", file), Path.Combine(root, "eng", file));
101File.Copy(Path.Combine(RepoRoot.Path, file), Path.Combine(root, file));
324var dotnet = Path.Combine(RepoRoot.Path, ".dotnet", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet");
331.WithEnvironmentVariable("TEST_REPO", RepoRoot.Path)
Hex1bNativePublishingTests.cs (9)
21Path.Combine(RepoRoot.Path, "artifacts", "tests", nameof(Hex1bNativePublishingTests), Guid.NewGuid().ToString("N"))));
42var project = Path.Combine(RepoRoot.Path, "src", projectName, $"{projectName}.csproj");
59using var reader = File.OpenText(Path.Combine(RepoRoot.Path, ".github", "workflows", "build-cli-native-archives.yml"));
70["msbuild", Path.Combine(RepoRoot.Path, "eng", "Bundle.proj"), "-nologo", "-getProperty:Configuration"]);
76var project = Path.Combine(RepoRoot.Path, "src", projectName, $"{projectName}.csproj");
97["msbuild", Path.Combine(RepoRoot.Path, "eng", "Bundle.proj"), "-nologo", "-t:_ShowBanner",
112["msbuild", Path.Combine(RepoRoot.Path, "src", "Aspire.TerminalHost", "Aspire.TerminalHost.csproj"),
121Path.GetFullPath(Path.Combine(RepoRoot.Path, "artifacts", "bin", "Aspire.TerminalHost", "Debug", framework!)),
432new XElement("Import", new XAttribute("Project", Path.Combine(RepoRoot.Path, "src", "Aspire.Hosting", "buildTransitive", "Aspire.Hosting.targets"))),
MicrosoftTestingPlatformTests.cs (6)
38.WithWorkingDirectory(RepoRoot.Path)
39.WithEnvironmentVariable("TEST_DOTNET", Path.Combine(RepoRoot.Path, ".dotnet", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet"))
40.WithEnvironmentVariable("TEST_REPO", RepoRoot.Path)
74.WithWorkingDirectory(RepoRoot.Path)
75.WithEnvironmentVariable("TEST_DOTNET", Path.Combine(RepoRoot.Path, ".dotnet", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet"))
80var target = XDocument.Load(Path.Combine(RepoRoot.Path, "eng", "Xunit3", "Microsoft.Testing.Platform.targets"));
Pipelines\NixCliPackageTests.cs (4)
44Path.Combine(RepoRoot.Path, "eng", "nix", "update-versions.sh"),
101Path.Combine(RepoRoot.Path, "eng", "nix", "update-versions.sh"),
130Path.Combine(RepoRoot.Path, "eng", "nix", "update-versions.sh"),
183: File.ReadAllTextAsync(Path.Combine(RepoRoot.Path, relativePath));
Pipelines\TrayBundleTests.cs (7)
216.WithWorkingDirectory(RepoRoot.Path)
220"-RepositoryRoot", $"\"{RepoRoot.Path}\"",
248Path.Combine(RepoRoot.Path, "eng/github-ci/test-trigger-map.yml"),
353File.Copy(Path.Combine(RepoRoot.Path, "src/Shared/Aspire.ico"), Path.Combine(source, "Aspire.ico"), overwrite: true);
379using var command = new PowerShellCommand(Path.Combine(RepoRoot.Path, "tools/CreateLayout/verify-windows-tray-payload.ps1"), output)
453"-Verifier", $"\"{Path.Combine(RepoRoot.Path, "tools/CreateLayout/verify-linux-tray-payload.sh")}\"",
510using var command = new PowerShellCommand(Path.Combine(RepoRoot.Path, "eng/scripts/test-native-tray.ps1"), output)
TestTriggerMap\SelectTestsAcceptanceTests.cs (28)
830var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
832var filter = ChangedFileFilter.Create(RepoRoot.Path, map.Prefilter);
861var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
863var filter = ChangedFileFilter.Create(RepoRoot.Path, map.Prefilter);
886var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
888var filter = ChangedFileFilter.Create(RepoRoot.Path, map.Prefilter);
997var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1018var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1034var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1047var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1058var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1084var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1107var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1119var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1138var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1159var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1182var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1186var filter = ChangedFileFilter.Create(RepoRoot.Path, map.Prefilter);
1211var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1234var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1249var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1274var srcDir = Path.Combine(RepoRoot.Path, "src");
1275var polyglotRoot = Path.Combine(RepoRoot.Path, "tests", "PolyglotAppHosts");
1301var polyglotRoot = Path.Combine(RepoRoot.Path, "tests", "PolyglotAppHosts");
1330var componentsRoot = Path.Combine(RepoRoot.Path, "src", "Components");
1345var testsDir = Path.Combine(RepoRoot.Path, "tests");
1355var testsDir = Path.Combine(RepoRoot.Path, "tests");
1365var slnx = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx"));
TestTriggerMap\SelectTestsCliTests.cs (8)
526var solution = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx"));
534var project = File.ReadAllText(Path.Combine(RepoRoot.Path, projectPath));
543RepoRoot.Path,
667var options = Options(RepoRoot.Path, propsPath, changedFilesPath: changed, enforce: true) with
669MapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml")
827var workflow = File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "tests.yml"));
831var options = Options(RepoRoot.Path, propsPath, skipLayer1: true, forceAll: true, enforce: true) with
833MapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml")
TestTriggerMap\TestTriggerMapTests.cs (8)
187var slnx = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx"));
535WorkingDirectory = RepoRoot.Path,
1044using (var reader = new StringReader(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "tests.yml"))))
1126Path.Combine(RepoRoot.Path, "tests"), "*.csproj", SearchOption.AllDirectories)
1137var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml");
1200var solutionPath = Path.Combine(RepoRoot.Path, "Aspire.slnx");
1216RepoRoot.Path,
1242var relativePath = Path.GetRelativePath(RepoRoot.Path, projectPath).Replace('\\', '/');
WorkflowScripts\AutoSecWorkflowTests.cs (10)
3255AssertPublicationGuards(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml")));
3624=> AssertSafeUploadPaths(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml")));
3629var steps = PublicationSteps(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml")));
3643var steps = AgentSteps(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml")));
3687=> new(PublicationSteps(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml")))
4223["nugetConfigText"] = File.ReadAllText(Path.Combine(RepoRoot.Path, "NuGet.config")),
4332["nugetConfigText"] = File.ReadAllText(Path.Combine(RepoRoot.Path, "NuGet.config")),
4797command.WithWorkingDirectory(RepoRoot.Path).WithTimeout(TimeSpan.FromSeconds(30));
4799Path.Combine(RepoRoot.Path, "tests", "Infrastructure.Tests", "WorkflowScripts", "auto-sec.harness.js"),
4810=> File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", fileName));
WorkflowScripts\FilterNonBlockingTestArtifactsTests.cs (5)
12RepoRoot.Path,
31var result = await TestProcessRunner.RunAsync(output, "bash", [s_scriptPath, allLogsPath], RepoRoot.Path);
63var result = await TestProcessRunner.RunAsync(output, "bash", [s_scriptPath, allLogsPath], RepoRoot.Path);
89var result = await TestProcessRunner.RunAsync(output, "bash", [s_scriptPath, allLogsPath], RepoRoot.Path);
115var result = await TestProcessRunner.RunAsync(output, "bash", [s_scriptPath, allLogsPath], RepoRoot.Path);