summaryrefslogtreecommitdiff
path: root/regtest1.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-05-19 23:29:59 -0400
committerJeffrey Walton <noloader@gmail.com>2017-05-19 23:29:59 -0400
commit4fef9b88371acde819cd431f4e099e7e511606e4 (patch)
tree1fa2da4879debc635e6bbd6c536c3f378c22ffd0 /regtest1.cpp
parent82accdc13bfed8fa52e0b7681f5d10e5100740c4 (diff)
downloadcryptopp-git-4fef9b88371acde819cd431f4e099e7e511606e4.tar.gz
Rework benchmark code
This change moves test selections from test.cpp into bench.cpp. It also allows us finer control over test classes and algorithms
Diffstat (limited to 'regtest1.cpp')
-rw-r--r--regtest1.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/regtest1.cpp b/regtest1.cpp
index 194f2898..c4eb7380 100644
--- a/regtest1.cpp
+++ b/regtest1.cpp
@@ -52,7 +52,9 @@ void RegisterFactories(Test::TestClass suites)
if ((suites & Test::Unkeyed) == Test::Unkeyed)
RegisterFactories1();
- if ((suites & Test::SharedKey) == Test::SharedKey)
+ if ((suites & Test::SharedKeyMAC) == Test::SharedKeyMAC ||
+ (suites & Test::SharedKeyMAC) == Test::SharedKeyStream ||
+ (suites & Test::SharedKeyMAC) == Test::SharedKeyBlock)
RegisterFactories2();
if ((suites & Test::PublicKey) == Test::PublicKey)