static async Task RunAddAndReturnExitCodeAsync(Options o) { Settings.RuntimeExtensionPackageUrl = o.RuntimeUrl; using (PerformanceManager manager = new PerformanceManager()) { Console.WriteLine($"Executing specified test '{o.RunFromZip}'..."); await manager.ExecuteAsync(o); } }
static async Task RunAddAndReturnExitCodeAsync(Options o) { Settings.RuntimeExtensionPackageUrl = o.RuntimeExtensionPackageUrl; using (PerformanceManager manager = new PerformanceManager()) { if (o.Tests.ToArray().Length > 0) { foreach (var test in o.Tests) { Console.WriteLine($"Executing specified test '{test}'..."); await manager.ExecuteAsync(test); } } else { Console.WriteLine("Executing all available tests..."); await manager.ExecuteAllAsync(); } } }