diff options
author | vnugent <public@vaughnnugent.com> | 2024-08-22 21:56:47 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-08-22 21:56:47 -0400 |
commit | 225c2be092fbe6e7464de2046937989f99a419e1 (patch) | |
tree | 789a8a6b413cfd815e14565c8a208cfd0f01dc45 /wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/tests | |
parent | c586efcbe50ba38880938ff2956514164147707f (diff) |
ci: update and test c# libs for linux
Diffstat (limited to 'wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/tests')
-rw-r--r-- | wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/tests/LibNoscryptTests.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/tests/LibNoscryptTests.cs b/wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/tests/LibNoscryptTests.cs index 25f382a..ffa9cb6 100644 --- a/wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/tests/LibNoscryptTests.cs +++ b/wrappers/dotnet/VNLib.Utils.Cryptography.Noscrypt/tests/LibNoscryptTests.cs @@ -17,6 +17,7 @@ namespace VNLib.Utils.Cryptography.Noscrypt.Tests { const string NoscryptLibWinDebug = @"../../../../../../../build/windows/Debug/noscrypt.dll"; + const string NoscryptLinuxDebug = @"../../../../../../../build/linux/libnoscrypt.so"; //Keys generated using npx noskey package @@ -36,7 +37,13 @@ namespace VNLib.Utils.Cryptography.Noscrypt.Tests [TestInitialize] public void Initialize() { - _testLib = NoscryptLibrary.Load(NoscryptLibWinDebug); + _testLib = Environment.OSVersion.Platform switch + { + PlatformID.Win32NT => NoscryptLibrary.Load(NoscryptLibWinDebug), + PlatformID.Unix => NoscryptLibrary.Load(NoscryptLinuxDebug), + _ => throw new PlatformNotSupportedException() + }; + _testVectors = JsonDocument.Parse(File.ReadAllText(Nip44VectorTestFile)); } |