-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from iron-software/releases/2024.7
Releases/2024.7 [master]
- Loading branch information
Showing
8 changed files
with
153 additions
and
23 deletions.
There are no files selected for viewing
Binary file added
BIN
+861 KB
IronSoftware.Drawing/IronSoftware.Drawing.Common.Tests/Data/test_dw_10.tif
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
.../IronSoftware.Drawing.Common.Tests/XUnitAttributes/IgnoreOnAzureDevopsX86FactAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using IronSoftware.Drawing.Common.Tests; | ||
using Xunit; | ||
|
||
public sealed class IgnoreOnAzureDevopsX86FactAttribute : FactWithAutomaticDisplayNameAttribute | ||
{ | ||
/// <summary> | ||
/// This class using for Skip test on Azure Devops and x86 architect | ||
/// <para>Regarding to OcrWizardTests.RunningWizardShouldFindBetterResult always failed on Devops x86 tested</para> | ||
/// </summary> | ||
public IgnoreOnAzureDevopsX86FactAttribute() | ||
{ | ||
if (!(IsRunningOnAzureDevOps() && IsRunningOnX86())) | ||
{ | ||
return; | ||
} | ||
|
||
Skip = "Ignored on Azure DevOps"; | ||
} | ||
|
||
/// <summary>Determine if runtime is Azure DevOps.</summary> | ||
/// <returns>True if being executed in Azure DevOps, false otherwise.</returns> | ||
public static bool IsRunningOnAzureDevOps() | ||
{ | ||
return Environment.GetEnvironmentVariable("SYSTEM_DEFINITIONID") != null; | ||
} | ||
|
||
// <summary>Determine if runtime is x86 architect.</summary> | ||
/// <returns>True if being executed in x86 architect, false otherwise.</returns> | ||
public static bool IsRunningOnX86() | ||
{ | ||
return TestsBase.GetArchitecture() == "x86"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters