2
0
mirror of synced 2025-01-12 09:34:40 +00:00

40 lines
798 B
C#
Raw Normal View History

using ContinuousTests;
public class Program
{
public static void Main(string[] args)
{
2023-10-26 20:26:45 +08:00
Console.WriteLine("Codex Continuous-Test-Runner.");
2023-06-28 16:19:37 +02:00
var runner = new ContinuousTestRunner(args, Cancellation.Cts.Token);
2023-06-28 16:19:37 +02:00
Console.CancelKeyPress += (sender, e) =>
{
Console.WriteLine("Stopping...");
e.Cancel = true;
Cancellation.Cts.Cancel();
2023-06-28 16:19:37 +02:00
};
2023-11-14 13:28:50 +01:00
try
{
runner.Run();
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
2023-06-28 16:19:37 +02:00
Console.WriteLine("Done.");
}
2023-09-21 10:33:09 +02:00
}
2023-09-21 10:33:09 +02:00
public static class Cancellation
{
static Cancellation()
{
2023-09-21 10:33:09 +02:00
Cts = new CancellationTokenSource();
}
2023-09-21 10:33:09 +02:00
public static CancellationTokenSource Cts { get; }
}