@@ -23,7 +23,7 @@ public void CanGetMinimumCompiledInFeatures()
23
23
public void CanRetrieveValidVersionString ( )
24
24
{
25
25
// Version string format is:
26
- // Major.Minor.Patch[-previewTag]+{LibGit2Sharp_abbrev_hash}.libgit2-{libgit2_abbrev_hash} (x86|x64 - features)
26
+ // Major.Minor.Patch[-previewTag]+{LibGit2Sharp_abbrev_hash}.libgit2-{libgit2_abbrev_hash} (x86|x64|arm64 - features)
27
27
// Example output:
28
28
// "0.25.0-preview.52+871d13a67f.libgit2-15e1193 (x86 - Threads, Https)"
29
29
@@ -32,7 +32,7 @@ public void CanRetrieveValidVersionString()
32
32
// The GlobalSettings.Version returned string should contain :
33
33
// version: '0.25.0[-previewTag]' LibGit2Sharp version number.
34
34
// git2SharpHash: '871d13a67f' LibGit2Sharp hash.
35
- // arch: 'x86' or 'x64 ' libgit2 target.
35
+ // arch: 'x86', 'x64' or 'arm64 ' libgit2 target.
36
36
// git2Features: 'Threads, Ssh' libgit2 features compiled with.
37
37
string regex = @"^(?<version>\d+\.\d+\.\d+(-[\w\-\.]+)?\+((?<git2SharpHash>[a-f0-9]{10})\.)?libgit2-[a-f0-9]{7}) \((?<arch>\w+) - (?<git2Features>(?:\w*(?:, )*\w+)*)\)$" ;
38
38
@@ -41,7 +41,7 @@ public void CanRetrieveValidVersionString()
41
41
Match regexResult = Regex . Match ( versionInfo , regex ) ;
42
42
43
43
Assert . True ( regexResult . Success , "The following version string format is enforced:" +
44
- "Major.Minor.Patch[-previewTag]+{LibGit2Sharp_abbrev_hash}.libgit2-{libgit2_abbrev_hash} (x86|x64 - features). " +
44
+ "Major.Minor.Patch[-previewTag]+{LibGit2Sharp_abbrev_hash}.libgit2-{libgit2_abbrev_hash} (x86|x64|arm64 - features). " +
45
45
"But found \" " + versionInfo + "\" instead." ) ;
46
46
}
47
47
0 commit comments