2022-01-21 07:59:36 -06:00
|
|
|
// Licensed to the .NET Foundation under one or more agreements.
|
|
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
using System;
|
2022-02-10 15:58:01 -06:00
|
|
|
using System.IO;
|
2022-01-21 07:59:36 -06:00
|
|
|
|
|
|
|
namespace Microsoft.DotNet.SourceBuild.SmokeTests;
|
|
|
|
|
|
|
|
internal static class Config
|
|
|
|
{
|
2022-02-10 15:58:01 -06:00
|
|
|
public static string DotNetDirectory { get; } =
|
|
|
|
Environment.GetEnvironmentVariable("DOTNET_DIR") ?? Path.Combine(Directory.GetCurrentDirectory(), ".dotnet");
|
2022-01-21 07:59:36 -06:00
|
|
|
public static string DotNetTarballPath { get; } = Environment.GetEnvironmentVariable(DotNetTarballPathEnv) ?? string.Empty;
|
|
|
|
public const string DotNetTarballPathEnv = "DOTNET_TARBALL_PATH";
|
2022-02-04 12:52:30 -06:00
|
|
|
public static bool ExcludeOmniSharpTests { get; } =
|
|
|
|
bool.TryParse(Environment.GetEnvironmentVariable("EXCLUDE_OMNISHARP_TESTS"), out bool excludeOmniSharpTests) ? excludeOmniSharpTests : false;
|
|
|
|
public static bool ExcludeOnlineTests { get; } =
|
|
|
|
bool.TryParse(Environment.GetEnvironmentVariable("EXCLUDE_ONLINE_TESTS"), out bool excludeOnlineTests) ? excludeOnlineTests : false;
|
2022-02-10 15:58:01 -06:00
|
|
|
public static string MsftSdkTarballPath { get; } = Environment.GetEnvironmentVariable(MsftSdkTarballPathEnv) ?? string.Empty;
|
|
|
|
public const string MsftSdkTarballPathEnv = "MSFT_SDK_TARBALL_PATH";
|
2022-01-21 07:59:36 -06:00
|
|
|
public static string TargetRid { get; } = Environment.GetEnvironmentVariable("TARGET_RID") ?? string.Empty;
|
|
|
|
}
|