2017-02-07 12:59:30 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2016-09-23 23:39:20 +08:00
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using osu.Framework.Desktop;
|
2016-10-07 11:49:53 +08:00
|
|
|
|
using osu.Framework.Platform;
|
2017-08-04 14:37:31 +08:00
|
|
|
|
using osu.Framework.VisualTests;
|
2016-09-23 23:39:20 +08:00
|
|
|
|
|
2016-10-26 16:26:26 +08:00
|
|
|
|
namespace osu.Desktop.VisualTests
|
2016-09-23 23:39:20 +08:00
|
|
|
|
{
|
|
|
|
|
public static class Program
|
|
|
|
|
{
|
|
|
|
|
[STAThread]
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
2017-02-09 18:24:53 +08:00
|
|
|
|
bool benchmark = args.Length > 0 && args[0] == @"-benchmark";
|
|
|
|
|
|
2017-02-23 14:38:17 +08:00
|
|
|
|
using (GameHost host = Host.GetSuitableHost(@"osu"))
|
2016-11-08 08:04:31 +08:00
|
|
|
|
{
|
2017-02-09 18:24:53 +08:00
|
|
|
|
if (benchmark)
|
2017-03-31 16:55:07 +08:00
|
|
|
|
host.Run(new AutomatedVisualTestGame());
|
2017-02-09 18:24:53 +08:00
|
|
|
|
else
|
2017-02-26 19:45:41 +08:00
|
|
|
|
host.Run(new VisualTestGame());
|
2016-11-08 08:04:31 +08:00
|
|
|
|
}
|
2016-09-23 23:39:20 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|