Ejemplo n.º 1
0
    private void VaryByAncmHostingModel(IList <TestVariant> variants, ServerType server, string tfm, ApplicationType type, RuntimeArchitecture arch, string skip)
    {
        foreach (var hostingModel in HostingModels)
        {
            var skipAncm = skip;
            if (hostingModel == HostingModel.InProcess)
            {
                // Not supported
                if (Tfm.Matches(Tfm.Net462, tfm) || Tfm.Matches(Tfm.NetCoreApp20, tfm))
                {
                    continue;
                }

                if (!IISExpressAncmSchema.SupportsInProcessHosting)
                {
                    skipAncm = skipAncm ?? IISExpressAncmSchema.SkipReason;
                }
            }

            variants.Add(new TestVariant()
            {
                Server          = server,
                Tfm             = tfm,
                ApplicationType = type,
                Architecture    = arch,
                HostingModel    = hostingModel,
                Skip            = skipAncm,
            });
        }
    }
Ejemplo n.º 2
0
 private RuntimeFlavor GetRuntimeFlavor(string tfm)
 {
     if (Tfm.Matches(Tfm.Net462, tfm))
     {
         return(RuntimeFlavor.Clr);
     }
     return(RuntimeFlavor.CoreClr);
 }
Ejemplo n.º 3
0
    private static string SkipIfTfmIsNotSupportedOnThisOS(string tfm)
    {
        if (Tfm.Matches(Tfm.Net462, tfm) && !OperatingSystem.IsWindows())
        {
            return("This TFM is not supported on this operating system.");
        }

        return(null);
    }
Ejemplo n.º 4
0
    private void VaryByApplicationType(List <TestVariant> variants, ServerType server, string tfm, string skip)
    {
        foreach (var t in ApplicationTypes)
        {
            var type = t;
            if (Tfm.Matches(Tfm.Net462, tfm) && type == ApplicationType.Portable)
            {
                if (ApplicationTypes.Count == 1)
                {
                    // Override the default
                    type = ApplicationType.Standalone;
                }
                else
                {
                    continue;
                }
            }

            VaryByArchitecture(variants, server, tfm, skip, type);
        }
    }
Ejemplo n.º 5
0
 private bool CheckTfmIsSupportedForServer(string tfm, ServerType server)
 {
     // Not a combination we test
     return(!(Tfm.Matches(Tfm.Net462, tfm) && ServerType.Nginx == server));
 }