diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-07-05 11:17:22 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-07-05 11:17:22 +0700 |
commit | e7221fc32dfce4ed3e4a379664ad92701861e876 (patch) | |
tree | 93acd51498c90ff6ded35afeebefe565436382f4 /crypto/test | |
parent | Overloads for params methods (diff) | |
download | BouncyCastle.NET-ed25519-e7221fc32dfce4ed3e4a379664ad92701861e876.tar.xz |
Remove redundant test and add Parallelizable
Diffstat (limited to 'crypto/test')
-rw-r--r-- | crypto/test/src/pqc/crypto/test/SikeVectorTest.cs | 29 |
1 files changed, 5 insertions, 24 deletions
diff --git a/crypto/test/src/pqc/crypto/test/SikeVectorTest.cs b/crypto/test/src/pqc/crypto/test/SikeVectorTest.cs index f97688688..29305149d 100644 --- a/crypto/test/src/pqc/crypto/test/SikeVectorTest.cs +++ b/crypto/test/src/pqc/crypto/test/SikeVectorTest.cs @@ -27,18 +27,6 @@ namespace Org.BouncyCastle.Pqc.Crypto.Tests { "PQCkemKAT_602.rsp" , SIKEParameters.sikep751_compressed } }; - private static readonly string[] TestVectorFilesAll = - { - "PQCkemKAT_374.rsp", - "PQCkemKAT_434.rsp", - "PQCkemKAT_524.rsp", - "PQCkemKAT_644.rsp", - "PQCkemKAT_350.rsp", - "PQCkemKAT_407.rsp", - "PQCkemKAT_491.rsp", - "PQCkemKAT_602.rsp", - }; - private static readonly string[] TestVectorFilesBasic = { "PQCkemKAT_374.rsp", @@ -54,28 +42,21 @@ namespace Org.BouncyCastle.Pqc.Crypto.Tests "PQCkemKAT_491.rsp", "PQCkemKAT_602.rsp", }; - + [TestCaseSource(nameof(TestVectorFilesBasic))] - //[Parallelizable(ParallelScope.All)] + [Parallelizable(ParallelScope.All)] public void TestVectorsBasic(string testVectorFile) { RunTestVectorFile(testVectorFile); } - + [TestCaseSource(nameof(TestVectorFilesCompressed))] - //[Parallelizable(ParallelScope.All)] + [Parallelizable(ParallelScope.All)] public void TestVectorCompressed(string testVectorFile) { RunTestVectorFile(testVectorFile); } - - [TestCaseSource(nameof(TestVectorFilesAll))] - //[Parallelizable(ParallelScope.All)] - public void TestVectorAll(string testVectorFile) - { - RunTestVectorFile(testVectorFile); - } - + private static void RunTestVector(string name, IDictionary<string, string> buf) { string count = buf["count"]; |