mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
23 lines
863 B
C#
23 lines
863 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using System;
|
|
using osu.Framework.Platform;
|
|
|
|
namespace osu.Framework
|
|
{
|
|
public static class FrameworkEnvironment
|
|
{
|
|
public static readonly ExecutionMode? STARTUP_EXECUTION_MODE;
|
|
public static readonly bool NO_TEST_TIMEOUT;
|
|
public static readonly bool FORCE_TEST_GC;
|
|
|
|
static FrameworkEnvironment()
|
|
{
|
|
STARTUP_EXECUTION_MODE = Enum.TryParse<ExecutionMode>(Environment.GetEnvironmentVariable("OSU_EXECUTION_MODE"), true, out var mode) ? mode : null;
|
|
NO_TEST_TIMEOUT = Environment.GetEnvironmentVariable("OSU_TESTS_NO_TIMEOUT") == "1";
|
|
FORCE_TEST_GC = Environment.GetEnvironmentVariable("OSU_TESTS_FORCED_GC") == "1";
|
|
}
|
|
}
|
|
}
|